/* ===== Themes =====
   ROMA (default) matches the ROMA apps (Profit Hub): navy hero, indigo accent, light cards.
   Every colour is a variable, so a theme is just a block of overrides. */
:root, [data-theme="roma"] {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --header-bg: #f1f2f4;
  --header-text: #1c1f33;
  --header-muted: #6b6f85;
  --header-line: #e7e8f0;
  --panel: #ffffff;
  --user-bubble: #eef0ff;
  --line: #e7e8f0;
  --text: #1c1f33;
  --muted: #6b6f85;
  --accent: #5b5bd6;
  --accent-text: #5b5bd6;
  --on-accent: #ffffff;
  --card-bg: #fbfbfe;
  --card-line: #c9cbe8;
  --inset: #f4f5fb;
  --btn-bg: #ffffff;
  --chip-bg: #ffffff;
  --chip-text: #4a4e66;
  --toggle-off: #d6d8e7;
  --orb-1: #e8e9ff; --orb-2: #9fa8f5; --orb-3: #5b5bd6; --orb-4: #2b2f73;
  --orb-ink: #ffffff;
  --orb-glow: rgba(91, 91, 214, .35);
  --ok: #0f7a55;
  --danger: #b42d1a;
  --brand-font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --brand-weight: 700;
  --shadow: 0 1px 2px rgba(18,23,53,.04), 0 6px 18px rgba(18,23,53,.05);
  --scrim: rgba(15,18,48,.45);
}
[data-theme="roma-night"] {
  --header-text: #ffffff;
  --header-muted: #c9cbe8;
  --bg: #0f1230;
  --surface: #121538;
  --header-bg: radial-gradient(120% 140% at 0% 0%, #2b2f73 0%, #161a40 60%, #0f1230 100%);
  --header-line: rgba(255,255,255,.08);
  --panel: #161a40;
  --user-bubble: #2b2f73;
  --line: #262a5c;
  --text: #eef0ff;
  --muted: #9a9db3;
  --accent: #8b8cf0;
  --accent-text: #b8bdf7;
  --on-accent: #0f1230;
  --card-bg: #161a40;
  --card-line: #3a3f8a;
  --inset: #0f1230;
  --btn-bg: #1c2050;
  --chip-bg: #161a40;
  --chip-text: #c9cbe8;
  --toggle-off: #2b2f73;
  --orb-1: #ffffff; --orb-2: #b8bdf7; --orb-3: #6d6ee0; --orb-4: #20245a;
  --orb-ink: #0f1230;
  --orb-glow: rgba(139, 140, 240, .35);
  --ok: #7ef0c2;
  --danger: #ffb3a8;
  --shadow: none;
  --scrim: rgba(0,0,0,.55);
}
[data-theme="gold"] {
  --bg: #0d0c0b;
  --surface: #0d0c0b;
  --header-bg: linear-gradient(180deg, #14120f, #0d0c0b);
  --header-text: #f0d9a8;
  --header-muted: #9a9187;
  --header-line: #2c2823;
  --panel: #1c1916;
  --user-bubble: #2a2520;
  --line: #2c2823;
  --text: #f3eee6;
  --muted: #9a9187;
  --accent: #d6b37a;
  --accent-text: #f0d9a8;
  --on-accent: #1a140b;
  --card-bg: #1a1714;
  --card-line: #4a3f2e;
  --inset: #12100e;
  --btn-bg: #24201b;
  --chip-bg: #161412;
  --chip-text: #d8d0c4;
  --toggle-off: #3a342d;
  --orb-1: #fff3d6; --orb-2: #f0d9a8; --orb-3: #d6b37a; --orb-4: #6b5130;
  --orb-ink: #2a1e0e;
  --orb-glow: rgba(214,179,122,.25);
  --ok: #7fc59b;
  --danger: #e2786c;
  --brand-font: "Cormorant Garamond", Georgia, serif;
  --brand-weight: 600;
  --shadow: none;
  --scrim: rgba(0,0,0,.55);
}
[data-theme="light"] {
  --bg: #f6f6f7;
  --surface: #ffffff;
  --header-bg: #ffffff;
  --header-text: #1c1f33;
  --header-muted: #6b6f85;
  --header-line: #e3e3e3;
  --panel: #ffffff;
  --user-bubble: #ececf0;
  --line: #e3e3e3;
  --text: #1a1a1a;
  --muted: #616161;
  --accent: #303030;
  --accent-text: #303030;
  --on-accent: #ffffff;
  --card-bg: #ffffff;
  --card-line: #c9c9c9;
  --inset: #f6f6f7;
  --btn-bg: #ffffff;
  --chip-bg: #ffffff;
  --chip-text: #303030;
  --toggle-off: #d4d4d8;
  --orb-1: #ffffff; --orb-2: #b5b5b5; --orb-3: #616161; --orb-4: #1a1a1a;
  --orb-ink: #ffffff;
  --orb-glow: rgba(0,0,0,.18);
  --ok: #0c5132;
  --danger: #8e1f0b;
  --shadow: 0 1px 2px rgba(0,0,0,.05);
  --scrim: rgba(0,0,0,.35);
}
/* Custom accent: app.js sets --custom on <html>; the orb and buttons follow it */
[data-accent="custom"] {
  --accent: var(--custom);
  --accent-text: var(--custom);
  --orb-1: color-mix(in srgb, var(--custom) 15%, white);
  --orb-2: color-mix(in srgb, var(--custom) 55%, white);
  --orb-3: var(--custom);
  --orb-4: color-mix(in srgb, var(--custom) 55%, black);
  --orb-glow: color-mix(in srgb, var(--custom) 35%, transparent);
  --user-bubble: color-mix(in srgb, var(--custom) 14%, var(--panel));
  --card-line: color-mix(in srgb, var(--custom) 40%, var(--line));
}

:root {
  --radius: 18px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px; line-height: 1.45; -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; transition: background .2s; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--accent-text); }

/* Header */
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + var(--safe-t)) 18px 12px; border-bottom: 1px solid var(--header-line);
  background: var(--header-bg); color: var(--header-text);
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand .roma { font-family: var(--brand-font); font-size: 22px; letter-spacing: .28em; color: var(--header-text); font-weight: var(--brand-weight); }
.brand .who { font-size: 13px; color: var(--header-muted); letter-spacing: .04em; }
.icon-btn { background: none; border: 1px solid var(--header-line); border-radius: 12px; width: 38px; height: 38px; display: grid; place-items: center; color: var(--header-muted); }
.icon-btn:hover { color: var(--header-text); }
.hdr-right { display: flex; gap: 8px; }

