/* The licensing dashboard shell: a quiet side dash, one stage, GetMoat's dock and a one-line status bar.
   Every colour, face, radius and effect comes from the theme tokens in /dialogue.css. Headlines and the wordmark use
   --display; everything else is UI text in --body. Light and dark keep today's metrics in the block before the media queries. */
html,body{height:100%;min-width:280px;overflow:hidden}
.skip-link{position:fixed;top:-80px;left:16px;z-index:100;padding:12px 16px;border-radius:var(--radius-field);background:var(--ink);color:var(--bg);font-weight:var(--button-weight,calc(var(--body-weight)*2 - 300));text-decoration:none}
.skip-link:focus{top:12px}
.noscript{position:fixed;z-index:100;inset:auto 10% 10%;padding:22px;border:1px solid var(--ghost);border-radius:var(--radius);background:var(--bg-raised);line-height:1.6}

.company-shell{--side:268px;display:grid;height:100vh;height:100dvh;width:100%;max-width:1920px;margin:0 auto;grid-template-columns:var(--side) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto;min-width:0}
/* The side dash sits on the page, so the theme's mesh shows through it. It turns opaque when it slides over the page on phones. */
.company-sidebar{grid-column:1;grid-row:1/4;position:relative;z-index:6;display:flex;flex-direction:column;gap:22px;min-height:0;padding:24px 14px 16px 24px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--ghost) transparent;background:transparent;border-right:1px solid var(--ghost)}
.company-topbar{display:none;align-items:center;gap:14px;min-width:0;padding:14px clamp(16px,3vw,40px)}
.company-main{grid-column:2;grid-row:1;position:relative;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--ghost) transparent;padding:26px clamp(20px,3.4vw,52px) 18px}
.company-main.journey-page{display:flex;flex-direction:column;overflow:hidden;padding-bottom:4px}
.company-main.academy-page{display:flex;flex-direction:column}
.getmoat-dock{grid-column:2;grid-row:2}
.company-footer{grid-column:2;grid-row:3;display:flex;align-items:center;gap:6px 18px;min-width:0;padding:6px clamp(20px,3.4vw,52px) 10px;font:var(--body-weight) 14px/1.4 var(--body);color:var(--muted)}
#company-save-state{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#company-save-state.is-error{color:var(--danger);white-space:normal}
.save-actions{display:flex;gap:16px;flex-wrap:wrap}
.save-actions button{min-height:36px;font:var(--button-weight,calc(var(--body-weight)*2 - 300)) 14px/1 var(--body);letter-spacing:var(--button-tracking,calc((500 - var(--body-weight))*.0002em));color:var(--ink)}
.footer-mode{white-space:nowrap;font:500 12px/1 var(--label);letter-spacing:.08em;text-transform:uppercase}
.is-error{color:var(--danger)}

/* Account screens have no side dash: the top bar carries the brand and settings. */
.company-shell.account-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto}
.account-layout .company-topbar{display:flex;grid-column:1;grid-row:1}
.account-layout .company-main{grid-column:1;grid-row:2;width:100%;max-width:1240px;margin:0 auto}
.account-layout .company-footer{grid-column:1;grid-row:3}
.account-layout .getmoat-dock{display:none}

.brand{display:inline-flex;align-items:center;gap:10px;font:var(--display-weight) 23px/1 var(--display);letter-spacing:var(--display-tracking,-.02em);color:var(--ink);text-decoration:none;white-space:nowrap}
.brand svg{display:none;width:24px;height:26px;flex:none}
.side-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.side-close{display:none;min-height:40px;font:var(--button-weight,calc(var(--body-weight)*2 - 300)) 15px/1 var(--body);letter-spacing:var(--button-tracking,calc((500 - var(--body-weight))*.0002em));color:var(--muted)}
.side-company{display:grid;gap:4px}
.project-picker{margin:0;min-width:0}
/* The system switcher reads as a quiet outlined control (no outline in light and dark). */
.project-picker select{min-height:40px;color:var(--ink);padding:8px 34px 8px 12px;border-radius:var(--radius-field);background-color:transparent;background-position:right 14px center;font:var(--button-weight,calc(var(--body-weight)*2 - 300)) 15px/1.25 var(--body);letter-spacing:0;text-overflow:ellipsis}
.project-picker select:hover{background-color:var(--fill);color:var(--ink)}
.side-status{margin:0;font:var(--body-weight) 14px/1.35 var(--body);color:var(--muted)}

