@media screen {
  .lc-home :is(.wrap, .lc-wide, .guide) {
    width: min(1120px, calc(100% - 40px));
  }
  .lc-home .workspace { padding-block: clamp(18px, 3.4vw, 42px) clamp(30px, 5vw, 68px); }
  .lc-home .section-intro { margin-bottom: 17px; animation: none; }
  .lc-home h1 { font-size: clamp(1.7rem, 3.05vw, 2.85rem); line-height: 1.13; letter-spacing: -.048em; }
  .lc-home .section-intro p { margin-top: 5px; }
  .lc-tool-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    column-gap: 18px;
    row-gap: 7px;
    margin-bottom: 15px;
  }
  .lc-tool-bar .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #e9f0ed;
  }
  .lc-tool-bar .tabs a {
    display: flex; align-items: center; min-width: 0; min-height: 42px; padding: 5px 9px;
    gap: 8px; border: 1px solid transparent; border-radius: 8px; text-decoration: none;
  }
  .lc-tool-bar .tabs a[aria-current=page] {
    border-color: #9dc3b6;
    background: white;
    color: #114f43;
    box-shadow: 0 1px 3px #1a3f3420;
  }
  .lc-tool-bar .tab-icon { width: 26px; border-radius: 7px; background: transparent; color: var(--green); }
  .lc-tool-bar .tab-icon.inventory-icon::after { top: 6px; right: 7px; }
  .lc-tool-bar .workspace-actions { flex: 0 1 auto; max-width: 100%; gap: 5px; }
  .lc-home .workspace-actions button { min-height: 41px; padding-inline: 9px; border-radius: 8px; }
  .lc-preview-jump { display: none; }
  .lc-home :is(#apercu, #editor) { scroll-margin-top: 14px; }

  .lc-home .tool-grid { grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr); gap: 16px; }
  .lc-home :is(.editor, .preview-pane) { border-radius: 14px; }
  .lc-home .editor { padding: clamp(14px, 2.25vw, 28px); }
  .lc-home .editor-heading { margin-bottom: 15px; padding-bottom: 12px; }
  .lc-home .editor-heading h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
  .lc-home :is(.step-number, .guide-icon) { border-radius: 8px; }
  .lc-home .field :is(input:not([type=file]), textarea, select) { border-radius: 8px; background: white; border-color: #b7ccc4; }
  .lc-home .field :is(input, textarea)::placeholder { color: #65756f; }
  .lc-home :is(.check, .room-editor) { background: var(--sidebar); border-radius: 10px; }
  .lc-home :is(.button, .file, #add-room) { border-radius: 9px; }
  .lc-home .preview-pane { background: #edf4f2; }
  .lc-home .print-paper { border-color: var(--line); }
  .lc-home .doc-title { font: 800 clamp(1.35rem, 2.5vw, 2.05rem)/1.16 var(--sans); letter-spacing: -.045em; }
  .lc-home .doc-payment { background: var(--sidebar); }

  .lc-home .lc-casebook { margin-block: 0 clamp(42px, 7vw, 92px); }
  .lc-home .lc-case-head { display: block; padding-block: 23px 10px; border-top: 1px solid var(--line); border-bottom: 0; }
  .lc-home :is(.lc-case-head h2, .lc-guide-title h2, .faq-intro h2) {
    font: 800 clamp(1.48rem, 2.6vw, 2.2rem)/1.19 var(--sans);
    letter-spacing: -.045em;
  }
  .lc-home .lc-case-head p { margin-top: 6px; max-width: 62ch; color: var(--muted); }
  .lc-home :is(.lc-case-feature, .lc-visit-case) {
    grid-template-columns: minmax(0, 1fr) minmax(0, .73fr);
    gap: clamp(15px, 4vw, 45px);
    margin: 14px 0;
    padding: clamp(14px, 3vw, 30px);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
  }
  .lc-home .lc-visit-case { grid-template-columns: minmax(0, .73fr) minmax(0, 1fr); }
  .lc-home :is(.lc-case-feature, .lc-visit-case) figure { overflow: hidden; border-radius: 9px; }
  .lc-home :is(.lc-case-feature, .lc-visit-case) img {
    width: 100%; aspect-ratio: 1.48; object-fit: cover; object-position: center 54%; border-radius: 0;
  }
  .lc-home .lc-visit-case figcaption { color: var(--muted); padding: 4px 7px; }
  .lc-home :is(.lc-case-copy h3, .lc-visit-copy h3) {
    font: 800 clamp(1.15rem, 2.05vw, 1.62rem)/1.2 var(--sans); letter-spacing: -.04em; max-width: none;
  }
  .lc-home .lc-case-ledger { max-width: 450px; padding-top: 5px; }
  .lc-home .lc-hub {
    margin-top: 18px;
    padding: 0;
    border: none;
    gap: 8px;
  }
  .lc-home .lc-hub a { border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; background: white; }
  .lc-home .lc-hub strong { font-size: max(1rem, var(--copy-min)); }
  .lc-home .lc-hub span:not([aria-hidden]) { color: var(--muted); }

  .lc-guide-title p { margin-top: 4px; color: var(--muted); }
  .lc-home .guide-directory { padding: 0 0 9px; border: 0; background: transparent; }
  .lc-home .guide-directory a { background: transparent; border-radius: 6px; }
  .lc-home .guide-section { padding: clamp(16px, 3vw, 30px); border-radius: 12px; }
  .lc-home :is(.guide-copy, .guide-steps > li, .archive-stack > div, .inspection-example, .chapter-note) {
    border-color: var(--line); border-radius: 9px; background: var(--sidebar);
  }
  .lc-home .guide-copy { border-top-width: 1px; }
  .lc-chapter > p + p, .lc-photo-reading p + p { margin-top: 12px; }
  .lc-photo-reading {
    display: grid; align-items: start; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: clamp(15px, 4vw, 32px); margin-block: 12px 18px;
  }
  .lc-photo-reading figure { margin: 0; min-width: 0; overflow: hidden; border-radius: 9px; background: var(--sidebar); }
  .lc-photo-reading img { display: block; width: 100%; aspect-ratio: 1.48; object-fit: cover; }
  .lc-photo-reading figcaption { padding: 8px 11px; color: var(--muted); }
  .lc-photo-reading h3:not(:first-child) { margin-top: 15px; }
  .lc-home .table-scroll { border-radius: 9px; }
  .lc-home .table-scroll thead { background: var(--soft); }
  .lc-home .table-scroll tbody tr:nth-child(even) { background: #f7faf9; }
  .lc-home .questions { column-gap: clamp(12px, 3vw, 32px); row-gap: 0; }
  .lc-home .questions article {
    padding: 12px 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    border-top: 1px solid var(--line);
  }
  .lc-home .guide-closing { border-radius: 12px; background: #19332d; }
  .lc-home :is(.lc-choose, .lc-hub) [aria-hidden=true] { display: inline-block; }
  .lc-home :is(a, button, input, select, textarea, #apercu, #editor, .table-scroll):focus-visible {
    outline: 3px solid #287563;
    outline-offset: 3px;
  }
  .lc-home .lc-footer a:focus-visible { outline-color: #a4dacb; }
}

@media screen and (hover: hover) {
  .lc-home :is(button:not(:disabled), .button, .tabs a, .lc-nav a, .lc-hub a, .guide-directory a, .lc-preview-jump, .file, .check) {
    transition: background-color .18s ease, color .18s ease, border-color .18s ease,
      box-shadow .22s ease, transform .22s cubic-bezier(.2,.8,.2,1);
  }
  .lc-home :is(.lc-case-feature, .lc-visit-case, .guide-steps > li, .guide-copy, .archive-stack > div, .inspection-example, .preview-pane, .room-editor) {
    transition: box-shadow .24s ease, border-color .24s ease, transform .24s cubic-bezier(.2,.8,.2,1);
  }
  .lc-home :is(.tab-icon, .guide-icon, .path-step, .lc-mark, .lc-choose [aria-hidden], .lc-hub [aria-hidden], #example span, .lc-casebook img, .inspection-photo img, .lc-photo-reading img) {
    transition: transform .24s cubic-bezier(.2,.8,.2,1), background-color .18s ease, color .18s ease;
  }
  .lc-home #example span { display: inline-block; }
  .lc-home :is(.lc-nav a, .lc-hub a, .guide-directory a, .lc-preview-jump, .file, .check):hover {
    color: #114f43;
    background: #e1f3ed;
    border-color: #91b9ac;
    box-shadow: var(--lift);
    transform: translateY(-2px);
  }
  .lc-home button:not(:disabled):hover,
  .lc-home a.button:hover,
  .lc-home .tabs a:hover {
    box-shadow: var(--lift);
    transform: translateY(-2px) scale(1.018);
    translate: none;
  }
  .lc-home .tabs a:not([aria-current=page]):hover { background: #f5fcf9; border-color: #91b9ac; }
  .lc-home .tabs a[aria-current=page]:hover { border-color: var(--green); }
  .lc-home :is(.lc-case-feature, .lc-visit-case, .guide-steps > li, .guide-copy, .archive-stack > div, .inspection-example, .preview-pane):hover {
    border-color: #9fbeb2;
    box-shadow: var(--panel-lift);
  }
  .lc-home :is(.guide-steps > li, .guide-copy, .archive-stack > div):hover { transform: translateY(-3px); translate: none; }
  .lc-home .room-editor:hover { border-color: #9fbeb2; box-shadow: 0 5px 16px #17372e14; }
  .lc-home :is(.field input:not([type=file]), .field select, .field textarea) {
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
  }
  .lc-home :is(.field input:not([type=file]), .field select, .field textarea):hover {
    background-color: #fbfffd; border-color: #639a8a; box-shadow: 0 2px 8px #17372e14;
  }
  .lc-home .lc-choose a:hover,
  .lc-home .guide-source a:hover,
  .lc-home .questions a:hover { color: #08684f; text-decoration-thickness: 2px; }
  .lc-home .table-scroll tbody tr:hover { background: #e8f4ef; }
  .lc-home :is(.lc-casebook figure, .inspection-photo, .lc-photo-reading figure):hover img { transform: scale(1.045); }
  .lc-home .inspection-photo { overflow: hidden; }
  .lc-home :is(.lc-wordmark, .tabs a, .guide-heading, .guide-steps > li, .archive-stack > div, .lc-choose a, .lc-hub a, #example):hover
    :is(.lc-mark, .tab-icon, .guide-icon, .path-step, [aria-hidden=true]) { transform: translateY(-2px) scale(1.15); }
}

@media screen and (max-width: 800px) {
  .lc-home .tool-grid { grid-template-columns: minmax(0, 1fr); }
  .lc-home .preview-pane { position: static; }
  .lc-home .lc-preview-jump {
    display: inline-flex; align-items: center; min-height: 42px; padding: 7px 8px;
    color: var(--green); font-weight: 750; border-radius: 7px;
  }
  .lc-home .preview-pane .lc-preview-jump { margin-top: 4px; }
}

@media screen and (max-width: 670px) {
  .lc-home :is(.wrap, .lc-wide, .guide, .lc-header-inner) { width: calc(100% - 28px); }
  .lc-home .tool-grid { gap: 12px; }
  .lc-tool-bar .tabs { width: 100%; }
  .lc-tool-bar .workspace-actions button, .lc-home .lc-preview-jump { padding-inline: 6px; }
  .lc-home :is(.lc-case-feature, .lc-visit-case, .lc-photo-reading) { grid-template-columns: minmax(0, 1fr); }
  .lc-home .lc-visit-case figure { grid-row: 2; }
}

@media screen and (prefers-reduced-motion: reduce) {
  .lc-home :is(.lc-header, .lc-landing, .lc-footer) :hover,
  .lc-home :is(.lc-header, .lc-landing, .lc-footer) :hover * {
    transform: none !important;
    translate: none !important;
  }
}

@media print {
  .lc-tool-bar, .lc-preview-jump { display: none !important; }
  .lc-home .doc-title { font-family: var(--sans); font-weight: 800; letter-spacing: -.042em; }
}