/* Conversation */
main { flex: 1; overflow-y: auto; padding: 18px 16px 8px; scroll-behavior: smooth; }
.inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.welcome { text-align: center; padding: 6vh 8px 2vh; }
.welcome h1 { font-family: var(--brand-font); font-weight: var(--brand-weight); font-size: 30px; letter-spacing: -.01em; margin: 0 0 6px; }
.welcome p { color: var(--muted); margin: 0; }
.msg { max-width: 88%; padding: 12px 15px; border-radius: var(--radius); line-height: 1.5; font-size: 15.5px; word-wrap: break-word; }
.msg.user { align-self: flex-end; background: var(--user-bubble); border-bottom-right-radius: 6px; }
.msg.assistant { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 6px; box-shadow: var(--shadow); }
.msg.assistant strong { color: var(--accent-text); }
.msg ul { margin: 6px 0; padding-left: 20px; }
.msg p { margin: 0 0 6px; } .msg p:last-child { margin: 0; }
.msg .speak { margin-top: 6px; background: none; border: none; color: var(--muted); font-size: 12px; padding: 0; }
.msg.error { border-color: var(--danger); color: var(--danger); }
.status { align-self: flex-start; color: var(--muted); font-size: 13.5px; display: flex; align-items: center; gap: 8px; padding: 4px 6px; }
.dots span { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 3px; animation: blink 1.2s infinite; }
.dots span:nth-child(2) { animation-delay: .2s; } .dots span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2 } 40% { opacity: 1 } }

