/* The page's names for the ealyx-brand skill's tokens (assets/brand/tokens/tokens.css, loaded first); the tokens switch with the theme (.dark on <html>). */

@font-face { font-family: "Karla"; font-weight: 200 800; font-display: swap; src: url(assets/fonts/karla-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Karla"; font-weight: 200 800; font-display: swap; src: url(assets/fonts/karla-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-weight: 100 900; font-display: swap; src: url(assets/fonts/fraunces-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-weight: 100 900; font-display: swap; src: url(assets/fonts/fraunces-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --background: var(--ealyx-color-ui-background);
  --foreground: var(--ealyx-color-ui-foreground);
  --foreground-secondary: var(--ealyx-color-ui-foreground-secondary);
  --card: var(--ealyx-color-ui-card);
  --primary: var(--ealyx-color-ui-primary);
  --primary-foreground: var(--ealyx-color-ui-primary-foreground);
  --primary-hover: var(--ealyx-color-ui-primary-hover);
  --primary-container: var(--ealyx-color-ui-primary-container);
  --primary-container-high: var(--ealyx-color-ui-primary-container-high);
  --accent-violet: var(--ealyx-color-brand-violet-accent);
  --muted: var(--ealyx-color-ui-muted);
  --muted-foreground: var(--ealyx-color-ui-muted-foreground);
  --border: var(--ealyx-color-ui-border);
  --shell: var(--ealyx-color-ui-sidebar);
  --shell-accent: var(--ealyx-color-ui-sidebar-accent);
  --shell-border: var(--ealyx-color-ui-sidebar-border);
  --destructive: var(--ealyx-color-status-error);
  --destructive-container: var(--ealyx-color-status-error-container);
  --success: var(--ealyx-color-status-success);
  --success-container: var(--ealyx-color-status-success-container);
  --warning: var(--ealyx-color-status-warning);
  --warning-container: var(--ealyx-color-status-warning-container);
  --radius: var(--ealyx-radius-md);
  --font-sans: var(--ealyx-font-family-text);
  --font-display: var(--ealyx-font-family-display);
  /* rings and shadows drawn in the text colour, so they hold in both themes */
  --ring-soft: color-mix(in oklab, var(--foreground) 6%, transparent);
  --ring: color-mix(in oklab, var(--foreground) 10%, transparent);
}

* { box-sizing: border-box; }
html { font-family: var(--font-sans); color: var(--foreground); -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--shell); color: var(--foreground); min-height: 100vh; font-size: 14px; }
::selection { background: color-mix(in oklab, var(--primary) 22%, transparent); }
a { color: var(--primary); }
h1, h2, h3 { margin: 0; }
input, textarea, select { color: inherit; }
.muted { color: var(--muted-foreground); }
.small { font-size: 12.5px; }
[hidden] { display: none !important; }

/* shell: the skill's app shell (ealyx-ui.css), plus what its template sets inline */
.lockup { display: block; }
.sign-in .lockup { width: var(--ealyx-size-logo-lockup-min); }
.logo-dark { display: none; }
.dark .logo-light { display: none; }
.dark .logo-dark { display: inline; }
.e-sidebar__brand:hover { text-decoration: none; }
.e-shell[data-collapsed] .e-sidebar__brand img { display: none; }
.e-shell:not([data-collapsed]) .e-sidebar__brand .e-symbol-tile { display: none; }
.e-symbol-tile { width: 32px; height: 32px; border-radius: var(--ealyx-radius-sm); background: var(--shell-accent); display: inline-flex; align-items: center; justify-content: center; }
button.e-nav-item { width: 100%; border: 0; background: transparent; font-family: inherit; text-align: left; }
.e-user { min-width: 0; }
.e-user div { min-width: 0; }
.e-user b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e-breadcrumb .icon { width: 14px; height: 14px; }
.e-main { container-type: inline-size; }
#agents-empty { margin: 0; }
.how-it-works ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; line-height: 1.45; }
.agent-status { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.pill { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--shell-border); color: var(--muted-foreground); background: var(--background); }
.pill.on { color: var(--primary); background: var(--primary-container); border-color: var(--primary-container-high); }

