:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-height: 76px;
  --page-max: 1180px;
  --bg: #090e18;
  --bg-soft: #0e1522;
  --surface: #111a2a;
  --surface-2: #151f31;
  --surface-3: #1a263a;
  --surface-hover: #1d2a40;
  --text: #f7f9ff;
  --text-soft: #c8d0df;
  --muted: #8591a5;
  --muted-2: #647087;
  --line: rgba(255, 255, 255, .085);
  --line-strong: rgba(255, 255, 255, .14);
  --primary: #6887ff;
  --primary-2: #8b63ff;
  --primary-soft: rgba(104, 135, 255, .14);
  --mint: #58d8b0;
  --danger: #ff6b78;
  --warning: #ffb15e;
  --success: #5cddb0;
  --shadow: 0 18px 44px rgba(0, 0, 0, .28);
  --shadow-soft: 0 10px 26px rgba(0, 0, 0, .18);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .75, .25, 1);
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

html[data-theme="light"] {
  --bg: #eef2f8;
  --bg-soft: #e7ecf4;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #edf2f9;
  --surface-hover: #e9eff8;
  --text: #101827;
  --text-soft: #303b4d;
  --muted: #69768b;
  --muted-2: #8894a7;
  --line: rgba(19, 31, 49, .09);
  --line-strong: rgba(19, 31, 49, .16);
  --primary-soft: rgba(83, 114, 236, .1);
  --shadow: 0 18px 44px rgba(50, 65, 89, .13);
  --shadow-soft: 0 10px 26px rgba(50, 65, 89, .09);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); }
body { min-height: 100%; margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.45; text-rendering: optimizeLegibility; }
button, input, textarea, select, a { font: inherit; }
button { border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { color: #fff; background: rgba(104, 135, 255, .55); }

.app-backdrop {
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(700px 420px at 10% -15%, rgba(83, 125, 255, .12), transparent 70%),
    radial-gradient(600px 440px at 110% 10%, rgba(139, 99, 255, .11), transparent 68%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
}
html[data-theme="light"] .app-backdrop { background: linear-gradient(180deg, #f4f7fb, #edf2f8); }

.is-hidden { display: none !important; }
.app { width: min(100%, var(--page-max)); min-height: 100dvh; margin: 0 auto; padding: calc(12px + var(--safe-top)) 14px calc(var(--nav-height) + 30px + var(--safe-bottom)); }
.view { display: none; animation: view-in .22s var(--ease) both; }
.view.active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.boot-screen { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; gap: 16px; padding: 28px; text-align: center; background: var(--bg); transition: opacity .28s ease, visibility .28s ease; }
.boot-screen.is-out { opacity: 0; visibility: hidden; }
.boot-mark { width: 76px; height: 76px; margin: 0 auto; display: grid; place-items: center; border-radius: 24px; background: linear-gradient(145deg, var(--primary), var(--primary-2)); box-shadow: 0 18px 42px rgba(91, 95, 255, .28); font-size: 34px; }
.boot-copy b { display: block; font-size: 23px; letter-spacing: -.04em; }.boot-copy small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.boot-line { width: 180px; height: 3px; overflow: hidden; margin: 0 auto; border-radius: 999px; background: var(--surface-3); }.boot-line i { display: block; width: 45%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--primary-2)); animation: boot 1s ease-in-out infinite; }
@keyframes boot { 0% { transform: translateX(-110%); } 100% { transform: translateX(330%); } }

.global-header { position: relative; z-index: 20; min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding: 3px 2px; }
.brand-button { min-width: 0; display: flex; align-items: center; gap: 11px; color: var(--text); background: transparent; text-align: left; }
.brand-avatar, .header-avatar, .profile-avatar { position: relative; overflow: hidden; flex: 0 0 auto; aspect-ratio: 1; background: linear-gradient(145deg, var(--primary), var(--primary-2)); isolation: isolate; }
.avatar-image { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; display: block; max-width: none; object-fit: cover; object-position: 50% 50%; border-radius: inherit; }
.avatar-fallback { position: relative; z-index: 1; display: grid; width: 100%; height: 100%; place-items: center; }
.brand-avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #fff; border: 1px solid rgba(255,255,255,.16); font-size: 13px; font-weight: 900; box-shadow: 0 8px 20px rgba(0,0,0,.16); }
.brand-avatar.has-photo { color: transparent; }
.brand-text { min-width: 0; }.brand-text b { display: block; font-size: 15px; letter-spacing: -.02em; }.brand-text small { display: block; margin-top: 2px; color: var(--muted); font-size: 7px; font-weight: 850; letter-spacing: .16em; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.status-pill { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 11px; border-radius: 11px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(92, 221, 176, .08); }
.header-avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); font-weight: 850; box-shadow: 0 8px 18px rgba(0,0,0,.12); }
.header-avatar.has-photo { color: transparent; }

.hero-shell { display: block; padding: 27px; border-radius: var(--radius-xl); background: linear-gradient(140deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-copy h1 { margin: 14px 0 10px; font-size: clamp(31px, 7vw, 46px); line-height: .98; letter-spacing: -.06em; }.hero-copy h1 em { color: var(--primary); font-style: normal; }
.hero-copy > p { max-width: 480px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.micro-label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .15em; }.micro-label > span:first-child { font-size: 13px; letter-spacing: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.hero-card { min-height: 160px; display: grid; grid-template-rows: 1fr auto; align-items: end; position: relative; overflow: hidden; padding: 18px; border-radius: 23px; color: #fff; background: linear-gradient(145deg, #5478ef, #7b5df3); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.hero-card::after { content: ''; position: absolute; width: 130px; height: 130px; right: -45px; top: -50px; border: 24px solid rgba(255,255,255,.08); border-radius: 50%; }
.hero-card-emoji { align-self: start; font-size: 34px; }.hero-card div { position: relative; z-index: 1; }.hero-card b { display: block; font-size: 16px; }.hero-card small { display: block; margin-top: 4px; color: rgba(255,255,255,.72); font-size: 9px; }
.hero-card-badge { position: absolute; right: 15px; bottom: 15px; min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: rgba(0,0,0,.2); font-size: 11px; font-weight: 900; }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border-radius: 14px; border: 1px solid transparent; font-size: 11px; font-weight: 850; transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease; }
.button:active { transform: scale(.98); }.button:disabled { cursor: wait; opacity: .55; }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 12px 24px rgba(89, 96, 245, .18); }
.button-secondary, .button-ghost { color: var(--text-soft); background: var(--surface-2); border-color: var(--line); box-shadow: none; }
.button.full { width: 100%; }
.text-button { padding: 7px 0; color: var(--primary); background: transparent; font-size: 10px; font-weight: 800; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); font-size: 20px; }.icon-button.accent { color: #fff; background: linear-gradient(145deg, var(--primary), var(--primary-2)); border: 0; }

.section-block { margin-top: 25px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin: 0 2px 12px; }.section-heading > div { min-width: 0; }.section-heading small { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .15em; }.section-heading h2 { margin: 4px 0 0; font-size: 22px; letter-spacing: -.045em; }.section-heading p { max-width: 510px; margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.metric-card { min-height: 136px; position: relative; overflow: hidden; padding: 16px; border-radius: 21px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.metric-card::after { content: ''; position: absolute; inset: auto -25px -45px auto; width: 110px; height: 110px; border-radius: 50%; background: var(--primary-soft); }
.metric-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; background: var(--surface-3); font-size: 18px; }
.metric-card strong { display: block; margin-top: 17px; font-size: 29px; line-height: 1; letter-spacing: -.05em; }.metric-card p { margin: 7px 0 0; color: var(--text-soft); font-size: 10px; font-weight: 850; }.metric-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; }

.quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.quick-action { min-height: 82px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 13px; color: var(--text); text-align: left; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.quick-action:active { transform: scale(.99); }.quick-featured { background: linear-gradient(135deg, var(--surface-2), var(--surface)); border-color: rgba(104,135,255,.24); }
.quick-glyph { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-3); font-size: 20px; }.quick-action b { display: block; font-size: 12px; }.quick-action small { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 8px; }.quick-action > i { color: var(--muted); font-style: normal; }

.page-intro { padding: 10px 4px 4px; }.page-intro h1 { margin: 14px 0 8px; font-size: 36px; line-height: 1.02; letter-spacing: -.055em; }.page-intro h1 em { color: var(--primary); font-style: normal; }.page-intro p { max-width: 560px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.search-shell { height: 52px; display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 8px; margin: 20px 0 18px; padding: 0 14px; border-radius: 17px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }.search-shell > span { font-size: 17px; }.search-shell input { width: 100%; color: var(--text); background: transparent; border: 0; outline: 0; font-size: 12px; }.search-shell input::placeholder { color: var(--muted-2); }.search-shell kbd { min-width: 28px; height: 25px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); background: var(--surface-3); border: 1px solid var(--line); font-size: 8px; }
.tool-catalog { display: grid; gap: 22px; }.tool-category-head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 9px; }.tool-category-head span { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .14em; }.tool-category-head small { color: var(--muted-2); font-size: 8px; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }.tool-card { min-height: 132px; display: flex; flex-direction: column; align-items: flex-start; padding: 15px; color: var(--text); text-align: left; border-radius: 21px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }.tool-card:active { transform: scale(.99); }.tool-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-3); font-size: 21px; }.tool-card b { margin-top: 18px; font-size: 12px; }.tool-card small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.35; }