/* Action cards (email drafts, invites) */
.card { align-self: stretch; background: var(--card-bg); border: 1px solid var(--card-line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.card .kind { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 8px; font-weight: 600; }
.card .meta { font-size: 13.5px; color: var(--muted); margin-bottom: 2px; }
.card .meta b { color: var(--text); font-weight: 500; }
.card .body { background: var(--inset); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 10px 0; white-space: pre-wrap; font-size: 14.5px; line-height: 1.5; max-height: 320px; overflow: auto; outline: none; }
.card .body[contenteditable="true"] { border-color: var(--accent); }
.card .row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { border-radius: 12px; padding: 9px 14px; border: 1px solid var(--line); background: var(--btn-bg); color: var(--text); font-size: 14px; text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.btn.ghost { background: none; }
.card .done { color: var(--ok); font-size: 14px; font-weight: 600; }
.card .cancelled { color: var(--muted); font-size: 14px; }

/* Composer */
footer { padding: 8px 14px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--surface); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; max-width: 760px; margin: 0 auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; border: 1px solid var(--line); background: var(--chip-bg); border-radius: 999px; padding: 7px 12px; font-size: 13px; color: var(--chip-text); }
.chip:hover { border-color: var(--accent); }
.composer { display: flex; align-items: center; gap: 10px; max-width: 760px; margin: 0 auto; }
.composer textarea { flex: 1; resize: none; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; color: var(--text); padding: 12px 14px; font: inherit; font-size: 16px; max-height: 140px; outline: none; }
.composer textarea:focus { border-color: var(--accent); }
.composer textarea::placeholder { color: var(--muted); }
.send { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); display: grid; place-items: center; }

/* The orb (mic) */
.orb { position: relative; width: 58px; height: 58px; border-radius: 50%; border: none; padding: 0; flex: none;
  background: radial-gradient(circle at 35% 30%, var(--orb-1) 0%, var(--orb-2) 20%, var(--orb-3) 50%, var(--orb-4) 100%);
  box-shadow: 0 6px 24px var(--orb-glow); transition: transform .2s; }
.orb svg { position: relative; z-index: 2; color: var(--orb-ink); }
.orb::before, .orb::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid transparent; z-index: 1; }
.orb.listening { transform: scale(1.06); }
.orb.listening::before { animation: ring 1.4s ease-out infinite; }
.orb.listening::after { animation: ring 1.4s ease-out .7s infinite; }
.orb.thinking { animation: spin 2.4s linear infinite; background: conic-gradient(from 0deg, var(--orb-3), var(--orb-2), var(--orb-1), var(--orb-3)); }
.orb.speaking { animation: breathe 1s ease-in-out infinite; }
@keyframes ring { 0% { border-color: var(--orb-2); transform: scale(1); } 100% { border-color: transparent; transform: scale(1.6); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.interim { max-width: 760px; margin: 0 auto 8px; color: var(--accent-text); font-size: 15px; text-align: center; font-style: italic; }

/* Settings drawer */
.drawer { position: fixed; inset: 0; background: var(--scrim); display: none; z-index: 20; }
.drawer.open { display: block; }
.drawer .sheet { position: absolute; right: 0; top: 0; bottom: 0; width: min(380px, 100%); background: var(--surface); border-left: 1px solid var(--line); padding: calc(18px + var(--safe-t)) 18px 18px; overflow-y: auto; }
.sheet .icon-btn { color: var(--muted); border-color: var(--line); }
.sheet h2 { font-family: var(--brand-font); font-weight: var(--brand-weight); font-size: 24px; margin: 0 0 14px; }
.sheet h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin: 22px 0 8px; }
.setting { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; gap: 12px; }
.setting small { display: block; color: var(--muted); font-size: 12.5px; }
.toggle { width: 46px; height: 28px; border-radius: 999px; background: var(--toggle-off); border: none; position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s; }
.toggle.on { background: var(--accent); } .toggle.on::after { left: 21px; }
.pill { font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pill.ok { color: var(--ok); border-color: currentColor; }
select.input, .input { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 8px; font: inherit; max-width: 190px; }

/* Theme picker */
.themes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 6px 0 4px; }
.theme { border: 2px solid var(--line); border-radius: 14px; padding: 0; overflow: hidden; background: none; text-align: left; }
.theme.on { border-color: var(--accent); }
.theme .sw { height: 46px; display: flex; align-items: flex-end; gap: 6px; padding: 8px; }
.theme .sw i { width: 18px; height: 18px; border-radius: 50%; display: block; box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.theme span { display: block; padding: 7px 10px; font-size: 13px; font-weight: 500; color: var(--text); background: var(--panel); }
.accents { display: flex; flex-wrap: wrap; gap: 10px; padding: 8px 0; align-items: center; }
.dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); padding: 0; }
.dot.on { box-shadow: 0 0 0 2px var(--text); }
.dot.picker { position: relative; overflow: hidden; background: conic-gradient(red, orange, yellow, lime, cyan, blue, magenta, red); }
.dot.picker input { position: absolute; inset: -8px; opacity: 0; cursor: pointer; }

/* Toast for reminders */
.toast { position: fixed; left: 50%; top: calc(14px + var(--safe-t)); transform: translateX(-50%); background: var(--accent); color: var(--on-accent); padding: 12px 16px; border-radius: 14px; font-weight: 600; z-index: 30; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: 92%; }

