/* 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 */
.e-sidebar__brand:hover { text-decoration: none; }
.e-wordmark { font-weight: 600; }
.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; align-items: center; gap: 8px; }
/* the side menu's new upload, a click away from every page, under the brand */
.sidebar-new { margin-bottom: var(--ealyx-space-xs); }
.e-shell[data-collapsed] .sidebar-new { width: 32px; height: 32px; padding: 0; align-self: center; }
.e-shell[data-collapsed] .sidebar-new span { display: none; }

/* 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="arrow-up-right"] { --icon: url(assets/icons/arrow-up-right.svg); }
[data-icon="ban"] { --icon: url(assets/icons/ban.svg); }
[data-icon="boxes"] { --icon: url(assets/icons/boxes.svg); }
[data-icon="building-complex"] { --icon: url(assets/icons/building-complex.svg); }
[data-icon="calendar-clock"] { --icon: url(assets/icons/calendar-clock.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-check"] { --icon: url(assets/icons/circle-check.svg); }
[data-icon="circle-minus"] { --icon: url(assets/icons/circle-minus.svg); }
[data-icon="copy"] { --icon: url(assets/icons/copy.svg); }
[data-icon="download"] { --icon: url(assets/icons/download.svg); }
[data-icon="external-link"] { --icon: url(assets/icons/external-link.svg); }
[data-icon="file"] { --icon: url(assets/icons/file.svg); }
[data-icon="file-archive"] { --icon: url(assets/icons/file-archive.svg); }
[data-icon="file-headphone"] { --icon: url(assets/icons/file-headphone.svg); }
[data-icon="file-image"] { --icon: url(assets/icons/file-image.svg); }
[data-icon="file-spreadsheet"] { --icon: url(assets/icons/file-spreadsheet.svg); }
[data-icon="file-text"] { --icon: url(assets/icons/file-text.svg); }
[data-icon="file-video-camera"] { --icon: url(assets/icons/file-video-camera.svg); }
[data-icon="info"] { --icon: url(assets/icons/info.svg); }
[data-icon="languages"] { --icon: url(assets/icons/languages.svg); }
[data-icon="list-filter"] { --icon: url(assets/icons/list-filter.svg); }
[data-icon="loader-circle"] { --icon: url(assets/icons/loader-circle.svg); }
[data-icon="lock"] { --icon: url(assets/icons/lock.svg); }
[data-icon="log-out"] { --icon: url(assets/icons/log-out.svg); }
[data-icon="mail"] { --icon: url(assets/icons/mail.svg); }
[data-icon="minus"] { --icon: url(assets/icons/minus.svg); }
[data-icon="panel-left"] { --icon: url(assets/icons/panel-left.svg); }
[data-icon="paperclip"] { --icon: url(assets/icons/paperclip.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="presentation"] { --icon: url(assets/icons/presentation.svg); }
[data-icon="rotate-ccw"] { --icon: url(assets/icons/rotate-ccw.svg); }
[data-icon="save"] { --icon: url(assets/icons/save.svg); }
[data-icon="search"] { --icon: url(assets/icons/search.svg); }
[data-icon="send"] { --icon: url(assets/icons/send.svg); }
[data-icon="sun-moon"] { --icon: url(assets/icons/sun-moon.svg); }
[data-icon="trash"] { --icon: url(assets/icons/trash.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="upload"] { --icon: url(assets/icons/upload.svg); }
[data-icon="user-round"] { --icon: url(assets/icons/user-round.svg); }
[data-icon="users"] { --icon: url(assets/icons/users.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; }

/* 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; }
.dot .icon { width: 12px; height: 12px; }
.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; }
.toast.success { background: var(--success-container); color: var(--success); }

/* motion */
.enter { animation: enter .6s cubic-bezier(.2, .8, .2, 1); }
@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) {
  .agent-app, .copy-prompt { flex-wrap: wrap; }
  .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; }

/* a lot's five steps: upload the file, connect the agent, normalize the data, set up the sale, send it */

.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; }
.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); }
.link { border: 0; background: none; padding: 0; font: inherit; color: var(--primary); text-decoration: underline; cursor: pointer; }

.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; }
@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; gap: var(--ealyx-space-sm); }
.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, .e-btn.wide { width: 100%; justify-content: center; }