#company-journey-nav{display:grid;gap:6px}
#company-journey-nav>[data-company-section=journey]{justify-self:start;min-height:28px;padding:2px 0;font:500 12px/1 var(--label);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
#company-journey-nav>[data-company-section=journey]:hover,#company-journey-nav>[data-company-section=journey][aria-current=page]{color:var(--ink)}
/* The step rail: quiet rows, done steps a shade brighter, the current step in the accent wash with an accent hairline. */
.journey-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.journey-step{display:flex;align-items:center;gap:12px;width:100%;min-height:40px;padding:6px 10px;border:1px solid transparent;border-radius:var(--radius);font:var(--body-weight) 14px/1.2 var(--body);color:var(--muted);text-align:left;transition:background .2s,color .2s,border-color .2s}
.journey-step[data-status=done]{color:var(--ink-2)}
.journey-step[aria-current=step]{color:var(--ink)}
.journey-step:hover:not(:disabled){background:var(--fill);color:var(--ink)}
.journey-step[aria-current=step]{background:var(--accent-wash);border-color:var(--accent-line)}
.journey-step:disabled{cursor:progress;opacity:.7}
.journey-step-number{margin-left:auto;font:500 12px/1 var(--label);letter-spacing:.04em;color:var(--muted)}
.journey-step .hx[data-status=active]{animation:none}
.journey-step[aria-current=step] .hx[data-status=active]{animation:hx-pulse 1.6s ease-in-out infinite}