/* Login */
.login { flex: 1; display: grid; place-items: center; padding: 24px; background: var(--header-bg); }
.login form { width: min(340px, 100%); text-align: center; }
.login .roma { font-family: var(--brand-font); font-weight: var(--brand-weight); font-size: 40px; letter-spacing: .3em; color: var(--header-text); margin-bottom: 4px; }
.login p { color: var(--header-muted); margin: 0 0 26px; }
.login input { width: 100%; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 16px; margin-bottom: 12px; }
.login button { width: 100%; padding: 14px; border-radius: 14px; border: none; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 16px; }
.login .err { color: var(--danger); font-size: 14px; margin-bottom: 10px; }

@media (max-width: 520px) {
  .msg { max-width: 94%; font-size: 15px; }
  .welcome h1 { font-size: 26px; }
}

/* Wider on laptops and desktops so the conversation uses the window */
@media (min-width: 1000px) {
  .inner, .chips, .composer, .interim { max-width: min(1180px, 92vw); }
  .msg { max-width: 78%; }
  .card { max-width: 860px; }
}

/* ROMA look: same as the ROMA dashboard and Trading Analysis (Inter, white cards, navy hero box) */
[data-theme="roma"] .brand .roma { font-size: 19px; letter-spacing: .14em; font-weight: 700; }
[data-theme="roma"] .brand .who { font-weight: 600; color: #6b6f85; }
.welcome .label { display: none; }
[data-theme="roma"] .welcome, [data-theme="roma-night"] .welcome {
  text-align: left; margin-top: 4px; padding: 22px 24px; border-radius: 20px; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #2b2f73 0%, #161a40 55%, #0f1230 100%);
  box-shadow: 0 1px 2px rgba(16,24,40,.08);
}
[data-theme="roma"] .welcome .label, [data-theme="roma-night"] .welcome .label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #a5a8d9; }
[data-theme="roma"] .welcome h1, [data-theme="roma-night"] .welcome h1 { font-family: Inter, -apple-system, sans-serif; font-weight: 700; font-size: 30px; letter-spacing: -.5px; margin: 4px 0 2px; }
[data-theme="roma"] .welcome p, [data-theme="roma-night"] .welcome p { color: #c9cbea; font-size: 14px; }
[data-theme="roma"] .msg.assistant, [data-theme="roma"] .card { border-radius: 16px; border-color: #e7e8f0; box-shadow: 0 1px 2px rgba(16,24,40,.06); }
[data-theme="roma"] .chip, [data-theme="roma"] .btn { font-weight: 600; }
[data-theme="roma"] .chip { color: #4a4e66; }

/* Shortcut buttons: + Add, and Edit mode to reorder or remove */
.chip.add, .chip.edit { border-style: dashed; color: var(--accent-text); background: transparent; }
.chips.editing { flex-wrap: wrap; }
.chips.editing .chip.mine { display: inline-flex; align-items: center; gap: 6px; border-color: var(--accent); cursor: default; }
.chip .mv, .chip .x { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 50%; font-size: 15px; line-height: 1; color: var(--accent-text); background: var(--user-bubble); cursor: pointer; }
.chip .x { color: var(--danger); background: transparent; }
.chip .mv[hidden] { display: none; }

/* ===== Friendlier home screen (8 Nov 2026): matches the other Auroma apps ===== */
[data-theme="roma"] header { background: var(--bg); border-bottom: 0; padding-top: calc(16px + var(--safe-t)); }
[data-theme="roma"] .brand .roma { font-size: 15px; letter-spacing: .16em; color: #2b2f73; }
[data-theme="roma"] .brand .who { font-size: 13px; color: #6b6f85; }
[data-theme="roma"] .icon-btn { background: #fff; border-color: #e7e8f0; color: #4a4e66; }
[data-theme="roma"] .icon-btn:hover { border-color: #5b5bd6; color: #5b5bd6; }
[data-theme="roma"] main { padding-top: 6px; }

/* The welcome banner: same navy box as the other apps, with Priscilla's orb on the right */
[data-theme="roma"] .welcome, [data-theme="roma-night"] .welcome {
  position: relative; overflow: hidden; padding: 26px 28px 24px; min-height: 170px;
  display: flex; flex-direction: column; justify-content: center;
}
.welcome .wl-orb { position: absolute; right: 34px; top: 50%; width: 96px; height: 96px; margin-top: -48px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e8e9ff 0%, #9fa8f5 22%, #5b5bd6 55%, #2b2f73 100%);
  box-shadow: 0 0 0 10px rgba(255,255,255,.05), 0 0 0 22px rgba(255,255,255,.03), 0 12px 40px rgba(91,91,214,.45);
  animation: wl-breathe 4s ease-in-out infinite; }
@keyframes wl-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.welcome .wl-date { margin-top: 10px; display: inline-flex; gap: 8px; flex-wrap: wrap; }
.welcome .wl-date span { font-size: 12px; font-weight: 600; color: #e8e9ff; background: rgba(255,255,255,.1); border-radius: 999px; padding: 4px 10px; }
[data-theme="roma"] .welcome h1 { font-size: 32px; }
[data-theme="roma"] .welcome p { font-size: 15px; max-width: 640px; }

/* "Where shall we start?" cards under the banner (one per shortcut) */
.starter { margin-top: 18px; }
.starter h2 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b6f85; margin: 0 0 10px 2px; }
.starter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.starter-card { display: flex; gap: 12px; align-items: flex-start; text-align: left; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(16,24,40,.05); transition: transform .12s, box-shadow .12s, border-color .12s; }
.starter-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 8px 24px rgba(18,23,53,.08); }
.starter-card .ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #eef0ff; color: #5b5bd6; }
.starter-card b { display: block; font-size: 15px; margin: 1px 0 3px; }
.starter-card small { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); }
.starter-tip { margin: 16px 2px 4px; font-size: 13.5px; color: var(--muted); }
.starter-tip b { color: var(--text); }
[data-theme="roma-night"] .starter-card .ic { background: #2b2f73; color: #e8e9ff; }

/* Composer: one rounded box with a soft shadow, like a search bar */
[data-theme="roma"] footer { background: var(--bg); border-top: 0; }
[data-theme="roma"] .composer textarea { background: #fff; border-color: #e7e8f0; border-radius: 18px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 6px 18px rgba(18,23,53,.05); }
[data-theme="roma"] .send { background: #fff; border-color: #e7e8f0; }
[data-theme="roma"] .chip { background: #fff; border-color: #e7e8f0; }

@media (max-width: 640px) {
  .welcome .wl-orb { width: 64px; height: 64px; margin-top: -32px; right: 18px; }
  [data-theme="roma"] .welcome h1 { font-size: 26px; }
  [data-theme="roma"] .welcome p { padding-right: 70px; }
  .starter-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .starter-card { flex-direction: column; gap: 8px; padding: 12px; }
  .starter-card small { display: none; }
}

/* ===== Same banner and full-width page as the other Auroma apps; add / remove cards (8 Nov 2026) ===== */
@media (min-width: 900px) {
  [data-theme="roma"] header, [data-theme="roma-night"] header { padding-left: 24px; padding-right: 24px; }
  main { padding: 6px 24px 8px; }
  .inner, .chips, .composer, .interim { max-width: none; }
  footer { padding-left: 24px; padding-right: 24px; }
  [data-theme="roma"] .welcome, [data-theme="roma-night"] .welcome { min-height: 220px; box-sizing: border-box; padding: 12px 20px 14px; margin-top: 0; } /* same 220px banner as the other apps */
  [data-theme="roma"] .welcome .wl-orb, [data-theme="roma-night"] .welcome .wl-orb { width: 120px; height: 120px; margin-top: -60px; right: 60px; }
  [data-theme="roma"] .welcome h1 { font-size: 30px; }
  .msg { max-width: 70%; }
  .card { max-width: 900px; }
}
.starter-card { position: relative; }
.starter-grid:has(.add-form) { align-items: start; }
.starter-card .sc-x { position: absolute; top: 8px; right: 8px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; display: none; align-items: center; justify-content: center; font-size: 15px; line-height: 1; color: var(--muted); background: var(--inset); }
.starter-card:hover .sc-x, .starter-card.confirm .sc-x { display: inline-flex; }
.starter-card .sc-x:hover { color: #fff; background: var(--danger); }
.starter-card.confirm .sc-x { color: #fff; background: var(--danger); font-size: 12px; font-weight: 700; }
@media (hover: none) { .starter-card .sc-x { display: inline-flex; } }
.starter-card.add-card { border-style: dashed; background: transparent; box-shadow: none; }
.starter-card.add-card .ic { font-size: 22px; font-weight: 600; }
.starter-card.add-form { flex-direction: column; gap: 8px; align-items: stretch; cursor: default; transform: none; border-color: var(--accent); }
.add-form input, .add-form textarea { font: inherit; font-size: 14px; color: var(--text); background: var(--inset); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; outline: none; resize: vertical; }
.add-form input:focus, .add-form textarea:focus { border-color: var(--accent); }
.add-form .af-row { display: flex; gap: 8px; }
.add-form .btn { padding: 7px 12px; font-size: 13px; }

/* Shortcut buttons along the bottom hidden (8 Nov 2026): the cards on the home screen do the same job.
   They stay in the page, hidden, because the cards are built from them. */
footer .chips { display: none !important; }
footer { padding-top: 12px; }