.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 8px; font-size: var(--ealyx-typography-ui-label-font-size); font-weight: var(--ealyx-typography-ui-label-font-weight); text-transform: uppercase; letter-spacing: var(--ealyx-typography-ui-label-letter-spacing); color: var(--primary); }
h1 { font-size: var(--ealyx-typography-ui-h1-font-size); font-weight: var(--ealyx-typography-ui-h1-font-weight); line-height: var(--ealyx-typography-ui-h1-line-height); }
.subtitle { margin: 8px 0 0; max-width: 42rem; font-size: 14px; line-height: 1.45; color: var(--muted-foreground); }
.header-actions { display: flex; gap: 8px; }

/* primitives */
.card { background: var(--card); border-radius: 20px; box-shadow: 0 0 0 1px var(--ring); padding: 18px 20px; }
.card h2 { font-size: 18px; font-weight: 600; }
.card h3 { font-size: 16px; font-weight: 600; }
.button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--radius); border: 1px solid transparent; font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; white-space: nowrap; }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .5; cursor: default; }
.button.primary { background: var(--primary); color: var(--primary-foreground); }
.button.primary:hover { background: var(--primary-hover); }
.button.outline { background: var(--background); border-color: var(--border); color: var(--foreground); }
.button.outline:hover { background: var(--muted); }
.button.ghost { background: transparent; color: var(--foreground); }
.button.ghost:hover:not(:disabled) { background: var(--muted); }
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; flex: none; }
.badge.secondary { background: var(--primary-container); color: var(--primary); }
/* Lucide's icons (assets/icons/) as a mask over currentColor, so they take the colour of the text around them */
.icon { display: inline-block; flex: none; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
[data-icon="arrow-left"] { --icon: url(assets/icons/arrow-left.svg); }
[data-icon="arrow-right"] { --icon: url(assets/icons/arrow-right.svg); }
[data-icon="ban"] { --icon: url(assets/icons/ban.svg); }
[data-icon="boxes"] { --icon: url(assets/icons/boxes.svg); }
[data-icon="check"] { --icon: url(assets/icons/check.svg); }
[data-icon="chevron-down"] { --icon: url(assets/icons/chevron-down.svg); }
[data-icon="chevron-left"] { --icon: url(assets/icons/chevron-left.svg); }
[data-icon="chevron-right"] { --icon: url(assets/icons/chevron-right.svg); }
[data-icon="chevrons-right"] { --icon: url(assets/icons/chevrons-right.svg); }
[data-icon="circle-alert"] { --icon: url(assets/icons/circle-alert.svg); }
[data-icon="circle-minus"] { --icon: url(assets/icons/circle-minus.svg); }
[data-icon="copy"] { --icon: url(assets/icons/copy.svg); }
[data-icon="external-link"] { --icon: url(assets/icons/external-link.svg); }
[data-icon="file-spreadsheet"] { --icon: url(assets/icons/file-spreadsheet.svg); }
[data-icon="info"] { --icon: url(assets/icons/info.svg); }
[data-icon="languages"] { --icon: url(assets/icons/languages.svg); }
[data-icon="lock"] { --icon: url(assets/icons/lock.svg); }
[data-icon="log-out"] { --icon: url(assets/icons/log-out.svg); }
[data-icon="minus"] { --icon: url(assets/icons/minus.svg); }
[data-icon="panel-left"] { --icon: url(assets/icons/panel-left.svg); }
[data-icon="pause"] { --icon: url(assets/icons/pause.svg); }
[data-icon="pencil"] { --icon: url(assets/icons/pencil.svg); }
[data-icon="plus"] { --icon: url(assets/icons/plus.svg); }
[data-icon="send"] { --icon: url(assets/icons/send.svg); }
[data-icon="sun-moon"] { --icon: url(assets/icons/sun-moon.svg); }
[data-icon="trash-2"] { --icon: url(assets/icons/trash-2.svg); }
[data-icon="triangle-alert"] { --icon: url(assets/icons/triangle-alert.svg); }
[data-icon="x"] { --icon: url(assets/icons/x.svg); }

/* onboarding */
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--shell-accent); flex: none; }
.dropzone { display: grid; gap: 4px; place-items: center; text-align: center; padding: 40px 16px; margin: 12px 0; border: 1.5px dashed var(--border); border-radius: var(--radius); cursor: pointer; transition: .2s; background: var(--background); }
.dropzone:hover, .dropzone.over { border-color: var(--accent-violet); background: var(--primary-container); }

/* workspace */