.side-badge>summary{display:flex;align-items:center;gap:8px;min-height:30px;cursor:pointer;list-style:none;font:500 12px/1.2 var(--label);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.side-badge>summary::-webkit-details-marker{display:none}
.side-badge>summary::after{content:"+";font:500 14px/1 var(--label)}
.side-badge[open]>summary::after{content:"\2212"}
.side-badge>summary:hover{color:var(--ink)}
.side-badge:empty{display:none}
.licensing-piece-list{list-style:none;margin:6px 0 2px;padding:0;display:grid;gap:4px}
.licensing-piece-list li{display:flex;justify-content:space-between;gap:12px;font:calc(var(--button-weight,calc(var(--body-weight)*2 - 300)) - 100) 14px/1.3 var(--body);color:var(--muted)}
.licensing-piece-list li[data-ready=true]{color:var(--ink)}
.licensing-piece-list li span:last-child{flex:none;font:500 14px/1.6 var(--label);color:var(--muted)}
.side-frameworks{display:grid;gap:9px}
#company-frameworks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.framework{display:flex;align-items:center;gap:12px;font:var(--button-weight,calc(var(--body-weight)*2 - 300)) 14px/1.2 var(--body);color:var(--muted)}
.framework[data-target=true]{color:var(--ink)}
.side-frameworks-note{margin:2px 0 0;font:var(--body-weight) 13px/1.45 var(--body);color:var(--muted)}
.side-frameworks-note:empty{display:none}
.framework .hx{width:12px;height:14px}

.company-tools-group>summary{display:flex;align-items:center;gap:8px;min-height:36px;cursor:pointer;list-style:none;font:var(--button-weight,calc(var(--body-weight)*2 - 300)) 15px/1.2 var(--body);letter-spacing:var(--button-tracking,calc((500 - var(--body-weight))*.0002em));color:var(--muted)}
.company-tools-group>summary::-webkit-details-marker{display:none}
.company-tools-group>summary::after{content:"+";font:500 16px/1 var(--label);color:var(--muted)}
.company-tools-group[open]>summary::after{content:"\2212"}
.company-tools-group>summary:hover{color:var(--ink)}
.company-tools-group nav{display:grid;gap:0;padding:2px 0 6px}
.company-tools-group nav button{min-height:34px;padding:5px 0;font:calc(var(--button-weight,calc(var(--body-weight)*2 - 300)) - 100) 14px/1.25 var(--body);color:var(--muted);text-align:left}
.company-tools-group nav button:hover,.company-tools-group nav button[aria-current=page]{color:var(--ink)}
.company-tools-group nav button[aria-current=page]{text-decoration:underline;text-decoration-color:var(--link-underline);text-underline-offset:5px}
#company-workspace-tools{margin-top:2px}
#company-workspace-tools>summary{font-size:14px}

.side-foot{margin-top:auto;display:flex;flex-direction:column;gap:10px;padding-top:6px}
/* Two-way switches (Voice / Writing, Agentic / Manual): the chosen word in ink and underlined in the accent. */
.side-toggle{display:flex;gap:16px;font:var(--button-weight,calc(var(--body-weight)*2 - 300)) 14px/1.2 var(--body);letter-spacing:var(--button-tracking,calc((500 - var(--body-weight))*.0002em))}
.side-toggle button{min-height:30px;color:var(--muted);transition:color .2s}
.side-toggle button:hover{color:var(--ink-2)}
.side-toggle button[aria-pressed=true]{color:var(--ink);text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:2px;text-underline-offset:6px}
.side-note{margin:-4px 0 2px;max-width:30ch;color:var(--muted);font-size:14px;line-height:1.35}
.appearance{position:relative}
.appearance>summary{display:inline-flex;align-items:center;min-height:32px;cursor:pointer;list-style:none;font:calc(var(--button-weight,calc(var(--body-weight)*2 - 300)) - 100) 14px/1 var(--body);letter-spacing:var(--button-tracking,calc((500 - var(--body-weight))*.0002em));color:var(--muted)}
.appearance>summary::-webkit-details-marker{display:none}
.appearance>summary:hover,.appearance[open]>summary{color:var(--ink)}
.appearance-menu{position:absolute;z-index:40;left:0;bottom:calc(100% + 8px);display:grid;gap:4px;width:288px;max-width:calc(100vw - 32px);padding:12px;border:1px solid var(--ghost);border-radius:var(--radius);background:var(--bg-raised);box-shadow:var(--shadow)}
.company-topbar .appearance{margin-left:auto}
.company-topbar .appearance-menu{left:auto;right:0;bottom:auto;top:calc(100% + 8px)}
.appearance-menu>button,.appearance-menu>a{display:flex;align-items:center;min-height:40px;padding:6px 10px;border-radius:var(--radius);font:calc(var(--button-weight,calc(var(--body-weight)*2 - 300)) - 100) 15px/1.2 var(--body);color:var(--ink);text-decoration:none}
.appearance-menu>button:hover,.appearance-menu>a:hover{background:var(--fill-2)}
/* The theme choices come from theme.js (mountOptions); these only set their type and the chosen fill. */
.theme-options{display:flex;gap:4px;padding:0 0 6px}
.theme-options button{flex:1;min-height:38px;border-radius:var(--radius);font:calc(var(--button-weight,calc(var(--body-weight)*2 - 300)) - 100) 14px/1.15 var(--body);color:var(--ink-2)}
.theme-options button:hover{background:var(--fill-2);color:var(--ink)}
.theme-options button[aria-pressed=true]{background:var(--fill-2);color:var(--ink)}

/* Section pages outside the licensing stage. */
.journey-return{display:inline-flex;margin:0 0 14px;min-height:36px;font:var(--button-weight,calc(var(--body-weight)*2 - 300)) 15px/1 var(--body);letter-spacing:var(--button-tracking,calc((500 - var(--body-weight))*.0002em));color:var(--muted)}
.journey-return:hover{color:var(--ink)}
.section-header{position:relative;z-index:1;max-width:860px;margin:0 0 24px}
.section-header h1{margin:0 0 12px;font:var(--display-weight) clamp(36px,4vw,60px)/1.02 var(--display);letter-spacing:var(--display-tracking,-.04em);white-space:pre-line}
.section-lead{margin:0;max-width:640px;font:var(--body-weight) 17px/1.5 var(--body);color:var(--muted)}
.content-grid{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.8fr);gap:36px;max-width:1100px}
.content-grid.single{grid-template-columns:minmax(0,740px)}
.panel{min-width:0}
.panel h2{margin:0 0 14px;font:var(--display-weight) 24px/1.2 var(--display);letter-spacing:var(--display-tracking,-.025em)}
.panel>p{margin:0 0 16px;color:var(--muted)}
.panel>p:last-child{margin-bottom:0}
.panel-caption,.field-note{margin:12px 0 0;font:var(--body-weight) 14px/1.5 var(--body);color:var(--muted)}
.action-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px 26px;margin-top:22px}
.field{margin-bottom:18px}
.field:last-child{margin-bottom:0}
.field-pair{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:16px}
.company-form textarea{min-height:110px}
.tag{display:inline-flex;align-items:center;gap:7px;font:500 12px/1.3 var(--label);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.tag.accent{color:var(--ink)}
.metadata-list{margin:0;display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px 22px;font-size:16px}
.metadata-list dt{color:var(--muted)}
.metadata-list dd{margin:0;overflow-wrap:anywhere}
.empty-state{padding:8px 0;max-width:520px}
.empty-state h2{margin:0 0 12px;font:var(--display-weight) 24px/1.2 var(--display);letter-spacing:var(--display-tracking,-.025em)}
.empty-state>p{color:var(--muted)}
.empty-service{padding:12px 0 4px}
/* Tabs: the chosen one in ink with an accent underline. */
.section-tabs{display:flex;flex-wrap:wrap;gap:4px 24px;margin:0 0 22px}
.section-tabs button{min-height:40px;font:var(--button-weight,calc(var(--body-weight)*2 - 300)) 15px/1.2 var(--body);letter-spacing:var(--button-tracking,calc((500 - var(--body-weight))*.0002em));color:var(--muted)}
.section-tabs button:hover{color:var(--ink-2)}
.section-tabs [aria-pressed=true]{color:var(--ink);text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:2px;text-underline-offset:8px}
.context-details{max-width:740px;margin-top:22px}
.context-details>summary{display:flex;align-items:center;gap:8px;min-height:40px;cursor:pointer;list-style:none;font:var(--button-weight,calc(var(--body-weight)*2 - 300)) 15px/1.3 var(--body);color:var(--muted)}
.context-details>summary::-webkit-details-marker{display:none}
.context-details>summary::after{content:"+";font:500 15px/1 var(--label)}
.context-details[open]>summary::after{content:"\2212"}
.context-details>summary:hover{color:var(--ink)}
.context-details-body{padding:6px 0 14px;font-size:16px}
.context-details-body>p{margin:0 0 14px;color:var(--muted)}
.context-details-body>p:last-child{margin-bottom:0}
.capability-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.capability-list li{display:flex;gap:12px;align-items:flex-start;color:var(--muted)}
.capability-list li::before{content:"";flex:none;width:10px;height:11px;margin-top:6px;background:var(--ink);clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%)}

