:root {
  --hub-font: "Segoe UI", system-ui, sans-serif;
  --hub-ink: #191c1a;
  --hub-muted: #545c51;
  --hub-surface: #fff;
  --hub-soft: #f2f5ee;
  --hub-line: #e6e8e4;
  --hub-control-line: #b8c0b5;
  --hub-primary: #262b23;
  --hub-primary-hover: #3c4535;
  --hub-accent: #436138;
  --hub-focus: #6e8c4b;
  --hub-focus-ring: #b7d48270;
  --hub-card-radius: 15px;
  --hub-control-radius: 8px;
  --hub-card-shadow: 0 1px 3px #00000006;
}


:root {
  font-family: var(--hub-font);
  color: var(--hub-ink);
  background: var(--hub-surface);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
a:focus-visible, button:focus-visible { outline: 3px solid #177e83; outline-offset: 4px; }
h1 { margin: 0 0 14px; font-size: clamp(1.85rem, 4vw, 2.25rem); letter-spacing: -.045em; }
p { color: #4d6273; line-height: 1.55; margin: 0 0 24px; }
.entry { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login, .panel { background: white; border: 1px solid #dce4ea; border-radius: 14px; }
.login { width: min(100%, 438px); padding: clamp(22px, 6vw, 40px); box-shadow: 0 12px 35px #112b4210; }
.brand { display: flex; align-items: center; gap: 12px; line-height: 1.3; }
.login .brand { margin-bottom: 34px; }
.mark { width: 44px; height: 44px; padding: 2px; display: block; flex: none; border-radius: 50%; background: #181a1b; }
.mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.primary { display: block; text-align: center; background: var(--hub-primary); color: white; padding: 10px 15px; text-decoration: none; border-radius: var(--hub-control-radius); font-weight: 650; }
.primary:hover { background: var(--hub-primary-hover); }
.notice { padding: 12px 14px; color: #6b4404; background: #fff0d8; border-radius: 8px; }
.shell { min-height: 100dvh; display: grid; grid-template-columns: clamp(68px, 12vw, 124px) minmax(0, 1fr); }
.workspace { min-width: 0; }
.sidebar { position: sticky; top: 0; height: 100dvh; overflow-y: auto; background: #181a1b; color: #fff; padding: 22px 10px; }
.sidebar .mark { margin: 0 auto 27px; }
.sidebar nav { display: grid; gap: 6px; }
.sidebar nav a { display: block; color: #d5d8d5; border-radius: 9px; text-decoration: none; text-align: center; padding: 8px 4px; overflow-wrap: anywhere; }
.sidebar nav a:hover, .sidebar nav a[aria-current] { background: #303332; color: #e1ff90; }
.sidebar nav .nav-main { display: grid; justify-items: center; gap: 5px; font-size: .77rem; font-weight: 600; }
.nav-main svg { width: 18px; height: 18px; }
.sales-nav a { font-size: .75rem; }
.sales-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.sales-card { display: block; padding: 17px; border: 1px solid #dce4ea; background: white; border-radius: 12px; color: #15596d; }
.sales-card:hover { background: #edf7f7; }
.top { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px clamp(16px, 4vw, 60px); border-bottom: 1px solid #e9eae7; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-size: .83rem; }
.breadcrumb span { color: #656a65; }
.breadcrumb span::after { content: '/'; margin-left: 9px; color: #a0a4a0; }
.account { display: flex; align-items: center; gap: 9px; min-width: 0; }
.preview-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--hub-line);
  border-radius: var(--hub-control-radius);
  color: var(--hub-ink);
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.preview-switch:hover { background: var(--hub-soft); }
.preview-picker { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; font-size: .8rem; }
.preview-picker label { font-weight: 600; }
.preview-picker select {
  min-width: 0;
  max-width: min(17rem, 100%);
  padding: 7px;
  border: 1px solid var(--hub-control-line);
  border-radius: var(--hub-control-radius);
  background: var(--hub-surface);
  color: var(--hub-ink);
  font: inherit;
}
.preview-picker button { min-height: 36px; padding: 5px 9px; }
.preview-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.preview-status p { margin: 0; }
.preview-notes { padding-left: 19px; color: var(--hub-muted); font-size: .9rem; line-height: 1.55; }
.preview-action a { color: var(--hub-accent); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; flex: none; place-items: center; background: #242624; color: #fff; font-size: .68rem; font-weight: 700; }
.account button { display: grid; place-items: center; height: 34px; width: 34px; padding: 7px; border-color: #e6e9e3; }
.account button svg { width: 17px; height: 17px; }
.identity { display: grid; gap: 2px; font-size: .9rem; overflow-wrap: anywhere; }
.identity span { color: #536372; font-size: .84rem; }
button { border: 1px solid #aebfca; background: white; color: #264354; padding: 9px 12px; border-radius: 8px; cursor: pointer; font: inherit; }
button:hover { background: #edf7f7; }
.desk { max-width: 1510px; margin-inline: auto; padding: clamp(24px, 4vw, 54px) clamp(16px, 4vw, 60px); }
.desk > h1 { font-size: clamp(2rem, 5vw, 3.55rem); margin: 0 0 24px; line-height: 1.08; }
.panel { max-width: 640px; padding: 20px 23px; }
.panel h2 { font-size: 1.1rem; margin: 0 0 8px; }
.panel p { margin: 0; }
.quotes { display: grid; gap: 16px; max-width: 960px; }
.quotes .panel { max-width: none; }
.quotes h1, .quotes p { margin-bottom: 0; }
.quotes .primary { width: fit-content; }
.quote-top, .quote-row, .quote-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.quote-actions { justify-content: flex-start; }
.quote-top small { color: #4d6273; }
.quote-list { list-style: none; padding: 0; margin: 0; }
.quote-row { padding: 14px 0; border-bottom: 1px solid #e2e8ed; }
.quote-row:last-child { border: 0; }
.quote-row a, .quote-link { color: #15596d; }
.quote-row small { display: block; margin-top: 4px; color: #4d6273; }
.quote-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; margin: 12px 0 18px; }
.quotes label { display: grid; gap: 5px; font-size: .92rem; }
.quotes input, .quotes select { min-width: 0; width: 100%; font: inherit; border: 1px solid #aebfca; border-radius: 7px; padding: 9px; color: inherit; background: white; }
.quote-search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.quote-search input { max-width: 320px; }
.quotes form + .quote-actions { margin-top: 14px; }
.quotes dl { margin: 12px 0 16px; }
.quotes dt { color: #4d6273; font-size: .88rem; }
.quotes dd { margin: 4px 0 0; }

.drive-status { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 24px; }
.drive-status p { margin: 0; font-size: .9rem; }
.drive-status .primary { font-size: .85rem; }
.previous-hub { display: inline-block; color: #545c51; font-size: .85rem; margin-top: 18px; }
.sales-shell .workspace { height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.sales-desk { max-width: none; margin: 0; padding: 0; display: flex; flex-direction: column; min-height: 0; }
.sales-test-status { padding: 5px 12px; margin: 0; color: #5d5440; background: #f9f5e9; font-size: .75rem; }
.sales-workbench { display: block; width: 100%; min-width: 0; flex: 1; min-height: 0; border: 0; }
.folder-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.folder-search { display: flex; align-items: center; flex: 1 1 250px; max-width: 450px; min-width: 0; gap: 9px; min-height: 44px; padding: 0 11px; border: 1px solid #e3e5e1; border-radius: 10px; }
.folder-search:focus-within { border-color: var(--hub-focus); box-shadow: 0 0 0 2px var(--hub-focus-ring); }
.folder-search > svg { width: 16px; height: 16px; flex: none; color: #626861; }
.folder-search input { min-width: 0; width: 100%; border: 0; outline: none; font: inherit; color: inherit; }
.folder-search kbd { flex: none; font: inherit; font-size: .72rem; background: #f3f4f2; color: #636961; border-radius: 4px; padding: 3px 5px; }
.view-mode { display: flex; gap: 3px; background: #f1f2f0; border: 1px solid #e4e5e2; border-radius: 9px; padding: 3px; }
.view-mode button { display: grid; place-items: center; width: 35px; height: 32px; border: 0; background: transparent; padding: 0; border-radius: 6px; color: #575e56; }
.view-mode button[aria-pressed="true"] { background: white; color: #212522; box-shadow: 0 1px 4px #00000012; }
.view-mode svg { width: 16px; height: 16px; }
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: clamp(8px, 1.6vw, 14px); align-items: stretch; }
.folder-grid.list-view { grid-template-columns: 1fr; max-width: 700px; }
.folder-card { min-width: 0; border: 1px solid var(--hub-line); border-radius: var(--hub-card-radius); padding: 14px 15px 10px; box-shadow: var(--hub-card-shadow); transition: box-shadow .24s, border-color .24s; --folder: #adc4aa; --cover: #c2d5bb; }
.folder-card:is(:hover, :focus-within) { border-color: #d0d7ca; box-shadow: 0 6px 19px #151a1510; }
.folder-card h2 { margin: 0; font-size: 1.12rem; font-weight: 720; letter-spacing: -.025em; line-height: 1.25; overflow-wrap: anywhere; }
.folder-card h2 a { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; color: inherit; text-decoration: none; }
.folder-card h2 a:hover { text-decoration: underline; }
.folder-card h2 svg, .resource > svg { width: 14px; height: 14px; flex: none; color: #777f76; margin-left: auto; }
.folder-blue { --folder: #99b8d5; --cover: #b4cde5; }
.folder-mint { --folder: #96c5b6; --cover: #b3d9cf; }
.folder-rose { --folder: #d9aab7; --cover: #e8c3cd; }
.folder-coral { --folder: #dcae9e; --cover: #edd0c3; }
.folder-yellow { --folder: #d8bc76; --cover: #efdda7; }
.folder-lilac { --folder: #b3a5d4; --cover: #cbbfe4; }
.folder-peach { --folder: #deba94; --cover: #ecd2b3; }
.folder-scene { display: grid; place-items: center; padding-block: 16px; perspective: 640px; }
.folder-graphic { width: var(--folder-size, clamp(77px, 9vw, 110px)); aspect-ratio: 110 / 78; position: relative; transform-style: preserve-3d; }
.folder-back { position: absolute; inset: 10% 0 0; background: var(--folder); border-radius: 8% 9% 10% 10%; }
.folder-back::before { content: ''; position: absolute; top: -10%; width: 43%; height: 20%; border-radius: 12% 18% 0 0; background: var(--folder); }
.folder-paper { position: absolute; inset: 15% 12% 6%; border: 1px solid #00000011; border-radius: 6%; background: #fff; box-shadow: 0 2px 5px #00000012; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.folder-paper::after { content: ''; position: absolute; inset: 16% 13% auto; height: 19%; border-block: 1px solid #e3e7e0; }
.folder-front { position: absolute; inset: 34% 0 0; border-radius: 7% 7% 10% 10%; background: var(--cover); box-shadow: inset 0 1px 1px #ffffff80; transform-origin: center bottom; transition: transform .4s cubic-bezier(.16,1,.3,1); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .folder-card:is(:hover, :focus-within) .folder-paper:nth-child(2) { transform: translate(-5%,-22%) rotate(-8deg); }
  .folder-card:is(:hover, :focus-within) .folder-paper:nth-child(3) { transform: translate(6%,-30%) rotate(7deg); }
  .folder-card:is(:hover, :focus-within) .folder-front { transform: rotateX(-34deg); }
}
.resources { list-style: none; margin: 0; padding: 4px 0 0; border-top: 1px solid #edf0eb; }
.resource { display: flex; align-items: center; gap: 8px; min-height: 34px; border-radius: 6px; padding: 4px 5px; color: #272c27; text-decoration: none; font-size: .94rem; font-weight: 400; line-height: 1.33; overflow-wrap: anywhere; }
.resource:hover { background: var(--hub-soft); }
.resource-icon { width: 14px; height: 14px; flex: none; color: #616a60; }
.resource-icon svg { display: block; width: 100%; height: 100%; }
.list-view .folder-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  --folder-size: 54px;
}
.list-view .folder-heading h2 { grid-column: 2; grid-row: 1; }
.list-view .folder-scene { grid-column: 1; grid-row: 1; padding: 4px 0; }
[hidden] { display: none !important; }

@media (max-width: 760px) {
  .sidebar { padding: 14px 4px; }
  .sidebar .mark { width: clamp(31px, 6vw, 38px); height: auto; aspect-ratio: 1; margin-bottom: 16px; }
  .sidebar nav .nav-main, .sales-nav a { font-size: .69rem; }
  .sidebar nav a { min-height: 39px; align-content: center; padding-inline: 2px; overflow-wrap: normal; }
  .nav-main svg { width: 16px; height: 16px; }
  .top, .desk { padding-inline: 12px; }
  .top { min-height: 50px; padding-block: 6px; gap: 6px; }
  .desk { padding-block: 18px; }
  .desk > h1 { font-size: clamp(1.55rem, 5vw, 2.15rem); margin-bottom: 14px; }
  .sales-shell .sales-nav a { font-size: .65rem; }
  .sales-shell .top { padding-inline: 8px; }
  .account { gap: 5px; }
  .account .avatar { width: 28px; height: 28px; }
  .account button { width: 37px; height: 38px; }
  .sales-shell .sales-desk { padding: 0; }
  .preview-picker { order: 1; flex-basis: 100%; }
  .preview-picker select { flex: 1; min-height: 42px; font-size: 1rem; }
  .preview-picker button { min-height: 42px; }
  .preview-switch { gap: 4px; padding: 5px 6px; min-height: 38px; font-size: .75rem; }
  .preview-status p { overflow-wrap: anywhere; }
  .breadcrumb span, .folder-search kbd { display: none; }
  .folder-toolbar { gap: 8px; margin-bottom: 12px; }
  .folder-search { flex-basis: 165px; }
  .view-mode { padding: 2px; gap: 2px; }
  .view-mode button { width: 38px; height: 38px; }
  .folder-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 188px), 1fr)); }
  .folder-card { padding: 9px 10px 7px; border-radius: 12px; }
  .folder-grid .folder-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    margin-bottom: 3px;
    --folder-size: clamp(35px, 10vw, 52px);
  }
  .folder-grid .folder-heading h2 { grid-column: 2; grid-row: 1; font-size: clamp(.96rem, 2.9vw, 1.08rem); }
  .folder-grid .folder-heading h2 a { align-items: center; min-height: 42px; }
  .folder-grid .folder-scene { grid-column: 1; grid-row: 1; padding: 3px 0; }
  .resource { min-height: 42px; padding-inline: 2px; font-size: .9rem; }
  .resource-icon { width: 13px; height: 13px; }
}

@media (max-width: 480px) {
  .top .identity { display: none; }
  .folder-grid { grid-template-columns: minmax(0, 1fr); }
  .view-mode { display: none; }
}

@media (max-width: 375px) {
  .preview-picker label { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .folder-card, .folder-paper, .folder-front { transition: none; }
}

.sales-heading {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin: 0 auto; width: min(100%,1510px); padding: 16px clamp(8px,3.8vw,52px) 0;
}
.sales-heading h1 { margin: 0; font-size: clamp(1.35rem,3vw,2rem); line-height: 1.2; }
.sales-heading .sales-test-status { background: transparent; padding: 0; text-align: right; }
.sales-stage { position: relative; display: flex; flex: 1; min-height: 0; background: #fff; }
.sales-loading { position: absolute; inset: 72px auto auto clamp(8px,3.8vw,52px); margin: 0; font-size: .875rem; color: #646a64; }
.sales-stage .sales-workbench { position: relative; background: white; visibility: hidden; }
.sales-stage.is-ready .sales-workbench { visibility: visible; }
.sales-stage.is-ready .sales-loading { display: none; }
@media(max-width:640px) {
  .sales-heading { padding: 8px 8px 0; align-items: center; }
  .sales-heading .sales-test-status { font-size: .65rem; max-width: 35%; }
}

.sales-filter {
  width: min(100%,1510px); margin: 0 auto;
  padding: 10px clamp(8px,3.8vw,52px) 0;
}
.sales-filter input {
  width: min(100%,32rem); min-height: 40px; padding: 7px 12px;
  border: 1px solid var(--hub-control-line); border-radius: var(--hub-control-radius);
  background: white; color: var(--hub-ink); font: inherit;
}
.sales-filter input:disabled { opacity: 1; }
@media(max-width:640px) { .sales-filter { padding: 8px 8px 0; } }

.sales-outgoing { display: none !important; }