.activity-list, .job-stack, .campaign-list { display: grid; gap: 8px; }
.activity-item, .campaign-item, .job-card { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.activity-item { min-height: 62px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 17px; }.activity-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-3); font-size: 17px; }.activity-copy { min-width: 0; }.activity-copy b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }.activity-copy small { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 8px; }.activity-status { color: var(--muted); font-size: 7px; font-weight: 900; letter-spacing: .06em; }
.empty-state { min-height: 120px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 18px; text-align: center; color: var(--muted); border-radius: 18px; background: var(--surface); border: 1px dashed var(--line-strong); }.empty-state.compact { min-height: 88px; }.empty-state span { font-size: 25px; }.empty-state p { margin: 0; font-size: 10px; }
.count-chip { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: var(--primary); background: var(--primary-soft); font-size: 9px; font-weight: 900; }

.campaign-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 18px 0 13px; padding: 5px; border-radius: 15px; background: var(--surface); border: 1px solid var(--line); }.campaign-switch button { min-height: 40px; color: var(--muted); background: transparent; border-radius: 11px; font-size: 10px; font-weight: 850; }.campaign-switch button.active { color: var(--text); background: var(--surface-3); }
.campaign-panel { display: none; }.campaign-panel.active { display: block; }.campaign-hero { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px; border-radius: 23px; background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }.campaign-hero small { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .13em; }.campaign-hero h2 { margin: 6px 0 5px; font-size: 21px; }.campaign-hero p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }.campaign-logo { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 15px; background: var(--surface-3); font-size: 22px; }
.account-strip { display: flex; gap: 9px; overflow-x: auto; margin: 13px 0; padding-bottom: 4px; scrollbar-width: none; }.account-strip::-webkit-scrollbar { display: none; }.account-card { min-width: 250px; display: flex; align-items: center; gap: 11px; padding: 13px; border-radius: 17px; background: var(--surface); border: 1px solid var(--line); }.account-logo { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; background: var(--surface-3); font-size: 19px; }.account-copy { min-width: 0; flex: 1; }.account-copy b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }.account-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }.account-card button { width: 30px; height: 30px; border-radius: 9px; color: var(--muted); background: var(--surface-3); }
.subheading { display: flex; align-items: center; justify-content: space-between; margin: 22px 2px 10px; }.subheading span { font-size: 12px; font-weight: 850; }.subheading button { color: var(--primary); background: transparent; font-size: 9px; font-weight: 800; }
.campaign-item { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 12px; border-radius: 17px; }.campaign-state { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: var(--surface-3); font-size: 17px; }.campaign-copy { min-width: 0; }.campaign-copy b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }.campaign-copy small { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 8px; }.campaign-metric { text-align: right; }.campaign-metric b { display: block; font-size: 10px; }.campaign-metric small { color: var(--muted); font-size: 7px; }
.info-card { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 11px; margin-top: 13px; padding: 13px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }.info-card > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--surface-3); font-size: 20px; }.info-card b { font-size: 11px; }.info-card p { margin: 3px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }.info-card button { color: var(--primary); background: transparent; font-size: 9px; font-weight: 850; }

.profile-hero { position: relative; display: grid; grid-template-columns: 82px minmax(0,1fr); align-items: center; gap: 16px; padding: 21px; border-radius: 25px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }.profile-avatar { width: 82px; height: 82px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 20px; font-weight: 900; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 12px 28px rgba(0,0,0,.18); }.profile-avatar.has-photo { color: transparent; }.profile-main { min-width: 0; }.profile-main small { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .14em; }.profile-main h1 { margin: 6px 0 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 22px; letter-spacing: -.04em; }.profile-main p { margin: 0; color: var(--muted); font-size: 10px; }.access-badge { position: absolute; right: 14px; top: 14px; padding: 5px 8px; border-radius: 8px; color: var(--success); background: rgba(92,221,176,.09); border: 1px solid rgba(92,221,176,.16); font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.settings-card, .system-card { margin-top: 14px; overflow: hidden; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }.settings-title { padding: 15px 16px 11px; border-bottom: 1px solid var(--line); }.settings-title span { display: block; font-size: 13px; font-weight: 850; }.settings-title small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }.setting-row { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 12px 16px; border-bottom: 1px solid var(--line); }.setting-row > span { min-width: 0; }.setting-row b { display: block; font-size: 11px; }.setting-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }.setting-row select { min-width: 116px; max-width: 145px; height: 39px; padding: 0 30px 0 11px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; outline: none; font-size: 10px; }.settings-card > .button { width: calc(100% - 26px); margin: 13px; }
.settings-entry { width: 100%; min-height: 72px; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 12px; margin-top: 14px; padding: 13px 15px; color: var(--text); text-align: left; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }.settings-entry-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-3); font-size: 20px; }.settings-entry b { display: block; font-size: 12px; }.settings-entry small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }.settings-entry > i { color: var(--muted); font-style: normal; }
.system-row { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); }.system-row:last-child { border-bottom: 0; }.system-row span { display: flex; align-items: center; gap: 9px; color: var(--text-soft); font-size: 10px; }.system-row i { width: 7px; height: 7px; border-radius: 50%; background: var(--warning); }.system-row i.ok { background: var(--success); }.system-row b { color: var(--muted); font-size: 7px; letter-spacing: .08em; }.profile-footer { display: flex; justify-content: space-between; padding: 20px 4px 0; color: var(--muted-2); font-size: 9px; }