.document-viewbar{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;max-width:740px;margin-bottom:8px}
.document-viewbar .section-tabs{margin:0}
.dropzone{display:grid;place-items:center;text-align:center;min-height:200px;padding:22px;border:1px dashed var(--control-line);border-radius:var(--radius);background:var(--fill)}
.dropzone.dragging{background:var(--fill-2);outline:2px solid var(--accent);outline-offset:-2px}
.dropzone-symbol{width:34px;height:38px;margin-bottom:10px;background:var(--ink);clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);color:transparent;font-size:0}
.dropzone strong{display:block;font:var(--display-weight) 22px/1.2 var(--display);letter-spacing:var(--display-tracking,-.02em)}
.dropzone p{max-width:410px;margin:10px 0 14px;font-size:15px;color:var(--muted)}
.relationship-field{display:grid;grid-template-columns:130px minmax(0,260px);align-items:center;gap:14px;margin-top:16px}
.relationship-field label{margin:0}
.source-details-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.source-details-pair .relationship-field{display:block;margin-top:0}
.source-details-pair .relationship-field label{margin-bottom:8px}
.source-list{display:grid;gap:4px}
.source-item{display:flex;align-items:center;gap:14px;min-width:0;padding:10px 0}
.source-type{display:grid;place-items:center;flex:none;width:48px;height:44px;border-radius:var(--radius-field);background:var(--fill);font:calc(var(--button-weight,calc(var(--body-weight)*2 - 300)) - 100) 14px/1 var(--label);letter-spacing:.05em}
.source-description{min-width:0;flex:1}
.source-description strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:var(--button-weight,calc(var(--body-weight)*2 - 300)) 16px/1.3 var(--body)}
.source-description small{display:block;margin-top:3px;font-size:14px;color:var(--muted)}
.source-item button{min-width:44px;min-height:44px;font:var(--body-weight) 22px/1 var(--body);color:var(--muted)}
.source-item button:hover{color:var(--ink)}
.pagination{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:16px}
.pagination>span{font:500 14px/1 var(--label);color:var(--muted)}
.pagination button{min-width:40px;min-height:40px;font:var(--button-weight,calc(var(--body-weight)*2 - 300)) 18px/1 var(--body)}

