:root {
  color-scheme: light;
  font-family: var(--awh-font-sans);
  font-synthesis: none;
  --canvas: var(--awh-canvas);
  --surface: var(--awh-surface);
  --surface-raised: var(--awh-surface-raised);
  --surface-soft: var(--awh-surface-soft);
  --line: var(--awh-line);
  --text: var(--awh-text);
  --muted: var(--awh-muted);
  --accent: var(--awh-accent);
  --accent-ink: var(--awh-accent-ink);
  --danger: var(--awh-danger);
}

html,
body { max-width: 100%; }

html {
  min-height: 100%;
  background-color: var(--canvas);
  overscroll-behavior-y: none;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}

/* Keep the existing session-check surface visible while auth routing resolves. */

button,
input,
textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
* { box-sizing: border-box; }
img, svg, canvas, video { max-width: 100%; }
[hidden] { display: none !important; }

.app-shell {
  isolation: isolate;
  min-width: 0;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  background-color: var(--canvas);
}

.app-header,
.app-main { width: min(100% - 40px, 880px); min-width: 0; max-width: 100%; margin-inline: auto; }

.app-header {
  display: flex;
  min-height: calc(72px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.brand-mark { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 10px; color: var(--accent-ink); background: var(--accent); font-size: 18px; font-weight: 900; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: -.01em; }
.brand small { overflow: hidden; max-width: 230px; margin-top: 2px; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.header-actions { display: inline-flex; align-items: center; gap: 8px; }
.quiet-status { color: var(--muted); font-size: 12px; white-space: nowrap; }

.app-main { padding-bottom: calc(42px + env(safe-area-inset-bottom)); }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.03em; }
.muted, .form-message { color: var(--muted); font-size: 14px; line-height: 1.55; }
.form-message { min-height: 1.3em; margin: 0; }

.sign-in-view { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 390px); align-items: center; gap: clamp(36px, 9vw, 104px); min-height: calc(100dvh - 96px); padding-block: 32px 64px; }
.sign-in-copy h1 { max-width: 560px; margin-bottom: 18px; font-size: clamp(42px, 7vw, 70px); line-height: .99; }
.sign-in-copy > p:last-child { max-width: 480px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.auth-card, .sheet-card { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 18px 52px rgba(0, 0, 0, .25); }
.auth-card { display: grid; gap: 11px; padding: 24px; }
.auth-card h2 { margin: 0; font-size: 23px; }
.auth-card .muted { margin: -3px 0 8px; }
label { color: var(--awh-text, #11325f); font-size: 13px; font-weight: 650; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  color: var(--text);
  background: #0f1217;
  box-shadow: none;
}
input { min-height: 46px; padding: 11px 13px; }
select { min-height: 46px; padding: 11px 13px; }
textarea { min-height: 82px; padding: 13px 14px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 138, 54, .16); }
.check-row { display: flex; align-items: center; gap: 9px; margin: 2px 0 4px; color: var(--awh-text); font-weight: 500; }
.check-row input { width: 17px; min-height: 17px; accent-color: var(--accent); }

.primary-button, .secondary-button, .danger-button, .refresh-button, .icon-button, .text-button, .project-trigger, .conversation-trigger { border: 0; cursor: pointer; }
.primary-button { min-height: 46px; border-radius: 12px; padding: 11px 16px; color: var(--accent-ink); background: var(--accent); font-weight: 800; }
.primary-button:disabled { cursor: not-allowed; opacity: .48; }
.secondary-button, .danger-button, .refresh-button, .icon-button { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; color: var(--text); background: var(--surface-raised); font-weight: 700; }
.danger-button { width: 100%; margin-top: 18px; color: #ffd6d2; border-color: #743a38; background: #2a1719; }
.text-button { display: inline-flex; min-height: 44px; align-items: center; width: fit-content; padding: 4px 0; color: var(--muted); background: transparent; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.technical-entry { color: var(--muted); font-size: 13px; line-height: 1.55; }
.technical-entry summary { cursor: pointer; color: var(--muted); }
.technical-entry[open] { display: grid; gap: 9px; padding-top: 8px; }
.technical-entry p { margin: 0; }
.advanced-ai-fields { display: grid; gap: 9px; margin-top: 12px; }
.provider-advanced { margin: 2px 0 4px; }

.workspace-view { padding-top: clamp(12px, 3vw, 30px); }
.workspace-heading { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; margin-bottom: clamp(24px, 5vw, 44px); }
.workspace-heading > div { min-width: 0; }
.workspace-home { display: inline-flex; min-height: 42px; align-items: center; gap: 9px; border: 0; border-radius: 12px; padding: 5px 8px 5px 5px; color: var(--text); background: transparent; font-weight: 800; cursor: pointer; }
.workspace-home:hover { background: var(--surface); }
.workspace-home-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: var(--accent-ink); background: var(--accent); font-size: 15px; font-weight: 900; }
.project-trigger { display: inline-flex; min-width: 0; max-width: min(100%, 620px); align-items: center; gap: 8px; padding: 0; color: var(--text); background: transparent; font-size: clamp(26px, 5vw, 42px); font-weight: 780; letter-spacing: -.045em; text-align: left; }
.project-trigger span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-trigger { display: inline-flex; max-width: 100%; align-items: center; gap: 6px; margin-top: 8px; padding: 0; color: var(--muted); background: transparent; font-size: 14px; text-align: left; }
.conversation-trigger:hover { color: var(--text); }
.worker-summary { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.refresh-button { flex: 0 0 auto; color: var(--muted); }
.workstream { min-width: 0; min-height: min(54dvh, 560px); }
.workstream-title { margin-bottom: 22px; }
.workstream-title h1 { margin-bottom: 7px; font-size: clamp(28px, 4vw, 38px); }
.workstream-title p { margin: 0; color: var(--muted); font-size: 15px; }
.empty-work { max-width: 540px; padding: 30px 0 42px; color: var(--muted); }
.empty-work h2 { margin: 12px 0 8px; color: var(--text); font-size: 21px; }
.empty-work p { margin: 0; line-height: 1.6; }
.empty-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #6a4226; border-radius: 12px; color: var(--accent); background: #20170f; }
.work-thread { display: grid; min-width: 0; gap: 16px; max-width: 740px; margin: 0; padding: 0 0 32px; list-style: none; }
.task-turn { display: grid; min-width: 0; gap: 8px; }
.task-goal { width: fit-content; max-width: min(100%, 620px); margin-left: auto; padding: 13px 15px; border-radius: 16px 16px 4px 16px; color: #fff; background: var(--surface-soft); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-response { display: grid; min-width: 0; gap: 8px; padding: 2px 0 0; }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.state-chip { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; color: #c8cdd7; background: var(--surface); font-size: 11px; font-weight: 750; }
.state-chip.completed { color: #b7efcc; border-color: #2d6747; background: #14231a; }
.state-chip.failed { color: #ffd2cf; border-color: #713d3b; background: #29191a; }
.state-chip.approval { color: #ffd4a9; border-color: #775132; background: #261b13; }
.capability-plan { max-width: 650px; margin: 4px 0 0; border: 1px solid color-mix(in srgb,var(--accent) 22%,var(--line)); border-radius: 12px; padding: 8px 10px; color: var(--muted); background: color-mix(in srgb,var(--accent) 5%,var(--surface)); font-size: 12px; }
.capability-plan > summary { width: max-content; max-width: 100%; cursor: pointer; color: var(--text); font-size: 12px; font-weight: 800; }
.capability-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.capability-chip { display: inline-flex; align-items: center; min-height: 24px; max-width: 100%; border: 1px solid color-mix(in srgb,var(--accent) 28%,var(--line)); border-radius: 999px; padding: 3px 8px; color: var(--text); background: var(--surface); font-size: 11px; font-weight: 750; }
.capability-reasons { display: grid; gap: 5px; margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 11px; line-height: 1.5; }
body.work-active .capability-plan { max-width: none; background: #fffaf6; }
@media (max-width: 640px) { .capability-plan { padding: 8px; } .capability-chip { white-space: normal; } }
.task-summary { max-width: 650px; color: #d5dae2; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.task-actions .secondary-button { min-height: 36px; padding: 7px 10px; font-size: 12px; }
.artifact-links { display: grid; gap: 4px; margin: 2px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }

.composer { position: sticky; bottom: 0; z-index: 2; display: grid; min-width: 0; gap: 10px; margin: 0; padding: 16px 0 calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--canvas); }
.composer textarea { min-height: 58px; max-height: 180px; resize: none; background: var(--surface); }
.composer-actions { display: flex; min-width: 0; min-height: 36px; align-items: center; justify-content: space-between; gap: 14px; }
.composer-tools { display: flex; min-width: 0; align-items: center; gap: 9px; }
.composer-tools .icon-button { width: 36px; height: 36px; flex: 0 0 auto; padding: 0; font-size: 22px; line-height: 1; }
.composer-actions .primary-button { min-height: 38px; padding: 8px 13px; }
.composer-submit-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.composer-stop { min-height: 38px; padding: 8px 12px; color: var(--danger); }
.composer.is-drop-target textarea { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb,var(--accent) 16%,transparent); }
.composer.is-drop-target::before { content: "วางไฟล์เพื่อแนบ"; position: absolute; inset: 7px 0 auto; z-index: 3; width: fit-content; margin: auto; padding: 6px 10px; border: 1px solid var(--accent); border-radius: 999px; color: var(--text); background: var(--surface-raised); font-size: 12px; font-weight: 750; pointer-events: none; }
.pending-attachments, .message-attachments { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pending-attachments li, .message-attachments a, .message-attachments span { display: inline-flex; min-width: 0; align-items: center; gap: 7px; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; color: var(--text); background: var(--surface); font-size: 13px; overflow-wrap: anywhere; text-decoration: none; }
.pending-attachments span { overflow: hidden; max-width: 210px; text-overflow: ellipsis; white-space: nowrap; }
.pending-attachments button { border: 0; padding: 0; color: var(--muted); background: transparent; font: inherit; cursor: pointer; }
.message-attachments { margin-top: 8px; }
.message-attachments a:hover { border-color: var(--k-blue); color: var(--awh-text); background: var(--awh-surface-soft); }
.user-message-actions{display:flex;justify-content:flex-end;margin-top:4px;opacity:.72}
.user-message-actions .text-button{min-height:32px;padding:4px 7px;font-size:11.5px}
.user-turn:focus-within .user-message-actions,.user-turn:hover .user-message-actions{opacity:1}
.message-actions{display:flex;gap:6px;min-height:32px;align-items:center;opacity:.68}
.message-actions .text-button{min-height:32px;padding:4px 7px;font-size:11.5px}
.assistant-turn:focus-within .message-actions,.assistant-turn:hover .message-actions{opacity:1}
.advanced-panel { max-width: 740px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.advanced-panel summary { cursor: pointer; }
.advanced-panel > div { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.advanced-panel p { margin: 0; }

.sheet { position: fixed; z-index: 100; inset: var(--awh-visual-viewport-top, 0px) 0 auto; display: grid; width: 100%; height: var(--awh-visual-viewport-height, 100dvh); max-width: 100%; align-items: end; padding: 16px; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .66); }
.sheet-card { position: relative; z-index: 1; width: min(100%, 700px); min-width: 0; max-width: 100%; max-height: min(calc(var(--awh-visual-viewport-height, 100dvh) - 32px), 760px); margin: auto; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scroll-padding-block: 72px calc(96px + env(safe-area-inset-bottom)); padding: 22px; }
.sheet-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sheet-header h2 { margin: 0; font-size: 24px; }
.project-list, .session-list { display: grid; gap: 8px; }
.conversation-list { margin-top: 14px; }
.conversation-title-form { display: grid; gap: 8px; margin-top: 14px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.conversation-title-form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.conversation-title-form .text-button { justify-self: start; }
.conversation-title-form .conversation-delete { color: #ffaaa3; }
.conversation-trash { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }
.conversation-trash > summary { min-height: 44px; cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 750; }
.conversation-trash-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.conversation-trash-row > span { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.conversation-trash-row strong { color: var(--text); font-size: 13px; overflow-wrap: anywhere; }
.conversation-trash-row small { color: var(--muted); font-size: 11px; }
.conversation-trash-row .secondary-button { flex: 0 0 auto; min-height: 38px; }

.project-choice { display: grid; width: 100%; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; color: var(--text); background: var(--surface-raised); text-align: left; }
.project-choice.selected { border-color: var(--accent); }
.project-choice strong { font-size: 15px; }
.project-choice span { color: var(--muted); font-size: 12px; }

.profile-trigger{display:inline-grid;place-items:center;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:2px!important;border:1px solid var(--line)!important;border-radius:50%!important;overflow:hidden;background:var(--surface)!important;box-shadow:0 8px 24px rgba(15,44,82,.08)}
.profile-trigger:hover,.profile-trigger:focus-visible{border-color:var(--accent)!important;outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 16%,transparent),0 8px 24px rgba(15,44,82,.1)}
.account-avatar-image{width:100%;height:100%;display:block;object-fit:cover;border-radius:50%}
.profile-menu-sheet{align-items:start}
.profile-menu-card{width:min(420px,calc(100vw - 32px));margin:72px 16px auto auto;padding:16px;border-radius:22px;background:var(--surface);box-shadow:0 24px 70px rgba(13,39,72,.18)}
.profile-menu-head{display:grid;grid-template-columns:52px minmax(0,1fr) 44px;gap:12px;align-items:center;padding:3px 2px 14px;border-bottom:1px solid var(--line)}
.profile-menu-avatar{width:52px;height:52px;object-fit:cover;border:1px solid var(--line);border-radius:50%;background:var(--surface-soft)}
.profile-menu-copy{display:grid;min-width:0;gap:2px}.profile-menu-copy small,.profile-menu-copy span{color:var(--muted);font-size:12px;line-height:1.35}.profile-menu-copy strong{overflow:hidden;color:var(--text);font-size:16px;text-overflow:ellipsis;white-space:nowrap}
.profile-menu-close{align-self:start}
.profile-menu-actions{display:grid;gap:4px;padding:10px 0}
.profile-menu-action{display:grid;grid-template-columns:34px minmax(0,1fr) 18px;gap:10px;align-items:center;width:100%;min-height:58px;padding:9px 10px;border:0;border-radius:14px;background:transparent;color:var(--text);text-align:left;font:inherit}
.profile-menu-action:hover,.profile-menu-action:focus-visible{background:var(--surface-soft);outline:none}
.profile-menu-action>span:first-child{display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--line);border-radius:10px;color:var(--accent);background:var(--surface)}
.profile-menu-action>span:nth-child(2){display:grid;gap:2px;min-width:0}.profile-menu-action strong{font-size:13px}.profile-menu-action small{color:var(--muted);font-size:11.5px;line-height:1.35}.profile-menu-action>b{color:var(--muted);font-size:20px;font-weight:500}
.profile-menu-logout{width:100%;min-height:46px;margin-top:4px;border:1px solid color-mix(in srgb,var(--danger) 28%,var(--line));border-radius:13px;background:transparent;color:var(--danger);font:inherit;font-weight:750}
.profile-settings-card{display:grid;grid-template-columns:58px minmax(0,1fr);gap:12px 14px;align-items:center;margin:12px 0 8px;padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--surface-soft)}
.profile-settings-avatar{width:58px;height:58px;object-fit:cover;border:1px solid var(--line);border-radius:50%;background:var(--surface)}
.profile-settings-copy{display:grid;min-width:0;gap:3px}.profile-settings-copy strong{font-size:16px}.profile-settings-copy span{color:var(--muted);font-size:12px}
.profile-settings-card .compact-form{grid-column:1/-1;margin-top:2px}
@media(max-width:680px){
  .profile-menu-sheet{align-items:end}
  .profile-menu-card{width:100%;margin:auto 0 0;padding:16px 14px calc(16px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0}
  .profile-menu-action{min-height:60px}
  .profile-menu-action strong{font-size:14px}
  .profile-menu-action small{font-size:12px}
}

.account-card { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
.settings-tabs { display: flex; gap: 7px; margin: 0 -2px 6px; padding: 2px 2px 10px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.settings-tabs::-webkit-scrollbar { display: none; }
.settings-tab { min-width: var(--awh-touch-target, 44px); min-height: var(--awh-touch-target, 44px); flex: 0 0 auto; border: 1px solid transparent; border-radius: 999px; padding: 7px 11px; color: var(--muted); background: transparent; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.settings-tab.active { border-color: var(--line); color: var(--text); background: var(--surface-raised); }
@media (max-width: 540px) { .settings-tabs { flex-wrap: wrap; overflow-x: visible; } }
.settings-panel { min-height: 280px; padding-bottom: 6px; }
.settings-intro, .settings-summary { padding: 20px 0 6px; }
.settings-intro h3, .settings-summary h3 { margin: 0 0 7px; font-size: 22px; }
.settings-intro p:last-child, .settings-summary p:last-child { margin-bottom: 0; }
.settings-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 18px; }
.settings-action { display: grid; min-height: 116px; gap: 7px; align-content: start; border: 1px solid var(--line); border-radius: 14px; padding: 15px; color: var(--text); background: var(--surface-raised); text-align: left; font: inherit; cursor: pointer; }
.settings-action strong { font-size: 14px; }
.settings-action span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.settings-action:hover { border-color: #65442d; background: #1c1f25; }
.account-form { display: grid; gap: 9px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.account-form h3 { margin: 0 0 2px; font-size: 16px; }
.settings-policy-note { display: grid; gap: 5px; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.settings-policy-note strong { font-size: 13px; color: var(--text); }
.settings-policy-note span { color: var(--muted); font-size: 12px; line-height: 1.55; }
.settings-inline-link { display: inline-flex; width: max-content; align-items: center; justify-content: center; text-decoration: none; }
.danger-zone { border-top-color: color-mix(in srgb, var(--danger) 32%, var(--line)); }
#brand-history-list .session-item { align-items: center; }
#brand-history-list .session-item > div { display: grid; gap: 3px; min-width: 0; }
#brand-history-list .session-item small { color: var(--muted); overflow-wrap: anywhere; }
.brand-settings-preview{display:grid;grid-template-columns:minmax(110px,180px) minmax(0,1fr) 70px;gap:16px;align-items:center;margin:14px 0 4px;padding:18px;border:1px solid var(--line);border-radius:20px;background:var(--surface-soft)}
.brand-preview-logo-wrap{display:grid;place-items:center;min-height:82px;padding:10px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.brand-preview-logo-wrap img{display:block;max-width:100%;max-height:66px;object-fit:contain}
.brand-preview-copy{display:grid;gap:5px;min-width:0}.brand-preview-copy strong{font-size:17px;overflow-wrap:anywhere}.brand-preview-copy span{color:var(--muted);font-size:12px;line-height:1.45}
.brand-preview-icon{width:64px;height:64px;object-fit:contain;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.brand-upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.brand-upload-card{display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px;align-items:center;padding:13px;border:1px solid var(--line);border-radius:16px;background:var(--surface-raised)}
.brand-upload-card>img{width:76px;height:76px;object-fit:contain;padding:6px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.brand-upload-card>div{display:grid;gap:6px;min-width:0}.brand-upload-card small{color:var(--muted);font-size:11px;line-height:1.45}.brand-upload-card .secondary-button,.brand-upload-card .text-button{justify-self:start}
.file-button{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.brand-color-field{display:flex;align-items:center;gap:10px}.brand-color-field input[type="color"]{width:54px;height:42px;padding:3px}.brand-color-field output{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--muted);font-size:12px}
@media(max-width:680px){.brand-settings-preview{grid-template-columns:1fr 62px}.brand-preview-logo-wrap{grid-column:1/-1}.brand-upload-grid{grid-template-columns:1fr}.brand-upload-card{grid-template-columns:64px minmax(0,1fr)}.brand-upload-card>img{width:64px;height:64px}}
.compact-form { display: grid; gap: 9px; margin-top: 14px; }
.compact-form > .form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.recovery-card { border-color: #4a3b2d; }
.session-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.session-row .secondary-button { min-height: 34px; padding: 6px 9px; font-size: 12px; }
.memory-row { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.memory-row p, .memory-row small { margin: 0; color: var(--muted); line-height: 1.55; }
.memory-header, .memory-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.memory-header span { color: var(--muted); font-size: 12px; }
.memory-actions { justify-content: flex-start; }
.memory-actions .secondary-button { min-height: 34px; padding: 6px 9px; font-size: 12px; }
pre { max-width: 100%; overflow-x: auto; overflow-y: auto; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: #0f1217; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
code { overflow-wrap: anywhere; word-break: break-word; }

.workstream, .work-thread, .task-turn, .task-response, .composer { min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 680px) {
  .app-header, .app-main { width: min(100% - 32px, 680px); }
  .brand small { max-width: 170px; }
  .quiet-status { display: none; }
  .sign-in-view { grid-template-columns: 1fr; align-content: start; min-height: auto; padding-top: 34px; }
  .sign-in-copy h1 { font-size: clamp(38px, 11vw, 54px); }
  .sign-in-copy > p:last-child { font-size: 16px; }
  .auth-card { padding: 20px; }
  .workspace-heading { align-items: flex-start; margin-bottom: 34px; }
  .project-trigger { font-size: 30px; }
  .refresh-button { min-height: 36px; padding: 7px 9px; font-size: 12px; }
  .workstream { min-height: min(50dvh, 480px); }
  .composer { margin: 0; padding-inline: 0; }
  .advanced-panel > div { display: grid; }
  .sheet { align-items: end; padding: 0; }
  .sheet-card { width: 100%; max-height: calc(var(--awh-visual-viewport-height, 100dvh) - max(env(safe-area-inset-top), 8px)); border-radius: 20px 20px 0 0; }
  .settings-action-grid { grid-template-columns: 1fr; }
  .settings-panel { min-height: 340px; }
}

@media (prefers-reduced-motion: no-preference) { .sheet-card { animation: sheet-in var(--awh-motion-navigation, 300ms) var(--awh-ease, ease-out); } }
@keyframes sheet-in { from { transform: translateY(var(--awh-motion-panel-distance, 12px)); } to { transform: translateY(0); } }

.sheet-card .icon-button,
.sheet-card .secondary-button,
.sheet-card .text-button {
  min-height: var(--awh-touch-target, 44px);
}
.sheet-card .text-button { display: inline-flex; align-items: center; }

.inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.inline-form input, .inline-form select { min-width: 0; }
.task-progress-row { display: grid; grid-template-columns: minmax(90px, 180px) 1fr; gap: 10px; align-items: center; max-width: 650px; color: var(--muted); font-size: 12px; }
.task-progress-row progress { width: 100%; height: 8px; accent-color: var(--accent); }
.person-card { display: grid; gap: 10px; }
.person-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.person-access-editor { display: grid; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.person-projects { display: grid; gap: 6px; }
@media (max-width: 640px) { .inline-form { grid-template-columns: 1fr; } .task-progress-row { grid-template-columns: 1fr; } }

.login-downloads{margin-top:10px;padding-top:10px;border-top:1px solid var(--line);display:grid;gap:6px;color:var(--muted);font-size:.78rem}.login-downloads>span{font-weight:650}.login-download-actions{display:flex;gap:7px;flex-wrap:wrap}.login-download-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:5px 10px;border:1px solid var(--line);border-radius:9px;color:var(--text);background:var(--surface-soft);text-decoration:none;font-size:.78rem;font-weight:650}.login-download-actions a:hover,.login-download-actions a:focus-visible{border-color:var(--accent);outline:none}.login-downloads small{font-size:.7rem}


/* Canonical Work surface: chat-first, mobile-safe, and free of presentation overlays. */
body.work-active { height: var(--awh-visual-viewport-height,100dvh); overflow: hidden; }
body.work-active .app-shell { display: flex; height: var(--awh-visual-viewport-height,100dvh); min-height: 0; flex-direction: column; overflow: hidden; }
body.work-active .app-header { display: none; }
body.work-active .app-main { display: flex; width: min(100% - 24px, 1160px); min-height: 0; flex: 1 1 auto; padding: 0; overflow: hidden; }
body.work-active .workspace-view { display: flex; width: 100%; min-height: 0; padding: 0; flex: 1 1 auto; flex-direction: column; overflow: hidden; }
body.work-active .workspace-heading { display: grid; min-height: calc(58px + env(safe-area-inset-top)); flex: 0 0 auto; grid-template-columns: auto minmax(0,1fr) auto; margin: 0; padding-top: env(safe-area-inset-top); align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
body.work-active .workspace-home { min-width: 42px; padding-right: 9px; }
body.work-active .workspace-home > span:last-child { font-size: 12px; }
body.work-active .workspace-heading .eyebrow { display: none; }
body.work-active .workspace-project { min-width: 0; }
body.work-active .workspace-actions { display: inline-flex; align-items: center; gap: 4px; }
body.work-active .workspace-account { display: inline-flex; min-height: 34px; padding: 6px 9px; font-size: 12px; }
body.work-active .workspace-project { display: flex; min-width: 0; flex-direction: column; }
body.work-active .conversation-trigger { order: 0; display: inline-flex; margin: 0; color: var(--text); font-size: 15px; font-weight: 780; line-height: 1.2; }
body.work-active .project-trigger { order: 1; max-width: 100%; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: 0; }
body.work-active .workspace-chat-action { width: 34px; min-height: 34px; padding: 0; border: 0; background: transparent; font-size: 20px; }
body.work-active .work-advanced-links, body.work-active .advanced-panel { display: none !important; }
body.work-active .hub-status-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; color: #8d97a4; font-size: 10px; }
body.work-active .status-item { display: inline-flex; align-items: center; gap: 5px; }
body.work-active .status-dot { width: 6px; height: 6px; border-radius: 50%; background: #5bd58c; box-shadow: 0 0 9px rgba(91,213,140,.42); }
body.work-active .refresh-button { width: 34px; min-height: 34px; padding: 0; border: 0; background: transparent; font-size: 18px; }
body.work-active .workstream { position: relative; display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; overflow: hidden; }
body.work-active .workstream-title { display: none; }
body.work-active .empty-work { margin: auto; padding: 28px 0; text-align: center; }
body.work-active .work-thread { display: block; width: 100%; max-width: 780px; min-height: 0; flex: 1 1 auto; margin: 0 auto; padding: 20px 0 28px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
body.work-active .conversation-latest { position: absolute; z-index: 3; right: max(10px, calc((100% - 780px) / 2)); bottom: 12px; min-height: 38px; border: 1px solid rgba(255,122,26,.28); border-radius: 999px; padding: 7px 12px; color: var(--awh-accent-strong,#d85f0b); background: rgba(255,255,255,.96); box-shadow: 0 10px 28px rgba(25,65,108,.12); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
body.work-active .task-turn { margin-bottom: 14px; }
body.work-active .user-turn { justify-items: end; }
body.work-active .task-goal { max-width: min(78%, 620px); margin: 0; padding: 11px 14px; border: 1px solid #e0d9d0; border-radius: 10px 10px 3px 10px; background: #f5f2ed; color:#403830; }
body.work-active .assistant-turn { grid-template-columns: minmax(0,1fr); align-items: start; }
body.work-active .assistant-turn::before { content: none; display: none; }
body.work-active .assistant-turn .task-response { min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
body.work-active .task-summary { max-width: none; margin: 0; color: var(--awh-text,#10284b); font-size: 14px; line-height: 1.62; }
body.work-active .task-meta { opacity: .72; font-size: 10px; }
body.work-active .task-progress-row { grid-template-columns: 96px minmax(0,1fr); }
body.work-active .typing-indicator { width: fit-content; margin: 2px 0; color: var(--muted); font-size: 12px; }
body.work-active .composer { position: relative; bottom: auto; flex: 0 0 auto; width: 100%; max-width: 780px; margin: 0 auto; padding: 10px 0 calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--canvas); }
body.work-active .composer textarea { min-height: 64px; max-height: 140px; border-radius: 11px; background: var(--surface); }
body.work-active .composer-actions { min-height: 36px; }
body.work-active .composer-actions .primary-button { min-width: 74px; }
body.work-active .form-message { min-height: 0; }
body.work-active .composer-tools { min-width: 0; }
body.work-active .composer-count { margin-left: auto; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.work-active .composer-count.near-limit { color: #b45309; font-weight: 800; }
body.work-active .conversation-history-note { width: fit-content; max-width: min(94%, 620px); margin: 0 auto 14px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: color-mix(in srgb,var(--surface) 94%,var(--canvas)); font-size: 10px; line-height: 1.35; text-align: center; }
body.work-active .task-goal, body.work-active .task-summary, body.work-active .form-message { overflow-wrap: anywhere; word-break: break-word; }

/* Work is a fixed conversation viewport; authenticated product surfaces are not. */
body.work-active.product-dashboard-active {
  height: auto;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
}
body.work-active.product-dashboard-active .app-shell {
  display: block;
  height: auto;
  min-height: 100dvh;
  overflow: visible;
}
body.work-active.product-dashboard-active .app-main {
  display: block;
  min-height: 100dvh;
  overflow: visible;
}
@media (max-width: 680px) {
  body.work-active:not(.product-dashboard-active) { overscroll-behavior: none; }
  body.work-active:not(.product-dashboard-active) .app-shell {
    position: fixed;
    z-index: 1;
    top: var(--awh-visual-viewport-top,0px);
    right: 0;
    left: 0;
    width: 100%;
    height: var(--awh-visual-viewport-height,100dvh);
    max-height: var(--awh-visual-viewport-height,100dvh);
  }
  body.work-active .app-main { width: calc(100% - 20px); padding-bottom: 74px; }
  body.work-active .workspace-heading { min-height: 58px; grid-template-columns: auto minmax(0,1fr) auto; }
  body.work-active .workspace-home { padding-right: 5px; }
  body.work-active .workspace-account { padding-inline: 7px; }
  body.work-active .workspace-home > span:last-child { display: none; }
  body.work-active .project-trigger { font-size: 14px; }
  body.work-active .conversation-trigger { font-size: 10px; }
  body.work-active .hub-status-row { font-size: 9px; }
  body.work-active .work-thread { padding: 14px 0 20px; }
  body.work-active .task-goal { max-width: 86%; font-size: 14px; }
  body.work-active .assistant-turn { grid-template-columns: 28px minmax(0,1fr); }
  body.work-active .assistant-turn::before { width: 26px; height: 26px; }
  body.work-active .assistant-turn .task-response { padding: 11px 12px; }
  body.work-active .composer { margin: 0; padding-inline: 0; }
}

/* M17 product polish: calm hierarchy, clear owner system entry, touch-first. */
.settings-action,
.system-feature-card,
.secondary-button,
.primary-button,
.icon-button { transition: border-color .16s ease, background-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.settings-action:focus-visible,
.system-feature-card:focus-visible,
.secondary-button:focus-visible,
.primary-button:focus-visible,
.icon-button:focus-visible { outline: 3px solid rgba(255, 138, 54, .22); outline-offset: 2px; }
.system-menu-lead { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
#settings-panel-system { min-height: 0; }
#account-sheet:has(#settings-panel-system:not([hidden])) .sheet-header { margin-bottom: 12px; }
#account-sheet:has(#settings-panel-system:not([hidden])) #account-sheet-eyebrow { display: none; }
.system-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 0; }
.system-action-grid > *, .system-feature-copy, .system-health-details { min-width: 0; }
.system-feature-card,
.system-health-card { border: 1px solid var(--line); border-radius: 16px; background: var(--surface-raised); }
.system-feature-card { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; min-height: 76px; align-items: center; gap: 12px; padding: 12px 14px; color: var(--text); text-decoration: none; }
.system-feature-card:hover { border-color: #6a472d; transform: translateY(-1px); box-shadow: 0 14px 34px rgba(0, 0, 0, .22); }
.system-feature-icon { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #65442d; border-radius: 10px; color: var(--accent); background: #21170f; font-size: 19px; }
.system-feature-copy { display: grid; gap: 3px; }
.system-feature-copy strong { font-size: 15px; line-height: 1.35; }
.system-feature-copy small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.system-feature-arrow { color: var(--muted); font-size: 21px; }
.system-health-card { min-height: 0; padding: 16px; }
.system-advanced > summary { min-height: 48px; display: flex; align-items: center; font-size: 13px; font-weight: 700; cursor: pointer; }
.system-advanced > summary::after { content: '⌄'; margin-left: auto; font-size: 18px; line-height: 1; }
.system-advanced[open] > summary::after { transform: rotate(180deg); }
.system-advanced-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 12px; }
.system-advanced-note { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--muted); }
.system-health-card > div { display: flex; align-items: center; gap: 9px; }
.system-health-card > .system-health-details { display: grid; }
.system-health-details .session-item { min-width: 0; overflow-wrap: anywhere; }
.system-health-card p { margin: 10px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.system-health-dot { width: 9px; height: 9px; border-radius: 50%; background: #63d893; box-shadow: 0 0 0 4px rgba(99, 216, 147, .09); }
#observability-dot { background: #89929e; box-shadow: 0 0 0 4px rgba(137, 146, 158, .10); }
#observability-dot.attention { background: #f1c267; box-shadow: 0 0 0 4px rgba(241, 194, 103, .10); }
#observability-dot.good { background: #63d893; box-shadow: 0 0 0 4px rgba(99, 216, 147, .09); }
.system-advanced { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
@media (max-width: 680px) {
  .system-action-grid, .system-advanced-content { grid-template-columns: minmax(0, 1fr); }
  .system-feature-card { min-height: 74px; }
  #account-sheet:has(#settings-panel-system:not([hidden])) .sheet-card {
    border-radius: 20px 20px 0 0 !important;
    padding: 16px !important;
    margin: auto 0 0 !important;
    max-height: calc(var(--awh-visual-viewport-height, 100dvh) - max(env(safe-area-inset-top), 8px));
  }
  #account-sheet:has(#settings-panel-system:not([hidden])) .sheet-header {
    position: sticky; top: -16px; z-index: 2;
    margin-bottom: 8px; padding: 8px 0 10px; border-bottom: 1px solid var(--line);
    background: var(--surface);
  }
}

.execution-details { margin-top: 7px; color: var(--muted); font-size: 11px; }
.execution-details > summary { width: fit-content; cursor: pointer; user-select: none; list-style: none; }
.execution-details > summary::-webkit-details-marker { display: none; }
.execution-details > summary::after { content: ' ›'; }
.execution-details[open] > summary::after { content: ' ⌄'; }
.execution-journey { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; list-style: none; margin: 9px 0 0; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.025); }
.execution-step { display: flex; min-width: 0; align-items: center; gap: 6px; font-size: 11px; opacity: .42; white-space: normal; }
.execution-step-dot { width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; }
.execution-step.done { opacity: .68; }
.execution-step.done .execution-step-dot, .execution-step.active .execution-step-dot { background: currentColor; }
.execution-step.active { opacity: 1; font-weight: 700; }
.execution-step.halted { opacity: .82; font-weight: 700; }

/* AWH UX Closure v2 — outcome-first file results and compact work composer. */
.artifact-results { display: grid; gap: 9px; margin-top: 4px; }
.result-file-card { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--awh-line,#d9e8f6); border-radius: 15px; background: var(--awh-surface,#fff); }
.result-file-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: #ffd5b6; background: rgba(255,122,26,.13); font-size: 11px; font-weight: 900; }
.result-file-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.result-file-copy strong { overflow: hidden; color: var(--awh-text,#10284b); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.result-file-copy small { color: #89929e; font-size: 10px; }
.result-file-actions { display: flex; align-items: center; gap: 7px; }
.result-file-actions a, .result-file-actions button { min-height: 34px; box-sizing: border-box; padding: 7px 10px; border: 1px solid var(--awh-line,#d9e8f6); border-radius: 10px; color: var(--awh-text,#10284b); background: var(--awh-surface-raised,#f7fbff); font-size: 11px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.result-file-actions a:last-of-type, .result-file-actions button { border-color: rgba(255,122,26,.28); color: #ffc69d; background: rgba(255,122,26,.08); }
.result-file-actions button { box-sizing: border-box; padding: 7px 10px; border: 1px solid rgba(255,122,26,.28); border-radius: 10px; font: inherit; font-size: 11px; font-weight: 750; cursor: pointer; white-space: nowrap; }
body.work-active .composer { gap: 5px; margin: 7px auto 10px; padding: 8px 10px 9px; border: 1px solid var(--awh-line,#d9e8f6); border-radius: 20px; background: var(--awh-surface,#fff); box-shadow: 0 -10px 32px rgba(25,65,108,.10); }
body.work-active .composer textarea { min-height: 52px; max-height: 140px; padding: 8px 4px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.work-active .composer textarea:focus { border: 0; box-shadow: none; }
body.work-active .composer-actions { min-height: 34px; gap: 9px; }
body.work-active .composer-tools .icon-button { width: 32px; height: 32px; border-radius: 10px; font-size: 20px; }
body.work-active .composer-actions .primary-button { min-width: 58px; min-height: 36px; padding: 6px 11px; border-radius: 11px; }
@media (max-width: 680px) {
  body.work-active .composer { width: 100%; margin: 4px 0 8px; padding: 7px 8px 8px; border-radius: 18px; }
  body.work-active .composer textarea { min-height: 48px; padding: 7px 4px; font-size: 16px; }
  body.work-active .composer-actions .primary-button { min-width: 38px; width: 38px; height: 36px; padding: 0; font-size: 18px; }
  body.work-active .composer-actions .primary-button .send-label { display: none; }
  .result-file-card { grid-template-columns: 38px minmax(0,1fr); padding: 10px; }
  .result-file-icon { width: 38px; height: 38px; }
  .result-file-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .result-file-actions a, .result-file-actions button { flex: 1 1 0; text-align: center; }
  body.work-active .hub-status-row { display: none; }
  .execution-journey { grid-template-columns: 1fr 1fr; }
  .user-task-status { max-width: 86%; }
  body.work-active .workspace-heading { min-height: calc(50px + env(safe-area-inset-top)); }
  body.work-active .refresh-button { display: none !important; }
  body.work-active .conversation-latest { right: 8px; bottom: 8px; }
  body.work-active .conversation-trigger { margin-top: 1px; }
}

.artifact-sheet-card { width: min(100%, 980px); height: min(88vh, 820px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.artifact-sheet-card .sheet-header { min-width: 0; }
.artifact-sheet-card .sheet-header > div { min-width: 0; }
.artifact-sheet-card .sheet-header h2 { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.artifact-preview { min-width: 0; min-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 18px; background: rgba(8,10,13,.62); }
.artifact-preview-frame { display: block; width: 100%; height: 100%; min-height: 520px; border: 0; background: #fff; }
.artifact-preview-image { display: block; max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; }
.artifact-preview-text { min-width: 0; margin: 0; padding: 18px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.artifact-preview-message { display: grid; min-height: 240px; place-content: center; gap: 8px; padding: 28px; text-align: center; }
.artifact-preview-message p { max-width: 560px; margin: 0; color: var(--muted); }
.artifact-workspace-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 12px; }
.artifact-workspace-actions a { text-decoration: none; }
@media (max-width: 680px) {
  .artifact-sheet { align-items: stretch; }
  .artifact-sheet-card { width: 100%; height: 100dvh; max-height: 100dvh; padding: calc(14px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom)); border-radius: 0; }
  .artifact-preview { min-height: 0; border-radius: 14px; }
  .artifact-preview-frame { min-height: 100%; }
  .artifact-workspace-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .artifact-workspace-actions > * { width: 100%; text-align: center; }
}

/* Chat-first mobile Work: keep navigation available on Home, not inside a focused conversation. */
body.work-active.awh-keyboard-open:not(.product-dashboard-active) .awh-mobile-nav { display: none !important; }
/* Focus alone is not proof of a keyboard (hardware keyboards and dismissal retain focus). */
body.work-active .assistant-turn .task-response { border: 0; background: transparent; padding: 7px 0; }
body.work-active .result-turn .task-meta { display: none; }
@media (max-width: 680px) {
  body.work-active:not(.product-dashboard-active) .app-main { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  body.work-active.awh-keyboard-open:not(.product-dashboard-active) .app-main { padding-bottom: 0; }
  body.work-active .work-thread { padding-bottom: 12px; }
  body.work-active .assistant-turn .task-response { padding: 4px 0; }
  body.work-active .composer { margin-bottom: calc(6px + env(safe-area-inset-bottom)); }
  body.work-active.awh-keyboard-open:not(.product-dashboard-active) .composer { margin-bottom: 2px; padding: 5px 7px 6px; }
  body.work-active.awh-keyboard-open:not(.product-dashboard-active) .composer textarea { min-height: 40px; max-height: 96px; padding-block: 5px; }

}

/* Live Activity: one compact, human-first status surface backed by canonical task/action-graph polling. */
.live-activity { display: grid; gap: 7px; min-width: 0; padding: 10px 0 2px; }
.live-activity-headline { display: flex; min-width: 0; align-items: center; gap: 9px; }
.live-activity-headline strong { min-width: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.live-activity-pulse { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255,122,26,.35); animation: awh-live-pulse 1.6s ease-out infinite; }
.live-activity p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.live-activity progress { width: 100%; height: 5px; accent-color: var(--accent); }
.live-activity-updated { color: #737d89; font-size: 10px; }
@keyframes awh-live-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,122,26,.34); } 70%,100% { box-shadow: 0 0 0 8px rgba(255,122,26,0); } }
@media (prefers-reduced-motion: reduce) { .live-activity-pulse { animation: none; } }

/* KRUART UX P0 — compact one-line composer; details stay progressively disclosed. */
body.work-active .composer textarea{min-height:44px}
body.work-active .assistant-turn:not(.approval-turn):not(.failure-turn) .task-meta{display:none}
@media(max-width:680px){body.work-active .composer textarea{min-height:44px}}
/* BAY Ecosystem gateway + national landing polish. AWH remains the canonical root surface. */
.app-header{border-bottom:1px solid rgba(255,255,255,.045)}
.brand-mark{box-shadow:0 8px 24px rgba(255,138,54,.16)}
.ecosystem-link{display:inline-flex;min-height:40px;align-items:center;padding:8px 12px;border:1px solid var(--line);border-radius:999px;color:var(--text);background:var(--surface);text-decoration:none;font-size:12px;font-weight:800;white-space:nowrap}.ecosystem-link:hover,.ecosystem-link:focus-visible{border-color:var(--accent);outline:none;background:var(--surface-raised)}
.sign-in-copy{position:relative}.sign-in-copy:before{content:"";display:block;width:48px;height:3px;margin:0 0 24px;border-radius:999px;background:var(--accent)}.sign-in-copy .eyebrow{font-size:10px;letter-spacing:.2em}.sign-in-copy h1{max-width:620px}.sign-in-copy>p{max-width:560px}.auth-card{position:relative;overflow:hidden;padding:28px;border-color:#303743;box-shadow:0 28px 78px rgba(0,0,0,.32)}.auth-card:before{content:"AWH";position:absolute;right:18px;top:15px;color:#ffffff08;font-size:52px;font-weight:950;letter-spacing:-.06em;pointer-events:none}.auth-card .primary-button{min-height:50px}.auth-secondary-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.login-downloads{margin-top:4px;padding-top:14px}.ecosystem-strip{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:13px;align-items:center;max-width:540px;margin-top:26px;padding:15px 16px;border:1px solid #303743;border-radius:17px;color:var(--text);background:var(--surface);text-decoration:none;box-shadow:0 18px 42px rgba(0,0,0,.18)}.ecosystem-strip:hover,.ecosystem-strip:focus-visible{border-color:#71492d;outline:none;transform:translateY(-1px);background:var(--surface-raised)}.ecosystem-strip-mark{display:grid;width:44px;height:44px;place-items:center;border-radius:13px;color:#fff;background:#285ccc;font-size:18px;font-weight:900}.ecosystem-strip strong,.ecosystem-strip small{display:block}.ecosystem-strip strong{font-size:14px}.ecosystem-strip small{margin-top:3px;color:var(--muted);font-size:11px;line-height:1.45}.ecosystem-strip-arrow{color:var(--accent);font-size:20px;font-weight:900}.awh-trust-row{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}.awh-trust-row span{display:inline-flex;min-height:28px;align-items:center;padding:5px 9px;border:1px solid rgba(255,255,255,.07);border-radius:999px;color:#7f8996;background:#0f1216;font-size:10px;font-weight:700}.workspace-ecosystem-link{display:inline-flex;min-height:34px;align-items:center;padding:6px 9px;border:1px solid var(--line);border-radius:10px;color:#cfd5dd;background:var(--surface);text-decoration:none;font-size:10px;font-weight:850}.workspace-ecosystem-link:hover,.workspace-ecosystem-link:focus-visible{border-color:#65442d;color:#fff;outline:none}
@media(max-width:680px){.app-header{min-height:calc(66px + env(safe-area-inset-top))}.ecosystem-link{padding:7px 10px;font-size:10px}.sign-in-view{gap:22px;padding-top:22px}.sign-in-copy:before{margin-bottom:18px}.sign-in-copy h1{font-size:clamp(38px,11vw,52px)}.ecosystem-strip{margin-top:18px;padding:12px 13px}.ecosystem-strip small{font-size:10px}.awh-trust-row{margin-top:10px}.auth-card{padding:21px}.workspace-ecosystem-link{min-height:34px;padding-inline:7px}}

/* Public root: the IP/hostname opens a real home surface, not the sign-in form. */
.public-home-view{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(340px,.9fr);gap:clamp(34px,7vw,90px);align-items:center;min-height:calc(100dvh - 96px);padding:42px 0 72px}.public-home-copy h1{max-width:680px;margin:0 0 18px;font-size:clamp(44px,7vw,76px);line-height:.98;letter-spacing:-.055em}.public-home-copy>p:last-of-type{max-width:620px;color:var(--muted);font-size:17px;line-height:1.65}.public-home-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}.public-link-button{text-decoration:none}.public-home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.public-home-card{display:grid;min-height:150px;align-content:start;gap:8px;padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--text);text-decoration:none;box-shadow:var(--awh-shadow-panel)}.public-home-card>span{display:grid;width:38px;height:38px;place-items:center;border-radius:12px;background:var(--accent-soft);color:var(--accent);font-weight:900}.public-home-card strong{font-size:15px}.public-home-card small{color:var(--muted);font-size:11px;line-height:1.5}.public-home-card:hover,.public-home-card:focus-visible{border-color:rgba(255,138,54,.38);background:var(--surface-raised);outline:none}.public-home-active .app-header{border-bottom:1px solid var(--line-soft)}
@media(max-width:760px){.public-home-view{grid-template-columns:1fr;gap:28px;min-height:auto;padding:34px 0 88px}.public-home-copy h1{font-size:clamp(39px,12vw,56px)}.public-home-copy>p:last-of-type{font-size:15px}.public-home-actions{display:grid;grid-template-columns:1fr}.public-home-actions>*{width:100%}.public-home-grid{grid-template-columns:1fr 1fr}.public-home-card{min-height:132px;padding:15px}}
@media(max-width:430px){.public-home-grid{grid-template-columns:1fr}.public-home-card{min-height:105px}}

/* Mobile UX consolidation — one light visual language for focused Work. */
body.work-active .composer{background:var(--awh-surface,#fff);border-color:var(--awh-line,#d9dee7);box-shadow:0 10px 30px rgba(20,32,51,.10)}
body.work-active .composer textarea{color:var(--awh-text,#172033)}
body.work-active .composer textarea::placeholder{color:#98a2b3}
body.work-active .composer-tools .icon-button{background:var(--awh-surface-raised,#f2f4f7);border-color:var(--awh-line,#d9dee7);color:var(--awh-text,#172033)}
body.work-active .empty-work{max-width:520px}
.awh-work-starters{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:18px}
.awh-work-starter{min-height:42px;padding:0 13px;border:1px solid var(--awh-line,#d9dee7);border-radius:999px;background:var(--awh-surface,#fff);color:var(--awh-text,#172033);font:inherit;font-size:12px;font-weight:750;cursor:pointer}
.awh-work-starter:hover,.awh-work-starter:focus-visible{border-color:rgba(233,111,25,.42);background:var(--awh-accent-soft,rgba(233,111,25,.10));outline:none}
@media(max-width:680px){
  body.work-active .workspace-heading{min-height:calc(44px + env(safe-area-inset-top));gap:7px}
  body.work-active .workspace-home{min-width:36px}.workspace-chat-action{width:32px!important;min-height:32px!important}
  body.work-active .workspace-ecosystem-link,body.work-active .refresh-button{display:none!important}
  body.work-active .conversation-trigger{font-size:14px}.project-trigger{font-size:10px!important}
  body.work-active .empty-work{margin:auto auto 10vh;padding:10px 12px 18px}.empty-work h2{font-size:20px}.empty-work p{font-size:13px;line-height:1.5}
  body.work-active .composer{margin:4px 0 calc(4px + env(safe-area-inset-bottom));padding:7px 8px 8px;border-radius:17px}
  body.work-active:not(.product-dashboard-active) .app-main{padding-bottom:calc(62px + env(safe-area-inset-bottom))}
}

/* Root Portfolio Hub — authenticated root is the ecosystem launcher, not AWH Work. */
body.ecosystem-home-active{height:auto;overflow:auto;background:var(--awh-canvas)}
body.ecosystem-home-active .app-main{width:min(1180px,calc(100% - 32px));padding:30px 0 80px}
.ecosystem-home-view{display:grid;gap:30px;width:100%}
.ecosystem-home-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:34px;border:1px solid var(--awh-line);border-radius:28px;background:var(--awh-surface);box-shadow:var(--awh-shadow-panel)}
.ecosystem-home-hero h1{max-width:760px;margin:4px 0 10px;color:var(--awh-text);font-size:clamp(36px,6vw,64px);line-height:1.02;letter-spacing:-.045em}.ecosystem-home-hero p:last-child{max-width:720px;margin:0;color:var(--awh-muted);font-size:15px;line-height:1.65}.ecosystem-home-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.ecosystem-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.ecosystem-summary>div{display:grid;gap:3px;padding:16px 18px;border:1px solid var(--awh-line);border-radius:17px;background:var(--awh-surface)}.ecosystem-summary strong{font-size:28px;color:var(--awh-text)}.ecosystem-summary span{color:var(--awh-muted);font-size:11px}
.ecosystem-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:13px}.ecosystem-section-head span{color:var(--awh-accent-strong);font-size:10px;font-weight:850;letter-spacing:.1em}.ecosystem-section-head h2{margin:4px 0 0;color:var(--awh-text);font-size:25px}.ecosystem-section-head>a{color:var(--awh-accent-strong);font-size:12px;font-weight:750;text-decoration:none}
.ecosystem-featured-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ecosystem-project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ecosystem-project-card{display:flex;min-width:0;min-height:250px;flex-direction:column;padding:18px;border:1px solid var(--awh-line);border-radius:20px;background:var(--awh-surface);box-shadow:0 10px 28px rgba(21,35,58,.045)}.ecosystem-project-card.featured{min-height:225px;background:var(--awh-surface)}.ecosystem-project-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.ecosystem-project-icon{display:grid;width:42px;height:42px;place-items:center;border-radius:13px;background:var(--awh-accent-soft);color:var(--awh-accent-strong);font-size:20px;font-weight:900}.ecosystem-project-status{padding:5px 8px;border-radius:999px;background:#f2f4f7;color:#475467;font-size:9px;font-weight:800}.ecosystem-project-status.status-active{background:#ecfdf3;color:#067647}.ecosystem-project-status.status-pilot{background:#fffaeb;color:#b54708}.ecosystem-project-card h3{margin:15px 0 3px;color:var(--awh-text);font-size:19px}.ecosystem-project-card>small{color:var(--awh-muted);font-size:10px}.ecosystem-project-card>p{margin:10px 0;color:var(--awh-muted);font-size:12px;line-height:1.55}.ecosystem-project-capabilities{display:flex;flex-wrap:wrap;gap:5px;margin-top:auto;padding-top:8px}.ecosystem-project-capabilities span{padding:4px 7px;border-radius:999px;background:#f7f8fa;color:#667085;font-size:9px}.ecosystem-project-action{width:100%;min-height:42px;margin-top:14px;border:1px solid var(--awh-line);border-radius:12px;background:var(--awh-accent);color:#fff;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.ecosystem-empty{grid-column:1/-1;padding:24px;border:1px dashed var(--awh-line);border-radius:16px;color:var(--awh-muted);text-align:center}
.ecosystem-owner-tools details{padding:15px 17px;border:1px solid var(--awh-line);border-radius:18px;background:var(--awh-surface)}.ecosystem-owner-tools summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;color:var(--awh-text)}.ecosystem-owner-tools summary span{color:var(--awh-accent-strong);font-size:11px;font-weight:800}.ecosystem-owner-tools summary strong{font-size:11px}.ecosystem-owner-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:14px}.ecosystem-owner-grid a{padding:12px;border:1px solid var(--awh-line);border-radius:12px;background:#f7f8fa;color:var(--awh-text);font-size:11px;font-weight:750;text-align:center;text-decoration:none}
@media(max-width:760px){body.ecosystem-home-active{padding-bottom:0}body.ecosystem-home-active .app-main{width:calc(100% - 20px);padding:14px 0 76px}body.ecosystem-home-active .awh-mobile-nav{display:none!important}.ecosystem-home-view{gap:22px}.ecosystem-home-hero{align-items:stretch;flex-direction:column;padding:22px 17px;border-radius:22px}.ecosystem-home-hero h1{font-size:38px}.ecosystem-home-actions{display:grid;grid-template-columns:1fr 1fr}.ecosystem-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.ecosystem-featured-grid,.ecosystem-project-grid{grid-template-columns:1fr}.ecosystem-project-card,.ecosystem-project-card.featured{min-height:0}.ecosystem-owner-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ecosystem-owner-tools summary{align-items:flex-start;flex-direction:column}.ecosystem-owner-tools summary strong{color:var(--awh-muted)}}
.ecosystem-search-box{display:block;min-width:min(320px,48vw)}.ecosystem-search-box input{width:100%;min-height:44px;padding:0 13px;border:1px solid var(--awh-line);border-radius:12px;background:#fff;color:var(--awh-text);font:inherit;font-size:13px;outline:none}.ecosystem-search-box input:focus{border-color:rgba(233,111,25,.5);box-shadow:0 0 0 3px rgba(233,111,25,.1)}
@media(max-width:760px){.ecosystem-search-box{min-width:0}.ecosystem-home-actions{grid-template-columns:minmax(0,1fr) auto}.ecosystem-home-actions .public-link-button{display:inline-flex;align-items:center;justify-content:center}}
#session-check-view.session-probe-view{visibility:visible;animation:none}
/* KRUART first paint — single, lightweight session-check surface. */
body.awh-booting{overflow:hidden; background:#f7f8fb}
body.awh-booting .app-header,body.awh-booting .awh-mobile-nav{visibility:hidden!important}
#session-check-view.kruart-boot-splash{position:fixed;inset:0;z-index:200;display:grid;place-items:center;width:100%;height:100svh;min-height:100svh;margin:0;padding:24px;background:#f7f8fb;overflow:hidden;visibility:visible;animation:none}
#session-check-view.kruart-boot-splash .kruart-boot-center{display:flex;align-items:center;flex-direction:column;gap:0;width:min(100%,230px);text-align:center}
#session-check-view.kruart-boot-splash .kruart-boot-logo{display:block;width:200px;max-width:100%;height:auto;object-fit:contain;animation:kruart-boot-appear .35s ease-out both}
#session-check-view.kruart-boot-splash .kruart-boot-progress{width:106px;height:3px;margin-top:24px;overflow:hidden;border-radius:8px;background:#dfe5eb}
#session-check-view.kruart-boot-splash .kruart-boot-progress span{display:block;width:42%;height:100%;border-radius:inherit;background:#f07a24;transform:translateX(-105%);animation:kruart-boot-indeterminate 1.35s cubic-bezier(.4,0,.2,1) infinite}
#session-check-view.kruart-boot-splash p{margin:14px 0 0;color:#687686;font-size:12px;font-weight:600;line-height:1.5}
@keyframes kruart-boot-indeterminate{0%{transform:translateX(-105%)}55%{transform:translateX(145%)}100%{transform:translateX(260%)}}
@keyframes kruart-boot-appear{from{opacity:.4;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){#session-check-view.kruart-boot-splash .kruart-boot-logo,#session-check-view.kruart-boot-splash .kruart-boot-progress span{animation:none}#session-check-view.kruart-boot-splash .kruart-boot-progress span{transform:none;width:100%}}

#session-check-view.session-probe-view[hidden]{display:none!important}
@keyframes awh-session-probe-reveal{to{visibility:visible}}

/* Attachment previews reserve space and never alter the uploaded original. */
.attachment-thumbnail { width:44px; height:44px; flex:0 0 44px; object-fit:cover; border-radius:var(--awh-radius-sm,12px); }


/* Mobile UX Closure 2026-09-15 — compact active task details. */
body.work-active .capability-plan{max-width:100%;margin-top:4px;padding:5px 8px;border-color:color-mix(in srgb,var(--accent) 14%,var(--line));background:color-mix(in srgb,var(--accent) 2%,var(--surface));font-size:11px}
body.work-active .capability-plan>summary{font-size:11px;font-weight:750;color:var(--muted)}
body.work-active .capability-plan:not([open]){width:max-content;max-width:100%;border-color:transparent;background:transparent;padding-inline:0}
body.work-active .capability-plan:not([open])>summary{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.work-active .capability-plan[open]{padding:8px 10px}
@media(max-width:680px){body.work-active .live-activity{gap:5px;padding:6px 0 1px}body.work-active .capability-plan{margin-top:2px}body.work-active .composer-stop{min-height:32px;padding:5px 9px;font-size:11px}}


/* Web-first installation · native Agent stays optional */
.web-app-entry{margin-top:12px;padding-top:12px;border-top:1px solid var(--line);display:grid;gap:7px}
.web-app-entry .secondary-button{justify-self:start}
.web-app-entry small{color:var(--muted);font-size:.72rem;line-height:1.5}

/* PWA install entry is intentionally visible on the authenticated Home surface. */
.owner-install-row { border-color: color-mix(in srgb, var(--accent) 32%, var(--line)); background: var(--surface); }
.owner-install-row .owner-quick-icon { background: #fff; }
.install-guide-card { max-width: 520px; }
.install-guide-steps { display: grid; gap: 12px; margin: 18px 0; padding: 0; list-style: none; counter-reset: install-step; }
.install-guide-steps li { counter-increment: install-step; display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.install-guide-steps li::before { content: counter(install-step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 800; background: var(--accent); color: #fff; grid-row: 1 / span 2; }
.install-guide-steps strong { font-size: .95rem; }
.install-guide-steps span { color: var(--muted); font-size: .82rem; line-height: 1.45; margin-top: 2px; }
.install-guide-done { width: 100%; }

/* Mobile/provider UX: direct Provider discovery and in-context privileged confirmation. */
.provider-hub-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.provider-hub-heading>div{min-width:0}.provider-hub-heading h3{margin-bottom:5px}
.provider-add-panel{display:grid;gap:9px;margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface-raised)}
.provider-add-panel[hidden]{display:none!important}.provider-add-panel>strong{font-size:13px}
.provider-add-panel>small{line-height:1.5}.provider-add-list{display:grid;gap:7px}
.provider-add-option{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;min-height:50px;padding:9px 11px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);font:inherit;text-align:left;cursor:pointer}
.provider-add-option:hover,.provider-add-option:focus-visible{border-color:var(--accent);outline:none}
.provider-add-option span{font-size:13px;font-weight:800}.provider-add-option small{color:var(--muted);font-size:10px;text-align:right}
.provider-hub-card{display:grid;gap:6px;scroll-margin-block:24px;padding:14px 13px}.provider-hub-card>strong{font-size:16px;line-height:1.25;color:var(--text)}.provider-hub-card>span{font-size:12px;font-weight:750;color:var(--text)}.provider-hub-card>small{font-size:11px;line-height:1.5;color:var(--muted)}.provider-hub-credential{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;margin-top:5px}.provider-hub-credential input{grid-column:1/-1;min-height:48px;font-size:16px}.provider-hub-credential button[type="submit"]{grid-column:1/-1;min-height:44px}.provider-hub-credential .text-button{justify-self:start;min-height:36px}.provider-hub-credential .form-message{grid-column:1/-1;margin:0}.provider-hub-credential .text-button:last-of-type{color:var(--muted)}
.awh-stepup-overlay{z-index:500;background:rgba(20,32,51,.34);backdrop-filter:blur(6px)}
.awh-stepup-card{display:grid;gap:10px;width:min(440px,100%);padding:20px;border:1px solid var(--line);border-radius:20px;background:var(--surface);box-shadow:0 24px 72px rgba(20,32,51,.22)}
.awh-stepup-card h2{margin:0;font-size:21px}.awh-stepup-card p{margin:0;line-height:1.55}.awh-stepup-card input{min-height:48px;padding:0 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);font:inherit;font-size:16px;outline:none}
.awh-stepup-card input:focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 14%,transparent)}
.awh-stepup-card .form-actions{justify-content:flex-end}
@media(max-width:540px){.provider-hub-heading{align-items:stretch;flex-direction:column}.provider-hub-heading .secondary-button{width:100%}.provider-add-option{grid-template-columns:1fr}.provider-add-option small{text-align:left}.awh-stepup-overlay{align-items:end;padding:0}.awh-stepup-card{width:100%;padding:18px 14px calc(18px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0}}