.workspace-view { padding-top: 0; }
.workspace-header { position: relative; z-index: 2; display: grid; grid-template-columns: 42px minmax(0,1fr) 42px; align-items: center; gap: 10px; margin: 0 0 14px; padding: 2px 0; background: transparent; box-shadow: none; }
.workspace-header > div { min-width: 0; text-align: center; }.workspace-header small { color: var(--muted); font-size: 7px; font-weight: 900; letter-spacing: .16em; }.workspace-header h1 { margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; letter-spacing: -.035em; }.round-button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--text); background: var(--surface); border: 1px solid var(--line); font-size: 17px; box-shadow: var(--shadow-soft); }.round-button.muted { color: var(--muted); font-size: 14px; }
.workspace-body { display: grid; gap: 12px; }.module-hero { min-height: 148px; position: relative; overflow: hidden; padding: 21px; border-radius: 25px; background: linear-gradient(140deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); box-shadow: var(--shadow); }.module-hero::after { content: attr(data-glyph); position: absolute; right: 17px; bottom: -18px; opacity: .08; font-size: 104px; line-height: 1; }.module-hero > * { position: relative; z-index: 1; }.module-hero small { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .15em; }.module-hero h2 { margin: 12px 0 7px; font-size: 27px; letter-spacing: -.05em; }.module-hero p { max-width: 500px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.form-card, .result-card { padding: 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }.form-title, .result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }.form-title b, .result-head b { font-size: 12px; }.form-title small, .result-head small { color: var(--muted); font-size: 8px; }.field { display: grid; gap: 7px; margin-top: 11px; }.field:first-child { margin-top: 0; }.field > span { color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .04em; }.field input, .field textarea, .field select { width: 100%; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; outline: 0; transition: border-color .15s ease, box-shadow .15s ease; }.field input, .field select { height: 48px; padding: 0 13px; }.field textarea { min-height: 122px; padding: 12px 13px; resize: vertical; line-height: 1.55; }.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(104,135,255,.45); box-shadow: 0 0 0 3px rgba(104,135,255,.09); }.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }.field-grid .field { margin-top: 0; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); }.segmented button { min-height: 39px; border-radius: 10px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 850; }.segmented button.active { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.divider-label { margin: 17px 0 9px; color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .14em; }.upload-zone { min-height: 138px; display: grid; place-items: center; align-content: center; gap: 7px; padding: 20px; border-radius: 17px; color: var(--text); text-align: center; background: var(--surface-2); border: 1px dashed var(--line-strong); }.upload-zone input { position: absolute; opacity: 0; pointer-events: none; }.upload-zone > span { font-size: 27px; }.upload-zone b { font-size: 11px; }.upload-zone small { color: var(--muted); font-size: 8px; }.uploaded-file { color: var(--success) !important; }.file-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }.file-chip { max-width: 100%; padding: 7px 9px; border-radius: 9px; color: var(--text-soft); background: var(--surface-3); font-size: 8px; }
.inline-note { display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: center; gap: 10px; margin-top: 12px; padding: 11px; border-radius: 15px; background: var(--surface-2); border: 1px solid var(--line); }.inline-note > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--surface-3); font-size: 17px; }.inline-note p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.5; }.form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 14px; }.form-actions .button { flex: 1 1 150px; }.result-card { display: none; }.result-card.active { display: block; }.result-status { padding: 5px 8px; border-radius: 8px; color: var(--success); background: rgba(92,221,176,.09); font-size: 7px; font-weight: 900; }.result-content { color: var(--text-soft); font-size: 10px; }.result-text { white-space: pre-wrap; line-height: 1.65; }.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }.result-grid > div { padding: 12px 7px; border-radius: 13px; text-align: center; background: var(--surface-2); }.result-grid b { display: block; font-size: 16px; }.result-grid small { display: block; margin-top: 3px; color: var(--muted); font-size: 7px; }.error-box { padding: 12px; border-radius: 13px; color: var(--danger); background: rgba(255,107,120,.08); border: 1px solid rgba(255,107,120,.14); font-size: 9px; line-height: 1.5; }
.job-card { padding: 13px; border-radius: 18px; }.job-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }.job-head b { font-size: 11px; }.job-head small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }.progress-track { height: 6px; overflow: hidden; margin-top: 11px; border-radius: 999px; background: var(--surface-3); }.progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--primary-2)); transition: width .25s ease; }.job-files { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }.job-files .button { min-height: 38px; padding: 0 11px; font-size: 8px; }.track-result { display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 12px; align-items: center; }.track-cover { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: var(--surface-3); font-size: 26px; }.track-copy b { display: block; font-size: 13px; }.track-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }

.bottom-nav { position: fixed; z-index: 80; left: 50%; bottom: max(8px, var(--safe-bottom)); width: min(calc(100% - 20px), 720px); min-height: 66px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 6px; transform: translateX(-50%); border-radius: 20px; background: color-mix(in srgb, var(--surface) 96%, transparent); border: 1px solid var(--line-strong); box-shadow: 0 16px 38px rgba(0,0,0,.28); }
.nav-item { min-width: 0; display: grid; place-items: center; align-content: center; gap: 3px; padding: 7px 3px; color: var(--muted); background: transparent; border-radius: 14px; }.nav-item span { font-size: 18px; line-height: 1; }.nav-item small { font-size: 7px; font-weight: 800; }.nav-item.active { color: var(--text); background: var(--surface-3); }.nav-center { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }.nav-center.active { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }

.dialog-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.54); }.dialog { position: fixed; z-index: 110; left: 50%; top: 50%; width: min(calc(100% - 28px), 390px); transform: translate(-50%, -50%); padding: 22px; text-align: center; border-radius: 23px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }.dialog-icon { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto; border-radius: 16px; background: var(--surface-3); font-size: 24px; }.dialog h2 { margin: 14px 0 6px; font-size: 20px; }.dialog p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 17px; }.toast { position: fixed; z-index: 130; left: 50%; bottom: calc(var(--nav-height) + 20px + var(--safe-bottom)); max-width: min(calc(100% - 30px), 420px); padding: 11px 14px; transform: translate(-50%, 10px); opacity: 0; pointer-events: none; border-radius: 13px; color: #fff; background: #202a3b; box-shadow: var(--shadow); font-size: 10px; transition: opacity .18s ease, transform .18s ease; }.toast.show { opacity: 1; transform: translate(-50%, 0); }.toast.success { background: #1c6e58; }.toast.error { background: #8b3440; }

.reveal { animation: reveal .32s var(--ease) both; }.delay-1 { animation-delay: .04s; }.delay-2 { animation-delay: .08s; }.delay-3 { animation-delay: .12s; } @keyframes reveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

body.low-power .reveal, body.low-power .view { animation: none !important; }
body.low-power .metric-card, body.low-power .quick-action, body.low-power .tool-card, body.low-power .activity-item, body.low-power .campaign-item, body.low-power .job-card, body.low-power .settings-card, body.low-power .system-card { box-shadow: none; }

@media (max-width: 520px) {
  .app { padding-left: 10px; padding-right: 10px; }
  .global-header { margin-bottom: 12px; }
  .status-pill { display: none; }
  .hero-shell { padding: 19px; }
  .hero-copy h1 { font-size: 34px; }
  .quick-actions { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .page-intro h1 { font-size: 31px; }
  .field-grid { grid-template-columns: 1fr; }
}

@media (max-width: 350px) {
  .app { padding-left: 8px; padding-right: 8px; }
  .brand-text small { display: none; }
  .hero-shell { padding: 16px; border-radius: 22px; }
  .hero-copy h1 { font-size: 30px; }
  .hero-actions .button { width: 100%; }
  .metric-card { min-height: 126px; padding: 13px; }.metric-card strong { font-size: 25px; }
  .tool-card { min-height: 122px; padding: 13px; }
  .bottom-nav { width: calc(100% - 12px); }.nav-item small { font-size: 6.5px; }
  .setting-row { align-items: flex-start; flex-direction: column; }.setting-row select { width: 100%; max-width: none; }
}

@media (min-width: 760px) {
  .app { padding-left: 20px; padding-right: 20px; }
  .metric-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .quick-actions { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .tool-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .metric-card { min-height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* v0.31 final performance polish */
html { scroll-behavior: auto; overscroll-behavior: none; }
body { overscroll-behavior-y: contain; }
button, a, input, textarea, select { touch-action: manipulation; }
.metric-card, .quick-action, .tool-card, .activity-item, .campaign-item, .job-card, .settings-card, .system-card { contain: layout paint style; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; min-width: 0; border: 1px solid var(--line); cursor: pointer; }
.file-chip:hover { border-color: color-mix(in srgb, var(--primary) 32%, var(--line)); }
.workspace-body { min-width: 0; }
.module-card, .result-card, .settings-entry { contain: layout style; }
@media (max-width: 390px) {
  .workspace-header { grid-template-columns: 39px minmax(0,1fr) 39px; gap: 7px; }
  .round-button { width: 39px; height: 39px; border-radius: 12px; box-shadow: none; }
  .workspace-header h1 { font-size: 16px; }
  .module-card { padding: 13px; border-radius: 18px; }
  .metric-grid { gap: 7px; }
}
.tool-category { display: grid; gap: 8px; }
.imessage-hero { background: linear-gradient(140deg, color-mix(in srgb, var(--surface-2) 90%, #2e69ff 10%), var(--surface)); }


/* v0.31.1 desktop + avatar stability */
@media (min-width: 900px) {
  body { min-height: 100vh; }
  .app {
    width: min(calc(100% - 28px), var(--page-max));
    padding: 24px 30px 48px 122px;
  }
  .global-header {
    min-height: 62px;
    margin-bottom: 20px;
  }
  .hero-shell { padding: 34px 36px; }
  .hero-copy h1 { max-width: 760px; font-size: clamp(44px, 5vw, 62px); }
  .hero-copy > p { max-width: 680px; font-size: 13px; }
  .bottom-nav {
    left: max(18px, calc(50% - 590px));
    top: 50%;
    bottom: auto;
    width: 82px;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(62px, auto);
    gap: 6px;
    padding: 8px;
    transform: translateY(-50%);
    border-radius: 24px;
  }
  .nav-item { min-height: 62px; padding: 8px 4px; }
  .nav-item span { font-size: 21px; }
  .nav-item small { font-size: 7.5px; }
  .toast { bottom: 24px; }
  #viewWorkspace { max-width: 940px; margin: 0 auto; }
  .workspace-header { margin-bottom: 18px; }
  .metric-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .quick-actions { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .tool-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .profile-hero { max-width: 900px; }
}
@media (min-width: 1180px) {
  .metric-card { min-height: 156px; padding: 18px; }
  .tool-card { min-height: 148px; }
}
@media (max-width: 520px) {
  .brand-avatar { width: 40px; height: 40px; }
  .header-avatar { width: 37px; height: 37px; }
  .profile-hero { grid-template-columns: 70px minmax(0,1fr); gap: 13px; }
  .profile-avatar { width: 70px; height: 70px; }
}

/* v0.31.2 hero, long-name and profile-width polish */
.hero-shell {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(230px, .65fr);
  align-items: stretch;
  gap: 18px;
  padding: 28px;
  background:
    radial-gradient(420px 220px at 8% -20%, rgba(104,135,255,.16), transparent 70%),
    linear-gradient(140deg, var(--surface-2), var(--surface));
}
.hero-shell::before {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  right: -105px;
  top: -125px;
  border: 1px solid rgba(104,135,255,.15);
  border-radius: 50%;
  pointer-events: none;
}
.hero-copy { min-width: 0; position: relative; z-index: 1; }
.hero-copy h1 {
  max-width: 100%;
  margin: 15px 0 10px;
  font-size: clamp(32px, 6.2vw, 52px);
  line-height: .98;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: balance;
}
.hero-comma { color: var(--text); }
#heroName {
  display: inline-block;
  max-width: 100%;
  color: var(--primary);
  font-style: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: none;
}
#heroName.is-long { font-size: .82em; }
#heroName.is-very-long { font-size: .68em; line-height: 1.02; }
.hero-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}
.hero-summary-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-3) 76%, transparent);
  border: 1px solid var(--line);
}
.hero-summary-item > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary-soft);
  font-size: 15px;
}
.hero-summary-item div { min-width: 0; }
.hero-summary-item b { display: block; font-size: 14px; line-height: 1; }
.hero-summary-item small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 7.5px;
}
.hero-focus {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--primary) 13%, var(--surface-2)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--line));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.hero-focus-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  margin-bottom: auto;
  border-radius: 14px;
  background: var(--primary-soft);
  font-size: 20px;
}
.hero-focus small { margin-top: 22px; color: var(--muted); font-size: 7.5px; font-weight: 900; letter-spacing: .15em; }
.hero-focus b { display: block; margin-top: 7px; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.hero-focus p { margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.profile-hero { width: 100%; max-width: none !important; }

@media (max-width: 720px) {
  .hero-shell { grid-template-columns: 1fr; gap: 11px; }
  .hero-focus { min-height: 118px; display: grid; grid-template-columns: 43px minmax(0,1fr); align-content: center; column-gap: 12px; padding: 15px; }
  .hero-focus-icon { grid-row: 1 / 4; margin: 0; align-self: center; }
  .hero-focus small { margin: 0; }
  .hero-focus b { margin-top: 4px; }
  .hero-focus p { margin-top: 4px; }
}
@media (max-width: 420px) {
  .hero-shell { padding: 18px; border-radius: 23px; }
  .hero-copy h1 { font-size: 33px; }
  .hero-summary { gap: 6px; margin-top: 17px; }
  .hero-summary-item { grid-template-columns: 1fr; gap: 6px; padding: 9px 7px; text-align: center; }
  .hero-summary-item > span { width: 30px; height: 30px; margin: 0 auto; }
  .hero-summary-item small { font-size: 6.8px; }
  .hero-focus { min-height: 108px; }
}
@media (max-width: 330px) {
  .hero-copy h1 { font-size: 29px; }
  .hero-summary-item b { font-size: 12px; }
  .hero-summary-item small { white-space: normal; line-height: 1.2; }
}
@media (min-width: 900px) {
  #viewProfile { width: 100%; max-width: 1040px; margin: 0 auto; }
  .profile-hero, #viewProfile > .settings-card, #viewProfile > .settings-entry, #viewProfile > .system-card, #viewProfile > .profile-footer { width: 100%; max-width: none; }
  .hero-shell { padding: 34px 36px; }
  .hero-copy h1 { font-size: clamp(44px, 4.4vw, 62px); }
}

/* v0.31.5 — normalized Apple SVG icon system and cross-platform visual polish */
.apple-emoji {
  display: block;
  width: 1em;
  height: 1em;
  max-width: none;
  flex: 0 0 auto;
  object-fit: contain;
  image-rendering: auto;
  pointer-events: none;
  user-select: none;
}

/* Every functional icon uses the same premium tile instead of a random OS emoji box. */
.metric-icon,
.quick-glyph,
.tool-icon,
.activity-icon,
.campaign-state,
.account-logo,
.info-card > span,
.settings-entry-icon,
.inline-note > span,
.track-cover,
.hero-summary-item > span,
.hero-focus-icon,
.campaign-logo,
.module-hero-emoji,
.dialog-icon {
  overflow: hidden;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--primary) 12%, var(--surface-3)), var(--surface-3));
  border: 1px solid color-mix(in srgb, var(--primary) 12%, var(--line));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.micro-label .apple-emoji { width: 18px; height: 18px; }