.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.table-card { padding: 0; overflow: hidden; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--border); }
.toolbar .actions { display: flex; flex-wrap: wrap; gap: 4px; }
#counts { margin-left: 8px; white-space: nowrap; }
#filename { white-space: nowrap; }
.table-wrap { overflow: auto; max-height: 64vh; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 9px 12px; white-space: nowrap; text-align: left; border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }
th { position: sticky; top: 0; z-index: 1; height: 40px; background: color-mix(in oklab, var(--muted) 95%, transparent); backdrop-filter: blur(4px); font-weight: 500; }
th.target { color: var(--primary); box-shadow: inset 0 -2px 0 var(--accent-violet); }
td.numeric { text-align: right; font-variant-numeric: tabular-nums; }
td.invalid { background: var(--destructive-container); color: var(--destructive); }
tbody tr:hover td { background: color-mix(in oklab, var(--muted) 50%, transparent); }
tr.highlighted td { background: var(--primary-container); }
tr.highlighted td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
.legend { display: flex; align-items: center; gap: 6px; margin: 0; padding: 10px 20px; border-top: 1px solid var(--border); background: color-mix(in oklab, var(--muted) 50%, transparent); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 10px; }
.swatch:first-child { margin-left: 0; }
.swatch.target { background: var(--accent-violet); }
.swatch.invalid { background: var(--destructive-container); box-shadow: inset 0 0 0 1px var(--destructive); }
.swatch.highlighted { background: var(--primary-container-high); }

/* side */
.side { display: grid; gap: 16px; }
.side-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.progress { height: 8px; border-radius: 999px; background: var(--muted); overflow: hidden; }
.progress-bar { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--accent-violet)); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.checklist { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 2px; }
.checklist li { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 8px; font-size: 13px; }
.checklist li code { font-size: 12px; }
.checklist li .count { margin-left: auto; font-size: 12px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.checklist .dot, .readiness .dot { width: 16px; height: 16px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.dot .icon { width: 12px; height: 12px; }
.checklist .missing .dot { box-shadow: inset 0 0 0 1.5px var(--border); }
.checklist .partial .dot { background: var(--warning-container); color: var(--warning); }
.checklist .complete .dot { background: var(--success-container); color: var(--success); }
.checklist li.changed { animation: flash-soft 1.4s ease-out; }
.checklist li.level { padding: 8px 6px 2px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-foreground); }
.warning-text { color: var(--warning); }
.warning-text:empty { display: none; }
.required { color: var(--primary); font-weight: 700; }

.log { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; max-height: 300px; overflow: auto; font-size: 13px; }
.log li { padding: 8px 10px; border-radius: 10px; background: var(--background); box-shadow: 0 0 0 1px var(--ring-soft); animation: enter .4s; line-height: 1.4; }
.log li time { display: block; font-size: 11px; color: var(--muted-foreground); }
.log li.say { background: var(--primary-container); box-shadow: none; }
.log li.error { background: var(--destructive-container); color: var(--destructive); box-shadow: none; }

.agent-hint { margin-top: 28px; color: var(--muted-foreground); font-size: 12px; }
.agent-hint code { color: var(--primary); }

.bubble { position: fixed; left: calc(var(--ealyx-size-layout-sidebar) + 24px); bottom: 24px; max-width: 440px; display: flex; gap: 12px; align-items: flex-start; background: var(--card); border-radius: 20px; padding: 14px 18px 14px 14px; box-shadow: 0 0 0 1px var(--primary-container-high), 0 18px 52px color-mix(in oklab, var(--primary) 16%, transparent); animation: enter .35s cubic-bezier(.2, .8, .2, 1); z-index: 10; }
.bubble small { color: var(--primary); font-weight: 600; font-size: 12px; }
.bubble p { margin: 2px 0 0; font-size: 15px; line-height: 1.45; }
.e-shell[data-collapsed] .bubble { left: calc(var(--ealyx-size-layout-sidebar-collapsed) + var(--ealyx-space-lg) + 24px); }
.toast { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); background: var(--destructive-container); color: var(--destructive); padding: 10px 16px; border-radius: 12px; box-shadow: var(--ealyx-shadow-md); z-index: 20; }