.connector-toolbar{display:flex;align-items:center;gap:16px;max-width:740px;margin-bottom:20px}
.connector-toolbar input{max-width:520px}
.connector-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:1100px}
.connector-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 14px;min-width:0;padding:20px;border:1px solid var(--ghost);border-radius:var(--radius);background:var(--fill)}
.connector-card h2{margin:0;align-self:center;font:var(--button-weight,calc(var(--body-weight)*2 - 300)) 19px/1.2 var(--body);letter-spacing:var(--display-tracking,-.02em)}
.connector-card .tag{justify-self:end}
.connector-card p{grid-column:1/-1;margin:0;font-size:15px;line-height:1.5;color:var(--muted)}
.connector-card button{justify-self:start}
.connector-card button[aria-pressed=true]{color:var(--ink)}
.connector-card small{display:none}

.radio-options{display:grid;gap:6px;margin:0 0 18px;padding:0;border:0}
.radio-options legend{margin-bottom:12px;font:var(--button-weight,calc(var(--body-weight)*2 - 300)) 17px/1.3 var(--body)}
.radio-option{display:flex;align-items:center;gap:12px;min-height:46px;margin:0;font:var(--button-weight,calc(var(--body-weight)*2 - 300)) 17px/1.3 var(--body);color:var(--ink-2);cursor:pointer}
.insurance-summary{margin:0 0 18px;font:calc(var(--button-weight,calc(var(--body-weight)*2 - 300)) - 100) 18px/1.45 var(--body);color:var(--ink)}

.badge-preview{display:flex;align-items:center;gap:20px;max-width:620px;margin-bottom:20px;padding:22px;border:1px solid var(--ghost);border-radius:var(--radius);background:var(--fill)}
.badge-preview-symbol{display:grid;place-items:center;flex:none;width:52px;height:58px;background:var(--ink);color:var(--bg);clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);font:var(--button-weight,calc(var(--body-weight)*2 - 300)) 18px/1 var(--body)}
.badge-preview strong{font:var(--display-weight) 24px/1.15 var(--display);letter-spacing:var(--display-tracking,-.025em)}
.badge-preview p{margin:6px 0 0;font-size:15px;color:var(--muted);overflow-wrap:anywhere}
.badge-context-answer{min-height:4.6em;max-width:740px;font:calc(var(--button-weight,calc(var(--body-weight)*2 - 300)) - 100) 18px/1.5 var(--body)!important;color:var(--ink)!important}
.contract{margin:0;padding:20px;overflow:auto;border:1px solid var(--ghost);border-radius:var(--radius);background:var(--fill);white-space:pre-wrap;overflow-wrap:anywhere;font:500 14px/1.6 var(--mono);tab-size:2}
.contract-copy{margin:0 0 18px;color:var(--muted)}

/* Signed-out and first-project screens: one centred conversion form on the page (DESIGN.md). Light and dark keep today's
   copy-and-shield layout in the block below. */
.welcome-grid{position:relative;display:grid;grid-template-columns:minmax(0,480px);justify-content:center;align-content:center;gap:24px;max-width:1160px;min-height:min(560px,100%);margin:0 auto}
.welcome-copy{position:relative;z-index:1;max-width:480px}
.welcome-copy h1{margin:0 0 12px;font:var(--display-weight) clamp(36px,6vw,48px)/1.1 var(--display);letter-spacing:var(--display-tracking,-.045em);white-space:pre-line}
.welcome-copy>p{max-width:460px;margin:0 0 32px;font:var(--body-weight) 16px/1.6 var(--body);color:var(--muted)}
.welcome-note{margin-top:24px!important;font-size:13px!important;color:var(--muted)!important}
.welcome-art{display:none;position:relative;height:min(520px,62vh);min-height:300px}
.company-recovery-form{display:grid;gap:4px;max-width:480px}
.company-recovery-form .field{margin-bottom:16px}
.company-recovery-form button[type=submit]{justify-self:start;margin-top:8px}
.company-recovery-form .section-tabs{margin-bottom:18px}