.boot-mark .apple-emoji { width: 46px; height: 46px; }
.nav-item .apple-emoji { width: 29px; height: 29px; }
.hero-summary-item > span .apple-emoji { width: 29px; height: 29px; }
.hero-focus-icon .apple-emoji { width: 40px; height: 40px; }
.metric-icon .apple-emoji { width: 35px; height: 35px; }
.quick-glyph .apple-emoji { width: 38px; height: 38px; }
.tool-icon .apple-emoji { width: 40px; height: 40px; }
.activity-icon .apple-emoji { width: 31px; height: 31px; }
.campaign-state .apple-emoji { width: 30px; height: 30px; }
.account-logo .apple-emoji { width: 31px; height: 31px; }
.info-card > span .apple-emoji { width: 34px; height: 34px; }
.settings-entry-icon .apple-emoji { width: 35px; height: 35px; }
.inline-note > span .apple-emoji { width: 27px; height: 27px; }
.track-cover .apple-emoji { width: 46px; height: 46px; }
.campaign-logo .apple-emoji { width: 43px; height: 43px; }
.search-shell > span .apple-emoji { width: 25px; height: 25px; }
.campaign-switch .apple-emoji { width: 24px; height: 24px; }
.button .apple-emoji { width: 22px; height: 22px; }
.icon-button .apple-emoji { width: 25px; height: 25px; }
.round-button .apple-emoji { width: 24px; height: 24px; }
.dialog-icon .apple-emoji { width: 39px; height: 39px; }
.empty-state .apple-emoji { width: 41px; height: 41px; }
.upload-zone > span .apple-emoji { width: 46px; height: 46px; }
.uploaded-file-icon .apple-emoji { width: 25px; height: 25px; }
.account-star .apple-emoji { width: 19px; height: 19px; }
.account-star:not(.is-default) .apple-emoji { opacity: .42; filter: saturate(.55); }

.metric-card { min-height: 148px; padding: 16px; }
.metric-icon { width: 44px; height: 44px; border-radius: 15px; }
.metric-card strong { margin-top: 14px; }
.metric-card::after { opacity: .82; }

.quick-action { min-height: 88px; grid-template-columns: 48px minmax(0,1fr) auto; gap: 12px; padding: 14px; }
.quick-glyph { width: 48px; height: 48px; border-radius: 16px; }
.quick-action b { font-size: 12px; }
.quick-featured { border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); }

.tool-card { min-height: 146px; padding: 16px; }
.tool-icon { width: 50px; height: 50px; border-radius: 17px; }
.tool-card b { margin-top: 14px; font-size: 12.5px; }
.tool-card small { font-size: 8.3px; }

.activity-item { min-height: 68px; grid-template-columns: 42px minmax(0,1fr) auto; gap: 11px; padding: 12px 13px; }
.activity-icon { width: 42px; height: 42px; border-radius: 14px; }

.campaign-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.campaign-logo { width: 56px; height: 56px; border-radius: 18px; }
.campaign-state { width: 42px; height: 42px; border-radius: 14px; }
.campaign-item { grid-template-columns: 42px minmax(0,1fr) auto; }
.account-logo { width: 44px; height: 44px; border-radius: 15px; }
.account-card { min-width: 270px; }
.account-star { display: grid; place-items: center; }

.hero-summary-item { grid-template-columns: 38px minmax(0,1fr); padding: 10px 11px; }
.hero-summary-item > span { width: 38px; height: 38px; border-radius: 12px; }
.hero-focus-icon { width: 49px; height: 49px; border-radius: 16px; }

.module-hero { min-height: 160px; padding: 24px 96px 24px 24px; }
.module-hero::after { display: none; }
.module-hero-emoji {
  position: absolute;
  right: 22px;
  top: 22px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
}
.module-hero-emoji .apple-emoji { width: 50px; height: 50px; }

#heroName {
  max-width: min(100%, 15ch);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  vertical-align: bottom;
}
#heroName.is-truncated { cursor: help; }

@media (max-width: 420px) {
  #heroName { max-width: 11ch; }
  .nav-item .apple-emoji { width: 27px; height: 27px; }
  .hero-summary-item { grid-template-columns: 1fr; }
  .hero-summary-item > span { width: 36px; height: 36px; }
  .hero-summary-item > span .apple-emoji { width: 28px; height: 28px; }
  .metric-icon { width: 42px; height: 42px; }
  .metric-icon .apple-emoji { width: 34px; height: 34px; }
  .tool-icon { width: 48px; height: 48px; }
  .tool-icon .apple-emoji { width: 39px; height: 39px; }
  .module-hero { padding: 21px 78px 21px 21px; }
  .module-hero-emoji { right: 17px; top: 17px; width: 54px; height: 54px; border-radius: 17px; }
  .module-hero-emoji .apple-emoji { width: 43px; height: 43px; }
}

@media (min-width: 900px) {
  .nav-item .apple-emoji { width: 31px; height: 31px; }
  .tool-icon { width: 52px; height: 52px; }
  .tool-icon .apple-emoji { width: 42px; height: 42px; }
}


/* v0.31.10 — compact Apple icons + CRM-connected campaigns */
.nav-item .apple-emoji { width: 18px; height: 18px; }
.hero-summary-item > span { width: 28px; height: 28px; border-radius: 10px; }
.hero-summary-item > span .apple-emoji { width: 16px; height: 16px; }
.hero-focus-icon { width: 38px; height: 38px; border-radius: 13px; }
.hero-focus-icon .apple-emoji { width: 23px; height: 23px; }

.metric-card { min-height: 140px; padding: 15px; }
.metric-icon { width: 34px; height: 34px; border-radius: 12px; }
.metric-icon .apple-emoji { width: 20px; height: 20px; }
.metric-card strong { margin-top: 13px; }

.quick-glyph { width: 34px; height: 34px; border-radius: 12px; }
.quick-glyph .apple-emoji { width: 21px; height: 21px; }
.tool-icon { width: 38px; height: 38px; border-radius: 13px; }
.tool-icon .apple-emoji { width: 23px; height: 23px; }
.tool-card b { margin-top: 14px; }

.activity-icon { width: 30px; height: 30px; border-radius: 10px; }
.activity-icon .apple-emoji { width: 18px; height: 18px; }
.campaign-state { width: 32px; height: 32px; border-radius: 11px; }
.campaign-state .apple-emoji { width: 19px; height: 19px; }
.campaign-item { grid-template-columns: 36px minmax(0,1fr) auto; }

.account-logo { width: 34px; height: 34px; border-radius: 12px; }
.account-logo .apple-emoji { width: 20px; height: 20px; }
.info-card > span { width: 34px; height: 34px; border-radius: 12px; }
.info-card > span .apple-emoji { width: 20px; height: 20px; }
.track-cover { width: 36px; height: 36px; border-radius: 12px; }
.track-cover .apple-emoji { width: 22px; height: 22px; }
.campaign-logo { width: 40px; height: 40px; border-radius: 13px; }
.campaign-logo .apple-emoji { width: 23px; height: 23px; }
.campaign-switch .apple-emoji { width: 16px; height: 16px; }

.module-hero-emoji { width: 42px; height: 42px; border-radius: 14px; right: 18px; top: 18px; }
.module-hero-emoji .apple-emoji { width: 25px; height: 25px; }
.search-shell > span .apple-emoji { width: 16px; height: 16px; }
.button .apple-emoji { width: 15px; height: 15px; }
.icon-button .apple-emoji { width: 16px; height: 16px; }
.round-button .apple-emoji { width: 16px; height: 16px; }
.dialog-icon .apple-emoji { width: 24px; height: 24px; }
.empty-state .apple-emoji { width: 25px; height: 25px; }
.upload-zone > span .apple-emoji { width: 27px; height: 27px; }
.inline-note > span .apple-emoji { width: 16px; height: 16px; }