/* motion */
.flash { animation: flash 1.6s ease-out; }
th.flash { animation: flash-th 1.8s ease-out; }
.enter { animation: enter .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes flash { 0% { background: var(--primary-container-high); } 100% { background: transparent; } }
@keyframes flash-th { 0% { background: var(--primary); color: var(--primary-foreground); } 100% { background: color-mix(in oklab, var(--muted) 95%, transparent); } }
@keyframes flash-soft { 0% { background: var(--primary-container); } 100% { background: transparent; } }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes bump { 0% { transform: scale(1); color: var(--primary); } 30% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* the agents: a tab at the right edge that opens their sheet */
.agent-tab { position: fixed; right: 0; top: 264px; z-index: 14; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 16px; border: 0; border-radius: 22px 0 0 22px; background: var(--card); color: var(--foreground); font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 0 0 1px var(--ring), var(--ealyx-shadow-md); transition: padding .2s, background .2s; }
.agent-tab:hover { padding-right: 18px; }
.agent-tab.on { background: var(--primary-container); color: var(--primary); }
.agent-tab[aria-expanded="true"] { visibility: hidden; }
.agent-tab__light { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--border); }
.agent-tab__light.on { background: var(--success); box-shadow: 0 0 0 3px var(--success-container); }
.agent-tab__light.paused { background: var(--warning); box-shadow: 0 0 0 3px var(--warning-container); }
.agent-tab__working { width: 20px; height: 20px; }
.agent-sheet { position: fixed; top: 8px; right: 8px; bottom: 8px; z-index: 15; width: min(380px, calc(100vw - 16px)); display: flex; flex-direction: column; border-radius: var(--ealyx-radius-lg); background: var(--background); box-shadow: 0 0 0 1px var(--ring), var(--ealyx-shadow-lg); animation: sheet-in .25s cubic-bezier(.2, .8, .2, 1); }
.agent-sheet__head { display: flex; align-items: center; gap: 8px; height: 52px; flex: none; padding: 0 8px 0 20px; border-bottom: 1px solid var(--border); }
.hide-sheet { height: 34px; padding: 0 10px; flex-direction: row; }
.agent-sheet__body { flex: 1; min-height: 0; overflow: auto; padding: 16px 20px 20px; display: grid; align-content: start; gap: 20px; }
.sheet-section { display: grid; gap: 10px; }
.sheet-section .side-head { margin: 0; }
.sheet-section h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-foreground); }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.sheet-section .log { margin: 0; }
@keyframes sheet-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* the frame's width, not the viewport's, decides: the menu and the agents panel take room */
@container (max-width: 720px) {
  .workspace-grid, .sale-grid { grid-template-columns: 1fr; }
  .agent-app, .copy-prompt, .send-box, .send-approval { flex-wrap: wrap; }
  .lot-steps button span:last-child { display: none; }
  .lot-steps button.current span:last-child { display: inline; }
  .lot-summary { grid-template-columns: 1fr 1fr; }
  .summary-sizes, .summary-price { grid-column: 1 / -1; }
  .e-page { padding: 24px 16px; }
}

/* the language picker: top right, next to the theme (and on the sign-in pages, at the corner) */
.language-select { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px; border-radius: var(--radius); color: var(--foreground); cursor: pointer; }
.language-select:hover { background: var(--muted); }
.language-select .icon { width: 16px; height: 16px; }
.language-select select { appearance: none; border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: inherit; cursor: pointer; padding-right: 2px; }
.language-select select:focus-visible { outline: 2px solid var(--accent-violet); outline-offset: 2px; border-radius: 4px; }
.sign-in-language { position: fixed; top: 16px; right: 16px; }

/* the lot's name, edited in place over its steps */
.lot-name { display: grid; gap: 4px; margin-bottom: 20px; max-width: 720px; }
.lot-name__label { font-size: var(--ealyx-typography-ui-label-font-size); font-weight: var(--ealyx-typography-ui-label-font-weight); text-transform: uppercase; letter-spacing: var(--ealyx-typography-ui-label-letter-spacing); color: var(--muted-foreground); }
.lot-name__field { display: flex; align-items: center; gap: 8px; }
.lot-name__input { flex: 1; min-width: 0; height: 44px; margin-left: -10px; padding: 0 10px; border: 1px solid transparent; border-radius: var(--radius); background: transparent; font-family: inherit; font-size: 24px; font-weight: 700; color: inherit; outline: none; transition: border-color .15s, background .15s; }
.lot-name__input:disabled { color: inherit; }
.lot-name__input::placeholder { color: var(--muted-foreground); font-weight: 500; }
.lot-name.editable .lot-name__input:hover { border-color: var(--border); }
.lot-name.editable .lot-name__input:focus { border-color: var(--accent-violet); background: var(--card); }
.lot-name__field .icon { color: var(--muted-foreground); }
.lot-name:not(.editable) .lot-name__field .icon { display: none; }

