/* torinq common shell. No remote font, framework, generated utility CSS or build step. */
:root {
  --ink: #273c32;
  --muted: #657466;
  --forest: #2c5645;
  --forest-dark: #204333;
  --line: #e0e6db;
  --paper: #fbfcf8;
  --sage: #edf2e8;
  --gold: #796744;
  --radius: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; font-size: 14px; line-height: 1.65; }
button, select { font: inherit; }
button, a, select, summary { -webkit-tap-highlight-color: transparent; }
button, summary, select { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .65; }
a { color: var(--forest); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid #699342; outline-offset: 4px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(29px, 2.55vw, 40px); line-height: 1.45; letter-spacing: -.045em; font-weight: 650; }
.headline-part { display: inline-block; }
h2 { font-size: 18px; line-height: 1.6; font-weight: 650; }
h3 { font-size: 16px; font-weight: 650; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -90px; left: 20px; z-index: 100; background: white; padding: 12px 20px; border: 1px solid var(--forest); border-radius: 5px; }
.skip-link:focus { top: 12px; }
.preview-bar { min-height: 37px; padding: 7px 20px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 10px; row-gap: 2px; font-size: 11px; color: #52634c; background: #e9efdf; }
.preview-bar strong { font-weight: 650; white-space: nowrap; }
.preview-dot { width: 6px; height: 6px; background: #6c8556; border-radius: 50%; }
.shell { display: grid; grid-template-columns: 235px minmax(0,1fr); min-height: calc(100svh - 37px); }
.sidebar { display: flex; flex-direction: column; padding: 34px 22px 24px; border-right: 1px solid var(--line); background: #f0f3ed; }
.brand { display: inline-flex; align-items: center; gap: 6px; width: fit-content; color: #244c3b; font-family: Arial, sans-serif; font-size: 38px; font-weight: 750; letter-spacing: -2.5px; line-height: 1; }
.brand:hover { text-decoration: none; }
.brand span { color: #7e9e6f; font-size: 25px; letter-spacing: 0; margin-top: 3px; }
.brand-caption { margin-top: 13px; color: #63725f; letter-spacing: 1.45px; font-size: 8px; }
.workspace { display: flex; align-items: center; gap: 10px; margin: 36px 0 25px; padding-bottom: 23px; border-bottom: 1px solid #dce3d7; }
.workspace-avatar { width: 35px; height: 35px; flex-shrink: 0; border: 1px solid #d5dfcd; background: #e5ecdf; border-radius: 10px; display: grid; place-items: center; color: #4f6b45; font-family: Georgia, serif; font-size: 18px; }
.workspace strong { font-size: 12px; font-weight: 600; display: block; }
.workspace small { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.nav-label { margin: 25px 12px 8px; color: #66755f; font-size: 9px; letter-spacing: 1.6px; }
.nav-label:first-child { margin-top: 0; }
.nav-item { min-height: 45px; display: flex; gap: 11px; align-items: center; padding: 11px 12px; border-radius: 8px; margin: 3px 0; color: #5b6b5c; font-size: 13px; }
.nav-item:hover { background: #e6ecdf; text-decoration: none; }
.nav-item[aria-current] { background: #dfe8d6; color: #2f573f; font-weight: 650; }
.nav-item svg { width: 19px; height: 19px; }
.nav-dot { width: 5px; height: 5px; background: #8b9183; border-radius: 50%; margin-left: auto; flex-shrink: 0; }
.nav-dot.active { background: #5d7d49; }
.nav-dot.none { background: #a99c7b; }
.nav-dot.unknown { background: transparent; border: 1px solid #778374; width: 6px; height: 6px; }
.sidebar-note { margin-top: auto; padding: 60px 12px 25px; }
.note-rule { display: block; height: 3px; width: 23px; background: #93aa80; margin-bottom: 19px; }
.sidebar-note strong { font-size: 13px; font-weight: 500; line-height: 1.9; }
.sidebar-note p { font-size: 11px; margin-top: 10px; color: #6b7866; line-height: 1.9; }
.version { font-size: 8px; letter-spacing: 1.2px; color: #6b7767; margin-left: 12px; }
.body-wrap { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 78px; padding: 0 42px; display: flex; align-items: center; gap: 15px; background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: 15px; color: var(--muted); font-size: 11px; }
.breadcrumb strong { color: #465c49; font-weight: 500; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 23px; }
.switch-button { display: flex; align-items: center; gap: 9px; min-height: 44px; border: 0; background: none; padding: 4px 0; color: #5e7257; font-size: 12px; }
.switch-button:hover { color: var(--forest-dark); }
.switch-button svg { display: block; width: 17px; height: 17px; }
.avatar { width: 36px; height: 36px; border: 1px solid #dce3d4; background: #edf1e5; border-radius: 50%; color: #526846; font-size: 12px; }
.icon-button { width: 44px; height: 44px; padding: 8px; border: 0; background: transparent; display: inline-grid; place-items: center; border-radius: 7px; }
.icon-button:hover { background: var(--sage); }
.mobile-menu { display: none; }
main { padding: 39px 42px 32px; max-width: 1440px; width: 100%; margin: 0 auto; flex: 1; }
main:focus { outline: none; }
.page-heading { margin-bottom: 34px; }
.eyebrow { color: #5e7c4a; font-size: 10px; letter-spacing: 2px; font-weight: 600; margin-bottom: 10px; }
.subtitle { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.section-heading h2 { font-size: 17px; }
.count-label { color: #68785f; font-size: 11px; }
.count-label strong { font-weight: 600; }
.count-label > span { color: #738068; }
.apps-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 19px; }
.app-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: 0 3px 8px #273c3203; }
.card-art { min-height: 172px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.documents { background: #edf0df; }
.contacts { background: #f1ede2; }
.procedures { background: #e7eee6; }
.card-art::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; border: 1px solid #ffffffb3; right: -55px; top: -90px; }
.status-chip { display: inline-flex; gap: 4px; align-items: center; border-radius: 20px; padding: 5px 10px; font-size: 10px; line-height: 1.5; white-space: nowrap; background: #edf3e5; color: #4e6a3c; }
.status-chip::before { content: ""; height: 4px; width: 4px; margin-right: 2px; border-radius: 50%; background: currentColor; }
.status-chip.none { color: #76633d; background: #f3eee3; }
.status-chip.unknown { color: #626c60; background: #edf0e9; }
.sample-label { opacity: .85; font-size: 9px; }
.card-art > .status-chip { position: absolute; top: 15px; left: 16px; z-index: 1; background: #ffffffe0; }
.paper-stack { width: 86px; height: 103px; background: #fffef7; border: 1px solid #d7ddc5; border-radius: 4px; transform: rotate(-9deg); box-shadow: 7px 6px 0 #dfe6cc, 13px 12px 0 #d2dcc0, 0 14px 20px #50673615; padding: 16px 13px; position: relative; margin-top: 20px; }
.paper-stack b { font-size: 7px; color: #6f8757; margin-bottom: 12px; display: block; }
.paper-stack i { display: block; height: 3px; margin-top: 7px; border-radius: 2px; background: #e4e8d8; }
.paper-stack i:nth-child(3) { width: 75%; }
.paper-stack i:nth-child(5) { width: 58%; }
.paper-stack > span { position: absolute; right: 9px; bottom: 12px; width: 18px; height: 18px; border: 1px solid #a9bd84; border-radius: 50%; color: #839962; font-size: 8px; display: grid; place-items: center; }
.business-cards { width: 124px; height: 76px; background: #fefdf9; border: 1px solid #ded7c5; border-radius: 4px; transform: rotate(-7deg); box-shadow: 7px -8px 0 -1px #e0dbc9, 0 12px 17px #88724b15; padding: 14px; margin-top: 20px; position: relative; }
.business-cards b { font-size: 8px; letter-spacing: 1px; color: #806d49; }
.business-cards i { display: block; height: 3px; width: 55px; background: #e6e0d2; margin-top: 8px; }
.business-cards i + i { width: 35px; margin-top: 5px; }
.business-cards > span { position: absolute; right: 13px; top: 15px; width: 18px; height: 18px; background: #e4ddca; border-radius: 50%; }
.procedure-book { width: 91px; height: 109px; background: #fffef8; border: 1px solid #d7e2d2; box-shadow: 7px 7px 0 #c9d9c8, 0 15px 18px #3a684d12; border-radius: 3px 8px 8px 3px; padding: 15px 11px; transform: rotate(7deg); margin-top: 20px; position: relative; }
.procedure-book::before { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; border-left: 1px solid #dce6d4; }
.procedure-book b { font-size: 7px; letter-spacing: .3px; color: #65866a; display: block; margin: 0 0 11px 7px; }
.procedure-book i { display: flex; align-items: center; gap: 6px; margin: 7px 0 0 8px; }
.procedure-book i::before { content: "✓"; font-size: 5px; width: 9px; height: 9px; display: grid; place-items: center; background: #d8e5cf; border-radius: 2px; color: #54713e; }
.procedure-book i::after { content: ""; width: 35px; height: 3px; background: #e2e9d9; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 23px; }
.app-eyebrow { font-size: 8px; letter-spacing: 1.25px; color: #6c7b63; margin-bottom: 5px; }
.card-body h3 { font-size: 22px; letter-spacing: -.03em; }
.card-caption { color: #64745d; font-size: 11px; margin-top: 9px; line-height: 1.9; min-height: 42px; }
.card-meta { color: #6d7863; font-size: 10px; padding: 17px 0 16px; margin-top: auto; }
.button { min-height: 44px; padding: 10px 16px; border: 1px solid #d5dfcd; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; color: #456139; background: white; font-size: 12px; font-weight: 550; }
.button:hover:not(:disabled) { background: #f3f6ed; text-decoration: none; }
.button.primary { color: #f8fbf2; background: var(--forest); border-color: var(--forest); }
.button.primary:hover { background: var(--forest-dark); }
.button svg { width: 17px; height: 17px; }
.card-body .button { justify-content: space-between; }
.lower-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(235px,1fr); gap: 22px; margin-top: 27px; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-title h2 { font-size: 16px; }
.plain-badge { font-size: 10px; display: inline-block; padding: 3px 9px; border-radius: 5px; color: #5e6d56; background: #f0f3eb; white-space: nowrap; }
.empty-state { display: flex; align-items: center; gap: 18px; padding: 35px 0 19px; }
.empty-icon { width: 49px; height: 59px; display: grid; place-items: center; flex-shrink: 0; background: #f4f6ee; border: 1px dashed #dce3d3; border-radius: 9px; color: #879774; }
.empty-icon svg { width: 25px; height: 25px; }
.empty-state h3 { font-size: 14px; color: #5c7051; }
.empty-state p { font-size: 11px; line-height: 1.9; color: #6b7962; margin-top: 9px; }
.ownership { border-radius: var(--radius); background: #e9efdf; padding: 25px 28px; }
.ownership-icon { color: #789165; margin-bottom: 12px; }
.ownership-icon svg { width: 28px; height: 28px; }
.ownership h2 { font-size: 22px; letter-spacing: -.035em; line-height: 1.55; color: #425c36; }
.ownership p { margin-top: 12px; font-size: 10px; line-height: 1.9; color: #5e7253; }
.text-link { min-height: 35px; display: inline-flex; align-items: center; gap: 10px; color: #49633d; font-size: 11px; }
.text-link svg { width: 15px; height: 15px; }
.ownership .text-link { margin-top: 10px; }
.preview-settings { margin-top: 25px; border-top: 1px solid var(--line); padding-top: 19px; color: #56664e; font-size: 11px; }
.preview-settings summary { width: fit-content; min-height: 30px; }
.preview-settings summary > span { color: #748069; margin-left: 12px; font-size: 10px; }
.preview-settings-body { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 15px 0 4px; }
.preview-settings-body select { min-height: 44px; max-width: 100%; font-size: 13px; color: var(--ink); background: #fff; border: 1px solid #cfdac4; border-radius: 7px; padding: 8px 36px 8px 12px; }
.preview-settings-body p { width: 100%; color: #6c7963; }
footer { padding: 19px 42px; border-top: 1px solid var(--line); color: #687960; font-size: 9px; display: flex; justify-content: space-between; gap: 20px; }
footer span > span { margin: 0 8px; }
.integration-panel { display: grid; grid-template-columns: minmax(190px, .75fr) minmax(0,1.25fr); gap: 35px; padding: 32px; align-items: center; }
.integration-art { min-height: 275px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.integration-art > div { scale: 1.45; margin: 0; }
.integration-copy h2 { font-size: 24px; letter-spacing: -.03em; margin: 15px 0 14px; }
.integration-copy > p { color: var(--muted); font-size: 13px; line-height: 1.9; }
.boundary-note { display: flex; gap: 10px; color: #6d755d; font-size: 11px; line-height: 1.8; margin: 20px 0; padding-top: 18px; border-top: 1px solid var(--line); }
.boundary-note svg { width: 17px; height: 17px; margin-top: 2px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.scope-panel { margin-top: 23px; }
.scope-panel h2 { font-size: 16px; }
.scope-panel dl { margin: 18px 0 0; }
.scope-panel dl > div { display: grid; grid-template-columns: 125px 1fr; gap: 20px; padding: 15px 0; border-top: 1px solid #e8ece2; font-size: 12px; }
.scope-panel dt { font-weight: 600; color: #52664b; }
.scope-panel dd { margin: 0; color: var(--muted); line-height: 1.9; }
.notice { display: flex; align-items: flex-start; gap: 12px; color: #5c6e50; background: #eef3e6; border: 1px solid #e0e7d6; border-radius: 10px; padding: 17px 20px; margin-bottom: 24px; font-size: 12px; }
.notice svg { width: 18px; height: 18px; margin-top: 2px; }
.notice strong { font-weight: 600; }
.scope-panel + .notice { margin-top: 23px; }
.contract-panel { padding: 4px 26px; }
.contract-row { display: flex; align-items: center; gap: 19px; padding: 25px 0; }
.contract-row + .contract-row { border-top: 1px solid var(--line); }
.app-icon { display: grid; place-items: center; width: 45px; height: 49px; border-radius: 9px; color: #657a54; flex-shrink: 0; }
.app-icon.contacts { color: #87744e; }
.app-icon.procedures { color: #597d5e; }
.contract-name { flex: 1; }
.contract-name h2 { font-size: 17px; }
.contract-name p { font-size: 11px; color: var(--muted); margin-top: 5px; }
.contract-row > .text-link { margin-left: 20px; }
.pending-panel { margin-top: 23px; }
.pending-panel h2 { font-size: 17px; }
.pending-panel p { font-size: 12px; color: var(--muted); margin: 13px 0 17px; max-width: 680px; line-height: 1.9; }
.connection-panel { display: flex; gap: 26px; align-items: flex-start; padding: 32px; }
.connection-icon { display: grid; place-items: center; width: 75px; height: 75px; border-radius: 18px; background: #edf2e6; color: #73915b; flex-shrink: 0; }
.connection-icon svg { width: 35px; height: 35px; }
.connection-panel h2 { font-size: 25px; margin-top: 12px; letter-spacing: -.03em; }
.connection-panel p { max-width: 640px; font-size: 13px; color: var(--muted); line-height: 1.9; margin: 13px 0 20px; }
dialog { width: min(560px,calc(100% - 32px)); max-height: calc(100svh - 50px); padding: 27px; border: 1px solid #dce4d1; background: #fffefb; border-radius: 18px; box-shadow: 0 30px 100px #152b2640; color: var(--ink); }
dialog::backdrop { background: #203b2b66; backdrop-filter: blur(3px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; margin: -7px -10px 5px 0; }
.dialog-top .eyebrow { margin: 0; }
.dialog-top .icon-button { font-size: 28px; font-weight: 300; }
dialog h2 { font-size: 24px; letter-spacing: -.03em; }
.dialog-description { color: var(--muted); font-size: 12px; line-height: 1.9; margin-top: 10px; }
#switcher-list { margin: 22px 0 15px; border-top: 1px solid var(--line); }
.switcher-item { display: flex; align-items: center; gap: 13px; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.switcher-item:hover { background: #f5f7ef; text-decoration: none; }
.switcher-name { flex: 1; }
.switcher-name strong { display: block; font-size: 15px; font-weight: 550; }
.switcher-name small { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.switcher-item > svg { width: 16px; height: 16px; }
#account-dialog > .button { margin-top: 24px; }
.menu-backdrop { position: fixed; z-index: 20; inset: 0; padding: 0; border: 0; background: #203b2b66; }
@media (min-width: 1500px) {
  main { padding-top: 49px; }
  .card-art { min-height: 195px; }
  .card-body { padding: 26px; }
}
@media (max-width: 1200px) {
  .shell { grid-template-columns: 210px minmax(0,1fr); }
  .sidebar { padding-inline: 17px; }
  .topbar, footer { padding-inline: 28px; }
  main { padding: 34px 28px 28px; }
  .apps-grid { gap: 14px; }
  .card-body { padding: 20px 18px; }
  .card-body h3 { font-size: 20px; }
  .card-art { min-height: 155px; }
  .card-caption { font-size: 11px; }
  .lower-grid { grid-template-columns: minmax(0,1.4fr) minmax(220px,1fr); gap: 17px; }
  .integration-panel { gap: 25px; padding: 25px; }
  .contract-row { gap: 14px; }
  .contract-row > .text-link { margin-left: 0; }
}
@media (min-width: 801px) and (max-width: 1050px) {
  .shell { grid-template-columns: 188px minmax(0,1fr); }
  .sidebar { padding-inline: 13px; }
  .workspace { gap: 8px; }
  .workspace strong { font-size: 11px; }
  .workspace small { font-size: 9px; }
  .nav-item { font-size: 12px; gap: 9px; padding-inline: 10px; }
  main { padding-inline: 22px; }
  .card-body { padding: 18px 13px; }
  .card-body h3 { font-size: 18px; }
  .card-body .button { font-size: 11px; padding-inline: 12px; }
  .card-art > .status-chip { left: 10px; top: 12px; padding-inline: 8px; }
  .card-caption { min-height: 62px; }
  .card-meta { min-height: 63px; }
  .lower-grid { grid-template-columns: 1fr; }
  .ownership { display: grid; grid-template-columns: 40px 1fr 1.3fr; gap: 12px; align-items: center; }
  .ownership-icon { margin: 0; }
  .ownership h2 { font-size: 20px; }
  .ownership p { margin: 0; }
  .ownership .text-link { grid-column: 2 / -1; margin: 0; }
  .integration-panel { grid-template-columns: 1fr; }
  .integration-art { min-height: 185px; }
  .integration-art > div { scale: 1.1; }
  .contract-name p { max-width: 180px; }
}
@media (max-width: 800px) {
  .preview-bar { padding: 7px 16px; font-size: 10px; line-height: 1.6; }
  .shell { display: block; }
  .sidebar { visibility: hidden; transform: translateX(-110%); position: fixed; z-index: 30; left: 0; top: 0; bottom: 0; width: 260px; max-width: calc(100vw - 45px); padding: 30px 22px 23px; overflow-y: auto; transition: transform .18s; box-shadow: 15px 0 50px #31432a2b; }
  .sidebar.open { visibility: visible; transform: translateX(0); }
  .sidebar-note { padding-top: 35px; }
  .mobile-menu { display: inline-grid; margin-left: -10px; }
  .topbar { height: 69px; padding-inline: 24px; gap: 7px; }
  .breadcrumb { font-size: 12px; }
  .breadcrumb > span { display: none; }
  .topbar-actions { gap: 17px; }
  main { padding: 31px 24px 27px; }
  .apps-grid { gap: 15px; }
  .card-body { padding: 18px 16px; }
  .card-body h3 { font-size: 20px; }
  .card-caption { min-height: 63px; }
  .card-meta { min-height: 62px; }
  .card-body .button { font-size: 11px; padding-inline: 12px; }
  .lower-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .empty-state { align-items: flex-start; gap: 13px; padding-top: 26px; }
  .empty-icon { width: 38px; height: 48px; }
  .panel { padding: 23px; }
  .ownership { padding: 23px; }
  .integration-panel { grid-template-columns: 1fr; gap: 25px; }
  .integration-art { min-height: 190px; }
  .integration-art > div { scale: 1.15; }
  .integration-copy h2 { font-size: 23px; }
  .contract-panel { padding-block: 0; }
  footer { padding-inline: 24px; }
}
@media (max-width: 620px) {
  .preview-bar > span:last-child { width: 100%; text-align: center; font-size: 9px; }
  .topbar { padding-inline: 20px; }
  .topbar-actions { gap: 14px; }
  .switch-button { font-size: 11px; gap: 7px; }
  .avatar { width: 32px; height: 32px; }
  main { padding: 28px 20px 26px; }
  .page-heading { margin-bottom: 28px; }
  h1 { font-size: 29px; }
  .subtitle { font-size: 12px; margin-top: 12px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.8px; }
  .section-heading h2 { font-size: 16px; }
  .count-label { font-size: 10px; }
  .apps-grid { grid-template-columns: 1fr; gap: 15px; }
  .app-card { display: grid; grid-template-columns: 116px minmax(0,1fr); border-radius: 13px; }
  .card-art { min-height: 222px; }
  .card-art > .status-chip { top: 13px; left: 9px; font-size: 9px; padding: 4px 8px; }
  .card-art .sample-label { font-size: 8px; }
  .card-art > .paper-stack { scale: .79; margin-top: 15px; }
  .card-art > .business-cards { scale: .7; flex-shrink: 0; margin-top: 15px; }
  .card-art > .procedure-book { scale: .79; margin-top: 15px; }
  .card-body { padding: 21px 18px; }
  .card-body h3 { font-size: 21px; }
  .card-caption { min-height: 0; font-size: 11px; margin-top: 7px; }
  .card-meta { min-height: 0; padding: 14px 0; font-size: 9px; }
  .card-body .button { min-height: 42px; font-size: 11px; }
  .app-eyebrow { font-size: 7px; letter-spacing: 1px; }
  .lower-grid { grid-template-columns: 1fr; margin-top: 22px; }
  .panel { padding: 22px; border-radius: 13px; }
  .empty-state { padding: 24px 0 4px; align-items: center; }
  .empty-state p { font-size: 11px; }
  .ownership { padding: 23px; display: grid; grid-template-columns: 35px 1fr; column-gap: 14px; }
  .ownership-icon { grid-row: 1 / 4; margin: 0; padding-top: 4px; }
  .ownership h2 { font-size: 20px; }
  .ownership h2 br { display: none; }
  .ownership p, .ownership .text-link { grid-column: 2; }
  .preview-settings summary > span { display: block; margin-left: 14px; }
  .preview-settings-body { align-items: stretch; flex-direction: column; }
  .preview-settings-body select { font-size: 16px; }
  footer { font-size: 9px; padding: 18px 20px; }
  footer > span:last-child { display: none; }
  .scope-panel dl > div { grid-template-columns: 1fr; gap: 7px; padding-block: 17px; }
  .integration-art { min-height: 172px; }
  .integration-art > div { scale: 1.05; }
  .integration-copy h2 { font-size: 22px; }
  .integration-copy > p { font-size: 12px; }
  .notice { padding: 15px; font-size: 11px; margin-bottom: 20px; }
  .contract-panel { padding: 0 19px; }
  .contract-row { display: grid; grid-template-columns: 39px minmax(0,1fr); gap: 12px; padding-block: 22px; }
  .app-icon { width: 39px; height: 44px; }
  .contract-name h2 { font-size: 17px; }
  .contract-name p { font-size: 10px; }
  .contract-row > .status-chip { grid-column: 2; justify-self: start; }
  .contract-row > .text-link { grid-column: 2; }
  .pending-panel h2 { font-size: 16px; }
  .connection-panel { gap: 17px; flex-direction: column; }
  .connection-icon { width: 57px; height: 57px; border-radius: 12px; }
  .connection-icon svg { width: 30px; height: 30px; }
  .connection-panel h2 { font-size: 23px; }
  .connection-panel p { font-size: 12px; }
  dialog { padding: 22px; }
  .switcher-item { gap: 10px; flex-wrap: wrap; }
  .switcher-name { min-width: 135px; }
  .switcher-item > .status-chip { margin-left: 49px; }
  .switcher-item > svg { margin-left: auto; }
}
@media (max-width: 360px) {
  main { padding-inline: 16px; }
  .topbar { padding-inline: 16px; }
  .topbar-actions { gap: 9px; }
  .app-card { grid-template-columns: 96px minmax(0,1fr); }
  .card-body { padding-inline: 14px; }
  .card-body h3 { font-size: 19px; }
  .card-art > .status-chip { left: 5px; padding-inline: 6px; }
  .status-chip { gap: 2px; }
  h1 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