/* Dialogs and scrims: opaque raised panels; the scrim darkens a dark page and tints a light one with its own ink. */
.company-dialog{width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;padding:30px;border:1px solid var(--ghost);border-radius:var(--radius);background:var(--bg-raised);color:var(--ink);box-shadow:var(--shadow)}
.company-dialog::backdrop{background:color-mix(in srgb,var(--bg) 60%,transparent)}
.company-dialog h1{margin:0 0 18px;font:var(--display-weight) 34px/1.05 var(--display);letter-spacing:var(--display-tracking,-.035em)}
.company-dialog>button{margin-top:6px}
.side-scrim{position:fixed;inset:0;z-index:35;background:color-mix(in srgb,var(--bg) 60%,transparent)}
html[data-scheme=light] .company-dialog::backdrop{background:color-mix(in srgb,var(--ink) 22%,transparent)}
html[data-scheme=light] .side-scrim{background:color-mix(in srgb,var(--ink) 24%,transparent)}

/* Light and dark: today's metrics and layout. Zero-specificity theme scope before the media queries, so those still apply. */
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .company-sidebar{background:var(--bg);border-right:0}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .noscript{border:0;border-radius:10px;background:var(--fill)}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .footer-mode{font-size:14px;letter-spacing:.045em}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .brand{font-size:21px;letter-spacing:-.02em}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .project-picker select{min-height:0;color:inherit;padding:4px 30px 4px 0;border-radius:8px;background-position:right 2px center;font-size:18px;letter-spacing:-.01em}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .project-picker select:hover{background-color:transparent;color:var(--ink-2)}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) #company-journey-nav>[data-company-section=journey],:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .side-badge>summary,:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .tag{font-size:14px;letter-spacing:.045em}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .journey-steps{gap:1px}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .journey-step{gap:13px;padding:6px 8px 6px 2px;border:0;border-radius:10px;font-size:18px}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .journey-step[data-status=done]{color:var(--ink)}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .journey-step[aria-current=step]{background:var(--fill)}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .journey-step-number{font-size:14px;letter-spacing:0}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .framework{font-size:15px}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .side-frameworks-note{font-size:14px;line-height:1.4}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .company-tools-group>summary{font-size:16px}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .company-tools-group nav button{font-size:15px}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .side-toggle{font-size:16px}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) :is(.side-toggle button[aria-pressed=true],.section-tabs [aria-pressed=true]){text-decoration:none}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .appearance-menu{width:250px;border:0;background:var(--bg)}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .appearance-menu>button:hover,:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .appearance-menu>a:hover{background:var(--fill)}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .section-tabs button{font-size:17px}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .dropzone{border:0}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) :is(.connector-card,.badge-preview,.contract){border-color:transparent}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .connector-card h2{font-size:20px}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) :is(.radio-option,.insurance-summary){font-size:18px}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .insurance-summary{font-size:19px}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .badge-context-answer{font-size:19px!important}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .welcome-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);justify-content:normal;align-content:normal;align-items:center;margin:0}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .welcome-copy{max-width:560px}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .welcome-copy h1{margin-bottom:20px;font-size:clamp(42px,5.4vw,82px);line-height:1;letter-spacing:-.045em}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .welcome-copy>p{margin-bottom:24px;font-size:18px;line-height:1.5;color:var(--ink-2)}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .welcome-note{margin-top:22px!important;font-size:14px!important}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .welcome-art{display:block}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .company-recovery-form{max-width:420px}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .company-recovery-form .field{margin-bottom:12px}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .company-recovery-form .section-tabs{margin-bottom:14px}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .company-dialog{border:0;background:var(--bg)}
:where(html[data-theme=dark],html[data-theme=retro]) .company-dialog::backdrop{background:color-mix(in srgb,var(--bg) 22%,transparent)}
:where(html[data-theme=dark],html[data-theme=retro]) .side-scrim{background:color-mix(in srgb,var(--bg) 24%,transparent)}