/* a lot's five steps: upload the file, connect the agent, normalize the data, set up the sale, send it */
.lot-steps { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
.lot-steps button { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted-foreground); cursor: pointer; white-space: nowrap; }
.lot-steps button:disabled { cursor: default; opacity: .55; }
.lot-steps button:hover:not(:disabled, .current) { color: var(--foreground); }
.lot-steps .number { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--muted); font-size: 14px; font-weight: 700; transition: background .2s, color .2s; }
.lot-steps button.done .number { background: var(--success-container); color: var(--success); }
.lot-steps button.current { color: var(--foreground); }
.lot-steps button.current .number { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 0 0 4px var(--primary-container); }
.lot-steps__line { flex: 1; min-width: 16px; height: 2px; border-radius: 2px; background: var(--border); }
.lot-steps button.done + .lot-steps__line { background: var(--success); }

.upload-step { max-width: 720px; padding: 24px; }
.upload-step .dropzone { padding: 64px 16px; margin: 0 0 14px; gap: 6px; font-size: 15px; }
.dropzone-icon { width: 32px; height: 32px; color: var(--primary); margin-bottom: 6px; }
.upload-step p { margin: 0; }

.connect-step { max-width: 720px; display: grid; gap: 16px; }
.agent-apps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.agent-app { display: flex; align-items: center; gap: 16px; padding: 16px 18px; }
.agent-app strong { font-size: 16px; }
.agent-app p { margin: 2px 0 0; }
.agent-app .grow, .copy-prompt .grow { flex: 1; min-width: 0; }
.agent-app .button { flex: none; }
.soon-app { opacity: .55; filter: grayscale(1); }
.soon-app .button { cursor: not-allowed; }
.soon-app .soon { margin-left: 6px; vertical-align: middle; filter: none; }
/* the agents' own logos keep their colours (ChatGPT's is black): a tile white in both themes holds them */
.agent-logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ealyx-color-ui-primary-foreground); box-shadow: 0 0 0 1px var(--ring); flex: none; }
.agent-logo img { width: 26px; height: 26px; }
.copy-prompt { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; border: 1px dashed var(--border); color: var(--foreground-secondary); }
.copy-prompt p { margin: 0; line-height: 1.5; }
.copy-prompt > .icon { color: var(--muted-foreground); }
.connect-step .how-it-works { padding: 0 4px; }
.connect-skip { margin: 4px 0 0; text-align: center; }
.link.quiet { color: var(--muted-foreground); }
.link.quiet:hover { color: var(--foreground); }


/* bridge: notices, agents */

#notices { display: grid; gap: 10px; }
#notices:not(:empty) { margin-bottom: 20px; }
.notice { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border-radius: 16px; background: var(--primary-container); box-shadow: 0 0 0 1px var(--primary-container-high); animation: enter .35s cubic-bezier(.2, .8, .2, 1); }
.notice.approval .icon { color: var(--warning); }
.notice .grow { flex: 1; min-width: 0; }
.notice p { margin: 2px 0 0; color: var(--muted-foreground); }
.notice.approval { background: var(--warning-container); box-shadow: 0 0 0 1px color-mix(in oklab, var(--warning) 35%, transparent); }
.notice.approval.focus { box-shadow: 0 0 0 2px var(--warning); }
.notice.paused { background: var(--muted); box-shadow: 0 0 0 1px var(--shell-border); }
.follow { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--primary-container); font-size: 13px; cursor: pointer; }
.follow input { margin: 0; accent-color: var(--primary); }
.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.link { border: 0; background: none; padding: 0; font: inherit; color: var(--primary); text-decoration: underline; cursor: pointer; }
.current-file .link { display: inline-flex; align-items: center; gap: 4px; }
.current-file .icon { width: 14px; height: 14px; }
.current-file { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--success-container); color: var(--success); }

.success { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; background: var(--success-container); box-shadow: none; }
.success .big { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--success); color: var(--primary-foreground); }
.success .big .icon { width: 20px; height: 20px; }
.success h2 { color: var(--success); }
.success p { margin: 4px 0 0; }

.plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 13px; }
.plan li { display: flex; align-items: flex-start; gap: 8px; padding: 5px 6px; border-radius: 8px; line-height: 1.35; }
.plan .dot { width: 16px; height: 16px; border-radius: 50%; flex: none; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--border); margin-top: 1px; }
.plan .in_progress { background: var(--primary-container); font-weight: 600; }
.plan .in_progress .dot { box-shadow: none; color: var(--primary); animation: pulse 1.2s ease-in-out infinite; }
.plan .in_progress .dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.plan .done .dot { box-shadow: none; background: var(--success-container); color: var(--success); }
.plan .done .task-text { color: var(--muted-foreground); text-decoration: line-through; }
.plan .failed .dot { box-shadow: none; color: var(--destructive); }
.plan .skipped .dot { box-shadow: none; color: var(--muted-foreground); }
.plan :is(.failed, .skipped) .dot .icon { width: 16px; height: 16px; }
.plan .skipped .task-text { color: var(--muted-foreground); }
#plan-card.bump { animation: flash-soft 1.4s ease-out; }

.log li.agent { box-shadow: 0 0 0 1px var(--primary-container-high); }
.log li.ask { background: var(--warning-container); box-shadow: none; }
th { cursor: default; }
body:not(.agent-browser) [data-show~="prepare"] th, body:not(.agent-browser) th { user-select: none; }
td.editing { outline: 2px solid var(--primary); outline-offset: -2px; background: var(--card) !important; }
.legend .hint { margin-left: 8px; }
@keyframes pulse { 50% { opacity: .35; } }

.agents { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.agents li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--background); box-shadow: 0 0 0 1px var(--ring-soft); }
.agents li p { margin: 2px 0 0; line-height: 1.35; }
.agents .grow { flex: 1; min-width: 0; }
.agents .status { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--border); }
.agents .status.on { background: var(--success); box-shadow: 0 0 0 3px var(--success-container); }
.button.danger { color: var(--destructive); }
.button.danger:hover { background: var(--destructive-container); }

/* sign in */
.sign-in-page { display: grid; place-items: center; padding: 24px; }
.sign-in { display: grid; gap: 20px; width: min(420px, 100%); }
.sign-in .brand { display: flex; align-items: center; }
.sign-in-card { display: grid; gap: 14px; padding: 28px; }
.sign-in-card p { margin: 0; }
.field { display: grid; gap: 6px; font-weight: 500; }
.field input { height: 42px; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--border); font: inherit; background: var(--background); }
.field input:focus { outline: 2px solid var(--accent-violet); outline-offset: -1px; }
.form-error { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--destructive-container); color: var(--destructive); }
.form-notice { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--success-container); color: var(--success); }
.sign-in-card .link.small { justify-self: start; }
.button.wide { width: 100%; justify-content: center; }

/* skeletons while things load: the kit's .e-skeleton, laid out like what is coming */
.page-skeleton { display: grid; gap: 14px; }
.skeleton-steps { display: flex; gap: 24px; margin-bottom: 18px; }
.skeleton-steps .e-skeleton { flex: 1; height: 32px; border-radius: 999px; }
.skeleton-eyebrow { width: 120px; height: 10px; }
.skeleton-title { width: min(420px, 80%); height: 28px; }
.skeleton-line { width: min(560px, 90%); }
.skeleton-card { display: grid; gap: 14px; margin-top: 14px; padding: 24px; }
.skeleton-card .e-skeleton:first-child { height: 120px; }
.skeleton-card .e-skeleton:nth-child(2) { width: 60%; }
.skeleton-card .e-skeleton:nth-child(3) { width: 40%; }
.lot-skeleton .grow { display: grid; gap: 8px; }
.lot-skeleton:hover { box-shadow: 0 0 0 1px var(--ring); }
.busy { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 600; color: var(--primary); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--primary-container-high); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.skeleton-icon { width: 40px; height: 40px; border-radius: 12px; flex: none; }
.skeleton-name { width: 200px; }
.skeleton-meta { width: 320px; max-width: 100%; height: 10px; }
.skeleton-badge { width: 96px; height: 24px; border-radius: 999px; flex: none; }