/* skeletons while things load: the kit's .e-skeleton, laid out like what is coming */
.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; }
.workspace-skeleton .grow { display: grid; gap: 8px; }
.workspace-skeleton:hover { box-shadow: 0 0 0 1px var(--ring); }

/* the list of workspaces */
.workspaces { 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; }
.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); }

/* the lot: where it may be sold */
.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 input:disabled { cursor: default; }

/* lot: the sale */
.soon { font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 999px; background: var(--muted); }

/* 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; }


/* the supply pages: uploads, an upload, companies */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.e-toolbar .filter { width: 168px; }
.date-filter { display: inline-flex; align-items: center; gap: var(--ealyx-space-xs); color: var(--muted-foreground); }
.date-filter .e-input { width: 148px; }
.e-table tbody tr:has(.e-row-link) { cursor: pointer; }
.e-table td.strong { font-weight: 600; }
.e-table td.clip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
/* drop shipping, at a glance: all of it in our violet, some of it in grey, none or not known left blank */
.e-table :is(th, td).dot { text-align: center; }
.drop-dot { display: inline-block; width: 10px; height: 10px; border-radius: var(--ealyx-radius-circle); vertical-align: middle; }
.drop-dot[data-drop="yes"] { background: var(--primary); }
/* some of it: a light grey beside the violet; in dark mode the light grey is the muted text's (border-strong is near black there) */
.drop-dot[data-drop="partial"] { background: var(--ealyx-color-ui-border-strong); }
.dark .drop-dot[data-drop="partial"] { background: var(--muted-foreground); }
.e-table td.latest { max-width: 360px; }
.e-table .latest__files { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.e-table .aliases { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.pager { display: inline-flex; gap: var(--ealyx-space-xs); }
/* how saving goes, by the title: quiet while it goes well */
.save-status { display: inline-flex; align-items: center; gap: var(--ealyx-space-xs); margin: 0; color: var(--muted-foreground); font-size: var(--ealyx-typography-ui-body-sm-font-size); }
.save-status[data-state="saved"] > .icon { color: var(--success); }
.save-status[data-state="saving"] > .icon { animation: spin 1.2s linear infinite; }
.save-status[data-state="failed"] { color: var(--destructive); }
.save-status .e-btn { color: var(--destructive); text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .save-status[data-state="saving"] > .icon { animation: none; } }
.e-form-section__title + .e-form-grid { margin-top: var(--ealyx-space-md); }
#company-form .e-card__footer { display: flex; justify-content: flex-end; gap: var(--ealyx-space-sm); }
.e-input.notes { height: auto; min-height: 120px; padding-top: var(--ealyx-space-sm); padding-bottom: var(--ealyx-space-sm); line-height: 1.5; resize: vertical; font-family: inherit; }

/* an upload, compact: who, when and the brands on one line, the notes whole (as tall as what they hold), then its files */
.e-page:has(.upload-form) .e-page-header { margin-bottom: var(--ealyx-space-lg); }
.upload-form { max-width: var(--ealyx-size-layout-content-detail); }
.upload-form > .e-card__body { padding: var(--ealyx-space-md); }
.upload-form[data-over] { outline: 2px dashed var(--primary); outline-offset: 4px; }
.upload-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.upload-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 10.5rem 10rem; gap: var(--ealyx-space-md); align-items: start; }
.upload-grid__half { grid-column: span 2; }
.upload-grid__wide { grid-column: 1 / -1; }
.upload-grid .e-input.notes { height: var(--content-height, auto); resize: none; overflow: hidden; }
@container (max-width: 720px) {
  .upload-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* a picker: the field and, under it, what matches what is typed (or «Crear …») */
.picker { position: relative; }
.picker__options { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 12; max-height: 280px; overflow: auto; margin: 0; padding: var(--ealyx-space-xs); list-style: none; border-radius: var(--ealyx-radius-md); background: var(--card); box-shadow: 0 0 0 1px var(--ring), var(--ealyx-shadow-md); }
.picker__options li { display: grid; padding: var(--ealyx-space-sm) var(--ealyx-space-md); border-radius: var(--ealyx-radius-sm); cursor: pointer; }
.picker__options li small { color: var(--muted-foreground); font-size: 12px; }
.picker__options li[aria-selected="true"] { background: var(--primary-container); }
.picker__options .picker-create { color: var(--primary); font-weight: 600; }

/* an upload's files: cards like a mail's attachments (its kind's icon and colour: file-kinds.css), several to a
   line, those it has and then those going up; under them, a strip to drop more on (the whole form takes them) */
.upload-files { margin-top: var(--ealyx-space-lg); }
.upload-files__title { margin: 0 0 var(--ealyx-space-form-label); font: var(--ealyx-typography-ui-body-font-weight) var(--ealyx-typography-ui-body-font-size)/1.4 var(--ealyx-font-family-text); }
.file-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: var(--ealyx-space-sm); }
.file-cards:has(li) { margin-bottom: var(--ealyx-space-sm); }
.documents { display: contents; list-style: none; }
.documents li { position: relative; display: flex; align-items: center; min-width: 0; gap: var(--ealyx-space-sm); padding: 6px 4px 6px 10px; border-radius: var(--ealyx-radius-md); box-shadow: 0 0 0 1px var(--ring); background: var(--background); }
.documents li > .icon { width: var(--ealyx-size-icon-lg); height: var(--ealyx-size-icon-lg); color: var(--primary); }
.documents .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.documents .grow > :is(a, b) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* a card keeps to its lines: what is happening to a file runs on only when it went wrong, to be read whole */
.documents li:not([data-state="failed"], [data-state="refused"]) .grow > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.documents .grow > a { color: var(--foreground); font-weight: 600; }
/* a saved file's name stretches over its whole card, which downloads it; its button stays above */
.documents .grow > a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.documents li:has(.grow > a):hover { background: var(--muted); }
.documents li > button { position: relative; z-index: 1; }
.queued-file__progress { display: block; height: 4px; border-radius: var(--ealyx-radius-pill); background: var(--muted); overflow: hidden; }
.queued-file__bar { display: block; height: 100%; width: 0; background: var(--primary); transition: width var(--ealyx-duration-state); }
.queued-file[data-state="ready"] .queued-file__progress, .queued-file:is([data-state="failed"], [data-state="refused"]) .queued-file__progress { display: none; }
.queued-file[data-state="ready"] .queued-file__status { color: var(--success); }
.queued-file:is([data-state="failed"], [data-state="refused"]) { box-shadow: 0 0 0 1px var(--destructive); }
.queued-file:is([data-state="failed"], [data-state="refused"]) .queued-file__status { color: var(--destructive); }
.documents li.on-the-way > .icon { animation: spin 1.2s linear infinite; color: var(--muted-foreground); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .documents li.on-the-way > .icon { animation: none; } }
.dropzone { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--ealyx-space-sm); padding: var(--ealyx-space-sm) var(--ealyx-space-md); border: 1px dashed var(--ealyx-color-ui-border-strong); border-radius: var(--ealyx-radius-lg); text-align: center; color: var(--muted-foreground); transition: background var(--ealyx-duration-state), border-color var(--ealyx-duration-state); }
.dropzone p { margin: 0; color: var(--foreground); }
.dropzone > .icon { color: var(--primary); }
.dropzone[data-over] { border-color: var(--primary); background: var(--primary-container); }