.crm-audience-card {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) auto auto;
  align-items: center;
  gap: 14px;
  margin: 14px 0 28px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line));
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--primary) 15%, transparent), transparent 42%),
    var(--surface);
}
.crm-audience-main { min-width: 0; display: flex; align-items: center; gap: 12px; }
.crm-audience-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--line));
}
.crm-audience-icon .apple-emoji { width: 21px; height: 21px; }
.crm-audience-copy { min-width: 0; }
.crm-audience-copy small { display: block; color: var(--primary); font-size: 7px; font-weight: 900; letter-spacing: .16em; }
.crm-audience-copy b { display: block; margin-top: 4px; font-size: 12px; line-height: 1.3; }
.crm-audience-copy p { margin: 4px 0 0; color: var(--muted); font-size: 8px; line-height: 1.4; }
.crm-audience-metrics { display: flex; gap: 8px; }
.crm-audience-metrics span {
  min-width: 70px;
  padding: 9px 10px;
  border-radius: 14px;
  background: var(--surface-3);
  border: 1px solid var(--line);
}
.crm-audience-metrics b { display: block; font-size: 17px; line-height: 1; }
.crm-audience-metrics small { display: block; margin-top: 4px; color: var(--muted); font-size: 7px; }
.crm-audience-actions { display: flex; gap: 7px; }
.crm-audience-actions .button { min-height: 38px; padding-inline: 11px; white-space: nowrap; }

.crm-source-card {
  margin-bottom: 15px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--primary) 5%, var(--surface-2));
}
.crm-source-head { display: flex; align-items: center; gap: 11px; }
.crm-source-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 16%, var(--line));
}
.crm-source-icon .apple-emoji { width: 19px; height: 19px; }
.crm-source-head > span:last-child { min-width: 0; }
.crm-source-head b { display: block; font-size: 10px; letter-spacing: .06em; }
.crm-source-head small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.crm-source-controls {
  display: grid;
  grid-template-columns: minmax(120px,.75fr) minmax(160px,1fr) auto;
  gap: 8px;
  margin-top: 12px;
}
.crm-source-controls select,
.crm-source-controls input {
  min-width: 0;
  min-height: 40px;
  padding: 0 11px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  font: inherit;
  font-size: 9px;
}
.crm-source-controls select:focus,
.crm-source-controls input:focus { border-color: color-mix(in srgb, var(--primary) 58%, var(--line)); }
.crm-load-button { min-height: 40px; padding-inline: 12px; }
.crm-source-summary { margin: 9px 0 0; color: var(--muted); font-size: 7.5px; line-height: 1.4; }

@media (max-width: 760px) {
  .crm-audience-card { grid-template-columns: 1fr; gap: 12px; margin-bottom: 22px; }
  .crm-audience-metrics { order: 2; }
  .crm-audience-actions { order: 3; display: grid; grid-template-columns: 1fr 1fr; }
  .crm-audience-actions .button { width: 100%; }
  .crm-source-controls { grid-template-columns: 1fr 1fr; }
  .crm-load-button { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 420px) {
  .nav-item .apple-emoji { width: 17px; height: 17px; }
  .hero-summary-item > span { width: 26px; height: 26px; }
  .hero-summary-item > span .apple-emoji { width: 15px; height: 15px; }
  .hero-focus-icon { width: 35px; height: 35px; }
  .hero-focus-icon .apple-emoji { width: 21px; height: 21px; }
  .metric-icon { width: 32px; height: 32px; }
  .metric-icon .apple-emoji { width: 19px; height: 19px; }
  .tool-icon { width: 36px; height: 36px; }
  .tool-icon .apple-emoji { width: 21px; height: 21px; }
  .quick-glyph { width: 34px; height: 34px; }
  .quick-glyph .apple-emoji { width: 20px; height: 20px; }
  .crm-audience-actions { grid-template-columns: 1fr; }
  .crm-source-controls { grid-template-columns: 1fr; }
  .crm-load-button { grid-column: auto; }
}
@media (min-width: 900px) {
  .nav-item .apple-emoji { width: 17px; height: 17px; }
  .tool-icon { width: 36px; height: 36px; }
  .tool-icon .apple-emoji { width: 21px; height: 21px; }
  .metric-icon { width: 33px; height: 33px; }
  .metric-icon .apple-emoji { width: 19px; height: 19px; }
  .quick-glyph { width: 35px; height: 35px; }
  .quick-glyph .apple-emoji { width: 21px; height: 21px; }
}

/* v0.31.10 — compact downloader settings icon and shared footer */
.settings-entry {
  grid-template-columns: 36px minmax(0,1fr) auto;
  gap: 10px;
}
.settings-entry-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}
.settings-entry-icon .apple-emoji {
  width: 18px;
  height: 18px;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 34px;
  padding: 16px 3px 4px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 8px;
  line-height: 1.55;
}
.app-footer-brand,
.app-footer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.app-footer-brand strong {
  color: var(--text-soft);
  font-size: 10px;
}
.app-footer-meta a {
  color: var(--primary);
  font-weight: 850;
}
.app-footer-meta b {
  color: var(--text-soft);
}
.app-footer a:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .settings-entry { grid-template-columns: 34px minmax(0,1fr) auto; }
  .settings-entry-icon { width: 34px; height: 34px; }
  .settings-entry-icon .apple-emoji { width: 17px; height: 17px; }
  .app-footer {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 28px;
    padding: 14px 2px 2px;
  }
  .app-footer-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}


/* v0.31.10 — iMessage spacing and structured shared footer */
#imessagePanel > .campaign-hero + .button { margin-top: 18px; }

.app-footer {
  align-items: flex-start;
  gap: 16px 28px;
  margin-top: 38px;
  padding: 20px 4px 6px;
}
.app-footer-brand {
  display: flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}
.app-footer-brand strong { font-size: 11px; }
.app-footer-brand span { color: var(--muted); font-size: 8px; }
.app-footer-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}
.app-footer-meta > span { display: block; }
.app-footer-version { color: var(--muted-2); margin-top: 2px; }
@media (max-width: 760px) {
  #imessagePanel > .campaign-hero + .button { margin-top: 16px; }
}
@media (max-width: 520px) {
  .app-footer { gap: 10px; margin-top: 30px; padding-top: 16px; }
  .app-footer-brand { align-items: flex-start; flex-direction: column; gap: 2px; white-space: normal; }
  .app-footer-meta { justify-items: start; text-align: left; gap: 4px; }
}

/* v0.33.1 — browser guest preview */
.browser-view-only #saveProfileButton,
.browser-view-only #downloadSettingsSave,
.browser-view-only #gmailConnectButton,
.browser-view-only #gmailWorkspaceConnect,
.browser-view-only #gmailSubmit,
.browser-view-only #imessageSubmit,
.browser-view-only #finderSubmit,
.browser-view-only #downloaderSubmit,
.browser-view-only #masterSubmit,
.browser-view-only #translatorSubmit,
.browser-view-only #validatorSubmit,
.browser-view-only #contractSubmit,
.browser-view-only #youtubeSubmit,
.browser-view-only .crm-load-button,
.browser-view-only input[type="file"] + label {
  opacity: .46;
  pointer-events: none;
  filter: saturate(.55);
}