/* the list of lots */
.lots { display: grid; gap: 10px; }
.file-item, .file-item:hover { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; transition: box-shadow .15s; }
.file-item:hover { box-shadow: 0 0 0 1px var(--accent-violet), 0 8px 24px color-mix(in oklab, var(--primary) 8%, transparent); }
.file-item .grow { flex: 1; min-width: 0; }
.file-item p { margin: 3px 0 0; }
.file-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-container); color: var(--primary); font-size: 11px; font-weight: 700; flex: none; }
.file-icon .icon { width: 20px; height: 20px; }
.file-item .icon-only { width: 36px; height: 36px; padding: 0; justify-content: center; flex: none; opacity: .55; }
.file-item:hover .icon-only { opacity: 1; }
.file-price { font-size: 16px; font-weight: 600; white-space: nowrap; }
.status-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status-badge.muted { background: var(--muted); color: var(--muted-foreground); }
.status-badge.warning { background: var(--warning-container); color: var(--warning); }
.status-badge.primary { background: var(--primary-container); color: var(--primary); }
.status-badge.success { background: var(--success-container); color: var(--success); }
.empty-state { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 56px 24px; }
.empty-state p { max-width: 30rem; margin: 0 0 8px; line-height: 1.5; }
.empty-icon { width: 28px; height: 28px; color: var(--primary); }

/* prepare: what a preset already did, in one line */
.cleanup-card { margin-bottom: 16px; padding: 12px 18px; }
.cleanup-card summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.cleanup-card summary::-webkit-details-marker { display: none; }
.cleanup-card .done-icon { color: var(--success); }
.cleanup-card summary .muted { margin-left: auto; }
.cleanup-card p { margin: 0; }
.cleanup-steps { margin: 12px 0; padding-left: 18px; display: grid; gap: 6px; line-height: 1.4; }

/* the lot at a glance: references, units, sizes and price, the same from step 3 to 5 */
.lot-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr) minmax(0, 2.2fr); gap: 12px; margin-bottom: 16px; }
.summary-tile { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; min-width: 0; }
.summary-label { font-size: 12px; font-weight: 600; color: var(--muted-foreground); }
.summary-label .muted { font-weight: 400; }
.summary-value { font-size: 26px; font-weight: 700; line-height: 1.1; display: inline-block; transform-origin: left center; align-self: flex-start; }
.summary-value.bump, .price-value.bump, .price-lines dd.bump { animation: bump .6s ease-out; }
.size-axis { display: flex; justify-content: space-between; margin-top: -2px; }
.size-axis > span { display: inline-flex; align-items: center; gap: 4px; }
.size-axis .icon { width: 12px; height: 12px; }
/* the lot's price is the view's one hero figure, the only place for Fraunces */
.price-value { font-family: var(--font-display); font-size: 34px; font-weight: 400; line-height: 1.05; color: var(--primary); display: inline-block; transform-origin: left center; align-self: flex-start; }
.price-lines { display: grid; gap: 4px; margin: 6px 0 0; padding-top: 8px; border-top: 1px solid var(--border); }
.price-lines div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.price-lines dt { font-size: 12px; color: var(--muted-foreground); }
.price-lines dd { margin: 0; font-size: 13px; color: var(--muted-foreground); display: inline-block; transform-origin: right center; }
.price-discount dt { color: var(--foreground); font-weight: 600; }
.price-discount dd { font-size: 16px; font-weight: 700; color: var(--foreground); }
.summary-note { margin: 0; line-height: 1.4; }
.summary-warning { display: flex; gap: 6px; align-items: flex-start; margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--warning-container); color: var(--warning); line-height: 1.4; }
.summary-warning .icon { margin-top: 1px; }
.size-chart { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; height: 96px; }
.size-bar { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 4px; justify-items: center; min-width: 0; cursor: default; }
.size-bar__value { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.size-bar__track { position: relative; width: 100%; max-width: 40px; height: 100%; min-height: 0; display: flex; align-items: flex-end; }
.size-bar__fill { width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--primary); transition: height .6s cubic-bezier(.2, .8, .2, 1); }
.size-bar:hover .size-bar__fill { background: var(--primary-hover); }
.size-bar:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); z-index: 2; white-space: nowrap; padding: 6px 10px; border-radius: 8px; background: var(--foreground); color: var(--background); font-size: 12px; pointer-events: none; }

/* the lot: where it may be sold */
.sale-rules h2 { margin-bottom: 4px; }
.sale-rules > p { margin: 0 0 12px; }
.sale-rule-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.sale-rule { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--background); box-shadow: 0 0 0 1px var(--ring-soft); }
.sale-rule p { margin: 2px 0 0; }
.sale-rule.off b { color: var(--muted-foreground); text-decoration: line-through; }
.rule-regions { flex-basis: 100%; padding-left: 52px; }
.rule-regions summary { cursor: pointer; display: inline; }
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px 12px; margin-top: 8px; font-size: 13px; }
.region-grid label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.region-grid input { accent-color: var(--primary); }
.switch { position: relative; display: inline-flex; flex: none; margin-top: 2px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: inherit; }
.switch__track { width: 40px; height: 22px; border-radius: 999px; background: var(--border); transition: background .2s; position: relative; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 2px var(--ring); transition: transform .2s; }
.switch input:checked + .switch__track { background: var(--primary); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent-violet); outline-offset: 2px; }
.switch input:disabled { cursor: default; }
.switch input:disabled + .switch__track { opacity: .6; }
.sale-rule.required .switch input:disabled + .switch__track { opacity: 1; cursor: not-allowed; }