/* the knowledge document («documento maestro»): rendered for reading, or as markdown; a switch between the two */
.view-switch { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: var(--ealyx-radius-sm); background: var(--muted); }
.view-switch button { height: 32px; padding: 0 var(--ealyx-space-md); border: 0; border-radius: var(--ealyx-radius-xs); background: transparent; color: var(--muted-foreground); font: inherit; font-weight: 500; cursor: pointer; }
.view-switch button[aria-pressed="true"] { background: var(--card); color: var(--foreground); box-shadow: 0 0 0 1px var(--ring); }
.knowledge { max-width: var(--ealyx-size-layout-content-reading); padding: var(--ealyx-space-lg) var(--ealyx-space-xl); line-height: 1.55; }
.knowledge > :first-child { margin-top: 0; }
/* the document's title, then a company (with a rule above it), then each of its uploads */
.knowledge h2 { margin: 0 0 var(--ealyx-space-sm); font-size: var(--ealyx-typography-ui-h1-font-size); }
.knowledge h3 { margin: var(--ealyx-space-xl) 0 var(--ealyx-space-xs); padding-top: var(--ealyx-space-lg); border-top: 1px solid var(--border); font-size: var(--ealyx-typography-ui-h2-font-size); }
.knowledge h4 { margin: var(--ealyx-space-lg) 0 var(--ealyx-space-xs); font-size: var(--ealyx-typography-ui-h3-font-size); color: var(--foreground-secondary); }
.knowledge p { margin: 0 0 var(--ealyx-space-sm); }
.knowledge blockquote { margin: 0 0 var(--ealyx-space-sm); padding: var(--ealyx-space-xs) var(--ealyx-space-md); border-left: 3px solid var(--primary-container-high); color: var(--foreground-secondary); }
.knowledge code { padding: 0 4px; border-radius: var(--ealyx-radius-xs); background: var(--muted); font-family: var(--ealyx-font-family-mono, ui-monospace, monospace); font-size: 0.92em; }
.knowledge a { overflow-wrap: anywhere; }
.knowledge-raw { max-width: var(--ealyx-size-layout-content-reading); margin: 0; padding: var(--ealyx-space-lg); overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.5 var(--ealyx-font-family-mono, ui-monospace, monospace); }