@media(max-height:900px) and (min-width:901px){
  .company-sidebar{gap:14px;padding-top:20px;padding-bottom:12px}
  .journey-step{min-height:34px;padding-block:4px}
  :where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .journey-step{font-size:17px}
  #company-frameworks{gap:5px}
  .framework{font-size:14px}
}
@media(max-height:760px) and (min-width:901px){
  .company-sidebar{gap:10px;padding-top:16px}
  .side-company{gap:2px}
  .journey-step{min-height:30px;padding-block:3px}
  :where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .journey-step{font-size:16px}
  .company-tools-group>summary{min-height:30px}
  .side-foot{gap:6px}
}
@media(max-width:1100px){.company-shell{--side:236px}.connector-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:900px){
  .company-shell,.company-shell.account-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto}
  .company-topbar{display:flex;grid-column:1;grid-row:1;padding:10px 16px}
  .company-main,.account-layout .company-main{grid-column:1;grid-row:2;padding:18px 16px 12px}
  .company-main.journey-page{padding-bottom:2px}
  .getmoat-dock{grid-column:1;grid-row:3}
  .company-footer,.account-layout .company-footer{grid-column:1;grid-row:4;padding:4px 16px 8px}
  .company-sidebar{position:fixed;z-index:40;inset:0 auto 0 0;width:min(320px,88vw);padding:18px 18px 18px 20px;background:var(--bg-raised);box-shadow:var(--shadow);transform:translateX(-104%);visibility:hidden;transition:transform .35s var(--ease),visibility 0s linear .35s}
  :where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .company-sidebar{background:var(--bg)}
  .side-open .company-sidebar{transform:none;visibility:visible;transition:transform .35s var(--ease)}
  .side-close{display:inline-flex;align-items:center}
  .company-topbar .brand{font-size:20px}
  :where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .company-topbar .brand{font-size:19px}
  .company-topbar .brand svg{width:22px;height:24px}
  .mobile-navigation{flex:1;min-width:0;margin:0}
  .mobile-navigation select{min-height:40px;padding:6px 34px 6px 12px;font-size:16px;border-radius:var(--radius-field)}
  .mobile-menu{flex:none;min-height:40px;font:var(--button-weight,calc(var(--body-weight)*2 - 300)) 15px/1 var(--body);letter-spacing:var(--button-tracking,calc((500 - var(--body-weight))*.0002em));color:var(--ink)}
  :where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .mobile-menu{font-size:16px}
  .content-grid{grid-template-columns:minmax(0,1fr);gap:24px}
  .welcome-grid{grid-template-columns:minmax(0,1fr)}
  :where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .welcome-grid{grid-template-columns:minmax(0,1fr)}
  :where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .welcome-art{position:absolute;inset:0 -30% 0 30%;height:auto;opacity:.3;z-index:0;pointer-events:none}
}
@media(max-width:640px){
  .section-header h1{font-size:36px}
  .section-lead{font-size:16px}
  .field-pair{grid-template-columns:minmax(0,1fr) 90px;gap:12px}
  .metadata-list{grid-template-columns:110px minmax(0,1fr);gap:10px 14px;font-size:15px}
  .relationship-field{grid-template-columns:minmax(0,1fr);gap:6px}
  .source-details-pair{grid-template-columns:minmax(0,1fr)}
  .document-viewbar{flex-wrap:wrap}
  .connector-card{padding:16px}
  .company-footer{gap:2px 12px;flex-wrap:wrap}
  .footer-mode{font-size:12px}
  :where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .footer-mode{font-size:14px}
  .welcome-copy h1{font-size:36px}
  :where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .welcome-copy h1{font-size:42px}
  .welcome-copy>p{font-size:16px}
  .company-dialog{padding:22px}
  .company-topbar .brand{font-size:0;gap:0}
  .company-topbar .brand svg{display:block}
}
@media(max-width:375px){.company-main,.account-layout .company-main{padding-inline:14px}}