/* lot: the sale */
.sale-card { display: grid; gap: 20px; margin-bottom: 20px; padding: 22px 24px; }
.sale-modes { display: flex; gap: 6px; flex-wrap: wrap; }
.sale-mode { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--background); font: inherit; font-weight: 500; }
.sale-mode.current { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.sale-mode:disabled { color: var(--muted-foreground); cursor: default; }
.soon { font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 999px; background: var(--muted); }
.sale-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 28px; }
.sale-grid p { line-height: 1.5; }
.discount-form { display: flex; gap: 8px; margin: 12px 0 16px; }
.discount-input { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--background); font-size: 20px; font-weight: 600; }
.discount-input input { width: 64px; border: 0; background: none; font: inherit; text-align: right; outline: none; }
.readiness { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.readiness li { display: flex; align-items: center; gap: 8px; }
.readiness .ok .dot { background: var(--success-container); color: var(--success); }
.readiness .pending .dot { background: var(--warning-container); color: var(--warning); }
.sale-actions { display: flex; justify-content: flex-end; }
.send-box { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; background: var(--primary-container); box-shadow: 0 0 0 1px var(--primary-container-high); }
.send-box .grow { flex: 1; min-width: 0; }
.send-box b { font-size: 15px; }
.send-box p { margin: 4px 0 0; line-height: 1.45; }
.send-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--primary); color: var(--primary-foreground); flex: none; }
.send-icon .icon { width: 20px; height: 20px; }
.send-button { height: 52px; padding: 0 26px; font-size: 16px; font-weight: 600; flex: none; box-shadow: 0 8px 24px color-mix(in oklab, var(--primary) 30%, transparent); }

/* approvals: sending the lot, reviewed on its step */
.send-approval:not(.waiting) { display: none; }
.send-approval { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; padding: 20px 22px; border-radius: 20px; background: var(--warning-container); box-shadow: 0 0 0 2px var(--warning); animation: enter .35s cubic-bezier(.2, .8, .2, 1); }
.send-approval .grow { flex: 1; min-width: 0; }
.send-approval .eyebrow { margin-bottom: 4px; color: var(--warning); }
.send-approval h2 { font-size: 22px; font-weight: 700; }
.send-approval p { margin: 4px 0 0; line-height: 1.45; }
.send-approval__summary { font-size: 15px; }
.send-approval__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--warning); color: var(--background); flex: none; }
.send-approval__icon .icon { width: 22px; height: 22px; }
.send-approval__actions { display: flex; gap: 10px; flex: none; }
body.send-approval-pending .send-box { display: none; }

/* approvals: a modal the user cannot miss */
.approval-dialog { width: min(520px, calc(100vw - 32px)); border: 0; border-radius: 24px; padding: 32px; text-align: center; background: var(--card); box-shadow: 0 30px 80px color-mix(in oklab, var(--ealyx-color-brand-ink) 30%, transparent); }
.approval-dialog[open] { animation: enter .3s cubic-bezier(.2, .8, .2, 1); }
.approval-dialog::backdrop { background: color-mix(in oklab, var(--ealyx-color-brand-ink) 55%, transparent); backdrop-filter: blur(4px); }
.approval-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 18px; background: var(--warning-container); color: var(--warning); }
.approval-icon .icon { width: 28px; height: 28px; }
.approval-dialog h2 { font-size: 26px; font-weight: 700; }
.approval-summary { margin: 14px 0 8px; padding: 14px 16px; border-radius: 14px; background: var(--muted); font-size: 16px; line-height: 1.5; text-align: left; }
.approval-actions { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.approval-actions .button { min-width: 140px; justify-content: center; height: 44px; }

.manual-fields { border: 0; padding: 0; margin: 0; }
.manual-controls .discount-form { flex-wrap: wrap; align-items: end; gap: var(--ealyx-space-form-column); }
.manual-fields .e-field { flex: 1; }
.manual-controls summary { cursor: pointer; }