/* a company: its details, then its contacts */
.company-page { display: grid; gap: var(--ealyx-space-xl); max-width: var(--ealyx-size-layout-content-form); }
.sheet-merge { margin-right: auto; }
dialog.e-sheet form { display: flex; flex-direction: column; height: 100%; min-height: 0; }
dialog.e-dialog { border: 0; padding: 0; color: inherit; }
dialog.e-dialog::backdrop { background: color-mix(in oklab, var(--ealyx-color-brand-ink) 30%, transparent); }
dialog.e-dialog .e-card__footer { display: flex; justify-content: flex-end; gap: var(--ealyx-space-sm); }

/* connecting an app (connect.html): what it asks, then yes or no */
.connect-asking { display: grid; gap: 14px; }
.connect-back { color: var(--muted-foreground); }
.connect-actions { display: flex; flex-wrap: wrap; gap: var(--ealyx-space-sm); }

/* an upload archived or replaced (upload.html): a notice with the way back; what it replaces, and choosing one */
.retired-notices { display: grid; gap: var(--ealyx-space-sm); margin-bottom: var(--ealyx-space-lg); }
.retired-notices:empty { display: none; }
.retired-notice { align-items: center; }
.retired-notice > div { flex: 1; min-width: 0; }
.upload-supersedes { margin-top: var(--ealyx-space-lg); padding-top: var(--ealyx-space-lg); border-top: 1px solid var(--border); display: grid; gap: var(--ealyx-space-sm); justify-items: start; }
.supersedes { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; width: 100%; }
.supersedes:empty { display: none; }
.supersedes li { display: flex; align-items: center; gap: var(--ealyx-space-sm); min-width: 0; }
.supersedes li > .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.supersede-picker { display: grid; gap: var(--ealyx-space-sm); width: 100%; }
.supersede-picker .e-hint { margin: 0; }
.supersede-candidates { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--ealyx-space-sm); margin: 0; padding: 0; list-style: none; }
.supersede-candidates > .muted { grid-column: 1 / -1; }
.supersede-candidate { display: grid; gap: 2px; width: 100%; padding: 8px 10px; text-align: left; font: inherit; color: inherit; border: 0; border-radius: var(--ealyx-radius-md); box-shadow: 0 0 0 1px var(--ring); background: var(--background); cursor: pointer; }
.supersede-candidate:hover, .supersede-candidate:focus-visible { box-shadow: 0 0 0 2px var(--accent-violet); outline: none; }
.supersede-candidate > :is(span, small) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* a company's archived and replaced uploads, under its list (index.html) */
.retired-uploads { margin-top: var(--ealyx-space-2xl); }
.retired-uploads__title { margin: 0; font: 600 var(--ealyx-typography-ui-body-font-size)/1.4 var(--ealyx-font-family-text); }
.retired-uploads__hint { margin: 2px 0 var(--ealyx-space-md); }
.retired-uploads .e-table { opacity: 0.85; }
.uploads-table td.code > span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
/* a company's own list names it above: no company column (its rows leave out the cell) */
.uploads-table.by-company th.company { display: none; }
/* the code is there to cite an upload, not to read the list by: small and quiet */
.uploads-table td.code .e-row-link { font-size: var(--ealyx-typography-ui-body-sm-font-size); color: var(--muted-foreground); }
.retired-badge { white-space: nowrap; }