/* v0.33.1 — Telegram-style theme and accent controls */
:root,
html[data-accent="blue"] { --primary:#5b8cff; --primary-2:#7c63ff; --primary-soft:color-mix(in srgb, #5b8cff 15%, transparent); }
html[data-accent="cyan"] { --primary:#45bfe8; --primary-2:#4a87f5; --primary-soft:color-mix(in srgb, #45bfe8 15%, transparent); }
html[data-accent="green"] { --primary:#61b96b; --primary-2:#35a98c; --primary-soft:color-mix(in srgb, #61b96b 15%, transparent); }
html[data-accent="pink"] { --primary:#c96c92; --primary-2:#a865d7; --primary-soft:color-mix(in srgb, #c96c92 15%, transparent); }
html[data-accent="orange"] { --primary:#d99045; --primary-2:#d6645c; --primary-soft:color-mix(in srgb, #d99045 15%, transparent); }
html[data-accent="purple"] { --primary:#9474cf; --primary-2:#6f6ce8; --primary-soft:color-mix(in srgb, #9474cf 15%, transparent); }
html[data-accent="red"] { --primary:#d85c53; --primary-2:#b94d78; --primary-soft:color-mix(in srgb, #d85c53 15%, transparent); }
html[data-accent="slate"] { --primary:#7f93af; --primary-2:#64758e; --primary-soft:color-mix(in srgb, #7f93af 16%, transparent); }
html[data-accent="gold"] { --primary:#c5a252; --primary-2:#d17b45; --primary-soft:color-mix(in srgb, #c5a252 16%, transparent); }
html[data-accent="spectrum"] { --primary:#5b8cff; --primary-2:#c96c92; --primary-soft:color-mix(in srgb, #8f79e8 16%, transparent); }

::selection { background: color-mix(in srgb, var(--primary) 55%, transparent); }
.app-backdrop {
  background:
    radial-gradient(700px 420px at 10% -15%, color-mix(in srgb, var(--primary) 13%, transparent), transparent 70%),
    radial-gradient(600px 440px at 110% 10%, color-mix(in srgb, var(--primary-2) 12%, transparent), transparent 68%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
}
.boot-mark { box-shadow: 0 18px 42px color-mix(in srgb, var(--primary) 28%, transparent); }
.button-primary { box-shadow: 0 12px 24px color-mix(in srgb, var(--primary) 20%, transparent); }

.appearance-setting { padding: 15px 16px; border-bottom: 1px solid var(--line); }
.appearance-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.appearance-heading > span { min-width: 0; }
.appearance-heading b { display: block; font-size: 11px; }
.appearance-heading small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.appearance-heading strong { flex: 0 0 auto; color: var(--primary); font-size: 9px; font-weight: 850; }
.theme-choice-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-top: 12px; }
.theme-choice { min-width: 0; padding: 8px; color: var(--muted); text-align: center; border-radius: 15px; background: var(--surface-2); border: 1px solid var(--line); transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.theme-choice:active { transform: scale(.98); }
.theme-choice[aria-pressed="true"] { color: var(--text); border-color: color-mix(in srgb, var(--primary) 70%, var(--line)); background: color-mix(in srgb, var(--primary) 8%, var(--surface-2)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 10%, transparent); }
.theme-choice b { display: block; margin-top: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.theme-preview { position: relative; height: 54px; display: block; overflow: hidden; border-radius: 11px; border: 1px solid rgba(127,145,171,.2); }
.theme-preview::before { content:''; position:absolute; inset:7px 7px auto; height:7px; border-radius:4px; }
.theme-preview i { position:absolute; display:block; height:7px; border-radius:4px; }
.theme-preview i:nth-child(1) { left:7px; right:23px; top:22px; }
.theme-preview i:nth-child(2) { left:21px; right:7px; top:34px; }
.theme-preview i:nth-child(3) { width:14px; height:14px; left:7px; bottom:5px; border:2px solid var(--primary); border-radius:50%; background:transparent; }
.theme-preview-light { background:#eef3f9; }
.theme-preview-light::before,.theme-preview-light i:nth-child(1),.theme-preview-light i:nth-child(2) { background:#fff; }
.theme-preview-dark { background:#101827; }
.theme-preview-dark::before,.theme-preview-dark i:nth-child(1),.theme-preview-dark i:nth-child(2) { background:#28364a; }
.theme-preview-system { background:linear-gradient(90deg,#eef3f9 0 50%,#101827 50% 100%); }
.theme-preview-system::before { background:linear-gradient(90deg,#fff 0 50%,#28364a 50% 100%); }
.theme-preview-system i:nth-child(1),.theme-preview-system i:nth-child(2) { background:linear-gradient(90deg,#fff 0 50%,#28364a 50% 100%); }
.accent-palette { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.accent-swatch { position: relative; width: 25px; height: 25px; flex: 0 0 auto; padding: 0; border-radius: 50%; background: var(--swatch); border: 2px solid transparent; box-shadow: 0 0 0 0 transparent; transition: transform .15s ease, box-shadow .15s ease; }
.accent-swatch:active { transform: scale(.9); }
.accent-swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--swatch); }
.accent-swatch[aria-pressed="true"]::after { content:''; position:absolute; inset:7px; border-radius:50%; border:2px solid rgba(255,255,255,.92); }
.accent-spectrum { background: conic-gradient(#5b8cff,#45bfe8,#61b96b,#c5a252,#d85c53,#c96c92,#9474cf,#5b8cff); }
.accent-spectrum[aria-pressed="true"] { box-shadow:0 0 0 3px var(--surface),0 0 0 5px var(--primary); }

/* Project-wide totals, intentionally compact and non-interactive. */
.project-ticker { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 14px; margin-top: 14px; padding: 10px 12px; overflow: hidden; border-radius: 15px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.project-ticker-label { display: inline-flex; align-items: center; gap: 7px; padding-right: 13px; white-space: nowrap; color: var(--muted); border-right: 1px solid var(--line); font-size: 7px; font-weight: 900; letter-spacing: .14em; }
.project-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.project-ticker-viewport { min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent); -webkit-mask-image: linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent); }
.project-ticker-track { width: max-content; display: flex; align-items: center; gap: 28px; color: var(--text-soft); font-size: 9px; font-weight: 750; animation: project-ticker-scroll var(--project-ticker-duration, 32s) linear infinite; will-change: transform; }
.project-ticker-set { display: inline-flex; align-items: center; gap: 28px; white-space: nowrap; }
.project-ticker-metric { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.project-ticker-track b { color: var(--primary); font-size: 10px; }
.project-ticker-track i { width: 4px; height: 4px; display: inline-block; border-radius: 50%; background: var(--primary); opacity: .65; }
@keyframes project-ticker-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 14px)); } }

@media (max-width: 520px) {
  .theme-choice-grid { gap: 7px; }
  .theme-choice { padding: 6px; }
  .theme-preview { height: 48px; }
  .accent-palette { gap: 11px; }
  .accent-swatch { width: 23px; height: 23px; }
  .project-ticker { grid-template-columns: 1fr; gap: 8px; padding: 9px 10px; }
  .project-ticker-label { padding-right: 0; padding-bottom: 7px; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-ticker-track { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-ticker-viewport { overflow-x: auto; mask-image:none; -webkit-mask-image:none; scrollbar-width:none; }
  .project-ticker-viewport::-webkit-scrollbar { display:none; }
  .project-ticker-track { animation:none; }
  .project-ticker-track [data-ticker-copy="clone"] { display:none; }
}

/* v0.42.0 — publishing accounts, converter and audio-video builder */
.social-account-list { display: grid; gap: 9px; margin-top: 12px; }
.social-account-card { display: grid; grid-template-columns: 42px minmax(0,1fr) 38px; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.social-account-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: color-mix(in srgb, var(--primary) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--line)); }
.social-account-icon .apple-emoji { width: 25px; height: 25px; }
.social-account-card > div { min-width: 0; }
.social-account-card b,.social-account-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-account-card b { color: var(--text); font-size: 10px; }
.social-account-card small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.icon-button.danger { width: 36px; height: 36px; border-radius: 12px; color: var(--danger); font-size: 20px; line-height: 1; }
.social-platform-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 12px 0 14px; }
.social-platform-tabs button { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 8px; color: var(--muted); border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 9px; font-weight: 850; }
.social-platform-tabs button.active { color: var(--text); border-color: color-mix(in srgb, var(--primary) 55%, var(--line)); background: color-mix(in srgb, var(--primary) 9%, var(--surface-2)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 8%, transparent); }
.social-platform-tabs .apple-emoji { width: 21px; height: 21px; }
.social-connect-panel { display: none; }
.social-connect-panel.active { display: block; }
.oauth-connect-card { display: grid; grid-template-columns: 50px minmax(0,1fr); align-items: center; gap: 12px; padding: 14px; border-radius: 17px; background: var(--surface-2); border: 1px solid var(--line); }
.oauth-connect-card > span { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; background: color-mix(in srgb, var(--primary) 9%, var(--surface)); }
.oauth-connect-card .apple-emoji { width: 29px; height: 29px; }
.oauth-connect-card b,.oauth-connect-card small { display: block; }
.oauth-connect-card b { font-size: 11px; }
.oauth-connect-card small { margin-top: 5px; color: var(--muted); font-size: 8px; line-height: 1.55; }
.social-coming-soon { padding-top: 10px; }
.option-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 12px; }
.check-option { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 11px 12px; border-radius: 15px; color: var(--text-soft); background: var(--surface-2); border: 1px solid var(--line); font-size: 9px; font-weight: 750; cursor: pointer; }
.check-option input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--primary); }
.check-option:has(input:checked) { color: var(--text); border-color: color-mix(in srgb, var(--primary) 55%, var(--line)); background: color-mix(in srgb, var(--primary) 8%, var(--surface-2)); }
.browser-view-only #instagramConnect,.browser-view-only #tiktokConnect,.browser-view-only #youtubeConnect,.browser-view-only #converterSubmit,.browser-view-only #youtubePublishSubmit,.browser-view-only [data-social-remove] { opacity:.46; pointer-events:none; filter:saturate(.55); }
@media (max-width: 520px) {
  .social-platform-tabs button { flex-direction: column; gap: 4px; padding: 9px 5px; font-size: 8px; }
  .option-row { grid-template-columns: 1fr; }
}

/* v0.42.1 — publication workspace */
.social-summary-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:12px; }
.social-summary-grid article { min-width:0; padding:14px; border:1px solid var(--line); border-radius:17px; background:var(--surface); box-shadow:var(--shadow-soft); }
.social-summary-grid b,.social-summary-grid small { display:block; }
.social-summary-grid b { color:var(--text); font-size:18px; }
.social-summary-grid small { margin-top:5px; color:var(--muted); font-size:8px; text-transform:uppercase; letter-spacing:.08em; }
.social-account-picker { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin:10px 0 14px; }
.social-account-choice { min-width:0; display:grid; grid-template-columns:18px 38px minmax(0,1fr); align-items:center; gap:9px; padding:10px 11px; border:1px solid var(--line); border-radius:15px; background:var(--surface-2); cursor:pointer; }
.social-account-choice:has(input:checked) { border-color:color-mix(in srgb,var(--primary) 55%,var(--line)); background:color-mix(in srgb,var(--primary) 8%,var(--surface-2)); }
.social-account-choice input { width:16px; height:16px; accent-color:var(--primary); }
.social-account-choice > span { width:38px; height:38px; display:grid; place-items:center; border-radius:12px; background:var(--surface); }
.social-account-choice .apple-emoji { width:23px; height:23px; }
.social-account-choice div { min-width:0; }
.social-account-choice b,.social-account-choice small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.social-account-choice b { font-size:9px; }
.social-account-choice small { margin-top:3px; color:var(--muted); font-size:7px; }
.social-platform-settings { margin-top:11px; padding:0 12px; border:1px solid var(--line); border-radius:15px; background:var(--surface-2); }
.social-platform-settings summary,.social-connect-details > summary { padding:13px 0; color:var(--text-soft); font-size:9px; font-weight:850; cursor:pointer; }
.social-platform-settings[open] { padding-bottom:12px; }
.social-connect-details { padding-top:0; }
.social-connect-details[open] { padding-bottom:15px; }
.social-post-list { display:grid; gap:10px; margin-top:12px; }
.social-post-card { padding:13px; border:1px solid var(--line); border-radius:17px; background:var(--surface-2); }
.social-post-card header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.social-post-card header > div { min-width:0; }
.social-post-card header b,.social-post-card header small { display:block; }
.social-post-card header b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; }
.social-post-card header small { margin-top:4px; color:var(--muted); font-size:7px; }
.status-pill { display:inline-flex; align-items:center; justify-content:center; min-height:22px; padding:0 8px; border:1px solid var(--line); border-radius:999px; color:var(--muted); background:var(--surface); font-size:7px; font-style:normal; font-weight:900; white-space:nowrap; }
.status-pill.published,.status-pill.active,.status-pill.completed { color:var(--success); border-color:color-mix(in srgb,var(--success) 30%,var(--line)); }
.status-pill.failed,.status-pill.reauth_required { color:var(--danger); border-color:color-mix(in srgb,var(--danger) 35%,var(--line)); }
.status-pill.running,.status-pill.queued,.status-pill.scheduled,.status-pill.retry { color:var(--primary); border-color:color-mix(in srgb,var(--primary) 35%,var(--line)); }
.social-publication-list { display:grid; gap:6px; margin-top:11px; }
.social-publication-row { display:grid; grid-template-columns:28px minmax(0,1fr) auto 24px; align-items:center; gap:8px; min-height:38px; padding:6px 7px; border-radius:12px; background:var(--surface); }
.social-publication-row > span { width:28px; height:28px; display:grid; place-items:center; }
.social-publication-row .apple-emoji { width:20px; height:20px; }
.social-publication-row b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:8px; }
.social-publication-row a { color:var(--primary); text-align:center; font-size:15px; }
.social-stat-row { display:flex; gap:14px; margin-top:10px; color:var(--muted); font-size:8px; }
.social-stat-row b { color:var(--text-soft); }
.social-post-card footer { display:flex; flex-wrap:wrap; gap:7px; margin-top:11px; }
.social-post-card footer button,.text-button { padding:7px 9px; border:1px solid var(--line); border-radius:10px; color:var(--text-soft); background:var(--surface); font-size:8px; font-weight:800; }
.browser-view-only #socialPublishSubmit,.browser-view-only [data-social-action] { opacity:.46; pointer-events:none; }
@media (max-width:520px) { .social-account-picker { grid-template-columns:1fr; } .social-summary-grid { gap:7px; } .social-summary-grid article { padding:11px; } .social-summary-grid b { font-size:15px; } }
.status-pill.partial { color:var(--warning); border-color:color-mix(in srgb,var(--warning) 35%,var(--line)); }
.status-pill.canceled,.status-pill.disconnected { color:var(--muted); border-color:var(--line); }
.social-publication-entry { border-radius:12px; overflow:hidden; background:var(--surface); }
.social-publication-entry .social-publication-row { border-radius:12px; }
.social-publication-error { display:block; margin:-1px 10px 8px 43px; color:var(--danger); font-size:7px; line-height:1.45; overflow-wrap:anywhere; }
.social-post-error { margin-top:10px; padding:9px 10px; border:1px solid color-mix(in srgb,var(--danger) 30%,var(--line)); border-radius:12px; color:var(--danger); background:color-mix(in srgb,var(--danger) 7%,var(--surface)); font-size:8px; line-height:1.5; overflow-wrap:anywhere; }
