:root {
  --maroon: #6d0b1b;
  --maroon-dark: #3c0610;
  --maroon-bright: #991d39;
  --gold: #e0ae47;
  --ink: #21171a;
  --muted: #716166;
  --paper: #f7f3f3;
  --surface: #ffffff;
  --line: #eadcdf;
  --success: #176a4b;
  --danger: #af2436;
  --shadow: 0 18px 55px rgba(61, 18, 28, .09);
  --shadow-lg: 0 28px 80px rgba(42, 4, 12, .24);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "PP Neue Montreal", "Neue Montreal", Inter, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; }

.portal-header { width: min(1320px, calc(100% - 40px)); min-height: 82px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.portal-header.compact { min-height: 74px; }
.portal-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.portal-brand > span:last-child { display: grid; gap: 1px; }
.portal-brand strong { font-size: 15px; letter-spacing: -.2px; }
.portal-brand small { color: var(--muted); font-size: 11px; }
.portal-brand.small strong { max-width: min(48vw, 520px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-mark { width: 74px; height: 42px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: #050505; box-shadow: 0 8px 20px rgba(5, 5, 5, .18); }
.portal-mark img { width: 66px; height: 34px; object-fit: contain; }
.portal-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.identity-chip { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.78); padding: 8px 12px; color: var(--muted); font-size: 12px; font-weight: 700; }
.outline-button, .text-button, .primary-button, .icon-button { border: 0; cursor: pointer; text-decoration: none; font-weight: 800; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.outline-button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.72); font-size: 12px; }
.outline-button:hover, .text-button:hover { background: #fff; }
.text-button { padding: 9px 6px; background: transparent; color: var(--maroon); font-size: 12px; }
.primary-button { min-height: 44px; padding: 0 18px; border-radius: 12px; background: linear-gradient(145deg, var(--maroon-bright), var(--maroon)); color: #fff; box-shadow: 0 10px 24px rgba(100, 12, 32, .18); }
.primary-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(100, 12, 32, .24); }
.primary-button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.icon-button { width: 38px; height: 38px; border-radius: 10px; background: #f7f1ef; color: var(--muted); font-size: 22px; }

.portal-page main { width: min(1320px, calc(100% - 40px)); margin: 0 auto; }
.portal-hero { min-height: 420px; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); align-items: center; gap: 44px; padding: clamp(44px, 7vw, 82px); border-radius: 28px; color: #fff; background: radial-gradient(circle at 88% 8%, rgba(224,174,71,.24), transparent 30%), linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 60%, #8a1731 100%); box-shadow: var(--shadow-lg); }
.portal-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22; background-image: linear-gradient(120deg, transparent 45%, rgba(255,255,255,.08) 45%, rgba(255,255,255,.08) 46%, transparent 46%); background-size: 46px 46px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: 11px; line-height: 1; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow.dark { color: var(--maroon-bright); }
.hero-copy h1 { max-width: 780px; margin: 0; font-size: clamp(42px, 6vw, 74px); font-weight: 700; letter-spacing: -.055em; line-height: .96; }
.hero-lead { max-width: 720px; margin: 24px 0 0; color: rgba(255,255,255,.79); font-size: clamp(16px, 2vw, 19px); line-height: 1.7; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; color: rgba(255,255,255,.88); font-size: 12px; font-weight: 750; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(224,174,71,.16); }
.hero-emblem { position: relative; z-index: 1; width: min(28vw, 320px); aspect-ratio: 1; justify-self: center; display: grid; place-items: center; }
.emblem-ring { position: absolute; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.ring-one { inset: 0; animation: float 8s ease-in-out infinite; }
.ring-two { inset: 14%; border-color: rgba(224,174,71,.42); animation: float 8s 1.4s ease-in-out infinite reverse; }
.emblem-core { width: 68%; aspect-ratio: 1; display: grid; place-content: center; gap: 12px; padding: 25px; text-align: center; border: 1px solid rgba(255,255,255,.2); border-radius: 28px; background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.03)); box-shadow: inset 0 0 30px rgba(255,255,255,.06), 0 22px 50px rgba(0,0,0,.25); backdrop-filter: blur(10px); }
.emblem-core img { width: 100%; height: auto; object-fit: contain; }
.emblem-core small { color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .28em; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(4deg); } }

.services-section { padding: 76px 0 28px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 45px); font-weight: 700; letter-spacing: -.045em; }
.section-heading > p { max-width: 490px; margin: 0; color: var(--muted); line-height: 1.65; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.service-card { min-height: 290px; position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.service-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--accent, var(--maroon)); }
.service-card:hover { transform: translateY(-5px); border-color: #d9c6c5; box-shadow: 0 25px 65px rgba(61,18,28,.14); }
.service-card[data-accent="navy"] { --accent: #263e62; }
.service-card[data-accent="gold"] { --accent: var(--gold); }
.service-card[data-accent="yellow"] { --accent: var(--gold); }
.service-card-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: #f5e8eb; color: var(--maroon); font-weight: 950; letter-spacing: -.04em; }
.service-card[data-accent="navy"] .service-card-icon { background: #edf2f8; color: #263e62; }
.service-card[data-accent="gold"] .service-card-icon { background: #fff5db; color: #8a6100; }
.service-card[data-accent="yellow"] .service-card-icon { background: var(--gold); color: #050505; }
.service-card h3 { margin: 28px 0 9px; font-size: 23px; letter-spacing: -.035em; }
.service-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.service-card-footer { margin-top: auto; padding-top: 25px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--maroon); font-size: 12px; font-weight: 900; }
.service-card-footer span:last-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #f7eeee; font-size: 17px; }
.service-card.locked { opacity: .68; pointer-events: none; filter: grayscale(.3); }

.status-panel { min-height: 92px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 22px; border: 1px dashed #d9c9c5; border-radius: 18px; background: rgba(255,255,255,.52); color: var(--muted); }
.status-panel.error { color: var(--danger); border-color: #e8b5bd; background: #fff2f4; }
.spinner { width: 18px; height: 18px; border: 2px solid #dccbc7; border-top-color: var(--maroon); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.portal-note { margin: 38px 0 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.portal-note > div { display: flex; align-items: center; gap: 14px; }
.portal-note strong { font-size: 13px; }
.portal-note p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.note-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #f5e8eb; color: var(--maroon); font-weight: 900; }
.privacy-label { color: var(--success); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.portal-footer { width: min(1320px, calc(100% - 40px)); margin: 0 auto; padding: 25px 0 32px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.portal-footer span:first-child { color: var(--ink); font-weight: 900; }

.admin-shell { width: min(1120px, calc(100% - 40px)); margin: 34px auto 90px; }
.admin-intro { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.admin-intro h1 { margin: 0; font-size: clamp(38px, 5vw, 58px); font-weight: 700; letter-spacing: -.05em; }
.admin-intro p:last-child { max-width: 680px; margin: 14px 0 0; color: var(--muted); line-height: 1.65; }
.notice { margin: 0 0 18px; padding: 14px 16px; border: 1px solid #bbdfcf; border-radius: 12px; background: #effaf5; color: var(--success); font-size: 13px; font-weight: 700; }
.notice.error { border-color: #efc1c7; background: #fff0f2; color: var(--danger); }
.admin-card { margin-bottom: 22px; padding: 27px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.upload-panel { border-top: 5px solid var(--maroon); }
.card-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.card-heading h2 { margin: 0; font-size: 23px; letter-spacing: -.03em; }
.card-heading p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 8px; margin-bottom: 16px; color: var(--ink); font-size: 12px; font-weight: 850; }
label small { color: var(--muted); font-size: 11px; font-weight: 500; }
input, select, textarea { width: 100%; border: 1px solid #dbcfcf; border-radius: 11px; outline: 0; background: #fff; color: var(--ink); padding: 12px 13px; resize: vertical; transition: border-color .15s ease, box-shadow .15s ease; }
input:focus, select:focus, textarea:focus { border-color: var(--maroon-bright); box-shadow: 0 0 0 4px rgba(144,25,50,.09); }
.file-field { min-height: 90px; grid-template-columns: auto 1fr; align-items: center; gap: 15px; padding: 16px; border: 1px dashed #cdbbb8; border-radius: 14px; background: #fbf8f7; cursor: pointer; }
.file-field input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-field > span:nth-child(2) { display: grid; gap: 3px; }
.upload-symbol { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: #f2e4e7; color: var(--maroon); font-size: 12px; font-weight: 950; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.access-section { padding-top: 32px; }
.admin-heading { align-items: start; }
.access-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.access-card { padding: 23px; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: var(--shadow); }
.access-card-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 17px; }
.access-card-head .service-card-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; font-size: 11px; }
.access-card-copy { min-width: 0; flex: 1; }
.access-card h3 { margin: 0; font-size: 16px; }
.access-card p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.access-card label { margin: 0; }
.card-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.small-button { min-height: 31px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--maroon); padding: 6px 9px; font-family: inherit; font-size: 11px; font-weight: 800; line-height: 1; text-decoration: none; cursor: pointer; }
.small-button:hover { border-color: #d4b8be; background: #fff8f9; }
.danger-button { color: var(--danger); }
.sticky-save { position: sticky; bottom: 16px; z-index: 10; margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 16px 15px 20px; border: 1px solid #d8c8c5; border-radius: 16px; background: rgba(255,255,255,.92); box-shadow: 0 18px 50px rgba(61,18,28,.16); backdrop-filter: blur(14px); }
.sticky-save span { color: var(--muted); font-size: 12px; }

.admin-intro-actions, .manager-heading-actions, .manager-toolbar-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.file-manager-card { overflow: hidden; padding: 0; }
.file-manager-heading { margin: 0; padding: 27px; border-bottom: 1px solid var(--line); }
.manager-session-badge { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.manager-session-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #a78f95; }
.manager-session-badge.unlocked::before { background: #5cc996; box-shadow: 0 0 0 4px rgba(92,201,150,.12); }
.manager-lock-panel { min-height: 230px; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(280px, .75fr); align-items: center; gap: 24px; padding: 34px 27px; }
.manager-lock-icon { width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 20px; color: var(--maroon); background: #f8ecef; font-size: 17px; font-weight: 950; letter-spacing: -.04em; }
.manager-lock-copy h3, .manager-upload-row h3 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.manager-lock-copy p, .manager-upload-row > div > p:last-child { max-width: 530px; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.manager-unlock-form { display: grid; grid-template-columns: 1fr; }
.manager-unlock-form label { margin-bottom: 10px; }
.manager-unlock-form .primary-button { width: 100%; }
.file-manager-workspace { padding: 0 27px 27px; }
.manager-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 -27px; padding: 16px 27px; border-bottom: 1px solid var(--line); }
.manager-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.manager-tab { min-height: 34px; border: 1px solid transparent; border-radius: 999px; padding: 0 11px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 850; cursor: pointer; }
.manager-tab span { display: inline-grid; min-width: 20px; height: 20px; margin-left: 5px; place-items: center; border-radius: 999px; background: rgba(109,11,27,.08); font-size: 9px; }
.manager-tab.active { color: var(--maroon); border-color: #e2c9ce; background: #fff7f8; }
.manager-search { width: min(210px, 100%); margin: 0; }
.manager-search input { min-height: 38px; padding: 8px 11px; }
.manager-upload-row { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(480px, 1.35fr); align-items: center; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.manager-upload-row .eyebrow { margin-bottom: 9px; }
.manager-upload-form { display: grid; grid-template-columns: minmax(140px, .7fr) minmax(190px, 1fr) auto auto; align-items: end; gap: 10px; }
.manager-upload-form label { margin: 0; }
.manager-file-picker { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; overflow: hidden; padding: 9px 12px; border: 1px dashed #ccb9bd; border-radius: 11px; cursor: pointer; }
.manager-file-picker > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manager-file-picker small { flex: 0 0 auto; }
.manager-file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.manager-grid { min-height: 160px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 22px; }
.manager-grid > .status-panel { grid-column: 1 / -1; }
.manager-file-card { min-width: 0; min-height: 182px; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.76); }
.manager-file-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.manager-file-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: var(--maroon); background: #f6e9ec; font-size: 9px; font-weight: 950; }
.manager-file-category { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.manager-file-card h4 { margin: 20px 0 5px; overflow-wrap: anywhere; font-size: 14px; line-height: 1.25; }
.manager-file-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.manager-file-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 18px; }
.manager-empty { grid-column: 1 / -1; min-height: 160px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); text-align: center; }

.service-page { height: 100vh; overflow: hidden; background: var(--paper); }
.service-bar { height: 72px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: #fff; }
.service-shell { height: calc(100vh - 72px); position: relative; }
.service-shell iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.service-loading { position: absolute; inset: 24px; }

.teams-landing-page { --landing-night: #180106; --landing-wine: #2d030c; --landing-red: #8f1029; --landing-red-bright: #bc2343; min-height: 100vh; overflow-x: hidden; background: var(--landing-night); color: #fff; }
.landing-announcement { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 7px 20px; background: linear-gradient(90deg, #741025, #a51c3a, #741025); color: #f9e8ec; font-size: 10px; font-weight: 700; letter-spacing: .045em; }
.landing-announcement a { color: #fff; font-weight: 900; text-decoration: none; }
.landing-topbar { min-height: 88px; color: #fff; }
.landing-brand strong { color: #fff; font-size: 16px; }
.landing-brand small { color: #bd9aa3; }
.landing-brand .portal-mark { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); box-shadow: none; }
.landing-nav { gap: 26px; }
.landing-nav-link { color: #cdb0b7; font-size: 12px; font-weight: 700; text-decoration: none; transition: color .16s ease; }
.landing-nav-link:hover { color: #fff; }
.landing-login { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; color: var(--landing-wine); background: #fff; font-weight: 850; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.landing-login:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(0,0,0,.22); }
.landing-login.compact { min-height: 42px; padding: 0 16px; border-radius: 9px; font-size: 12px; }
.google-mark { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #e5e5e5; border-radius: 6px; background: #fff; color: #4285f4; font-size: 11px; font-weight: 950; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.google-mark img { width: 14px; height: 14px; display: block; }
.teams-landing-shell { width: min(1440px, calc(100% - 40px)); margin: 0 auto; }
.teams-landing-hero { min-height: 690px; position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr); align-items: center; gap: clamp(38px, 6vw, 90px); overflow: hidden; padding: clamp(54px, 7vw, 100px); border: 1px solid rgba(255,255,255,.09); border-radius: 36px; background: radial-gradient(circle at 84% 2%, rgba(191,40,73,.34), transparent 30%), radial-gradient(circle at 25% 115%, rgba(143,16,41,.4), transparent 38%), linear-gradient(142deg, #210208 0%, #3a0611 52%, #1a0106 100%); box-shadow: 0 42px 100px rgba(0,0,0,.38); }
.teams-landing-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(90deg, #000, transparent 58%); }
.landing-hero-copy { position: relative; z-index: 2; }
.landing-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: #dc9eac; font-size: 10px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.landing-kicker > span { width: 24px; height: 1px; background: currentColor; }
.landing-kicker.dark { color: var(--landing-red); }
.landing-hero-copy h1 { max-width: 760px; margin: 0; font-size: clamp(54px, 6.8vw, 98px); font-weight: 650; line-height: .9; letter-spacing: -.068em; }
.landing-hero-copy h1 em { color: #df506e; font-family: Georgia, serif; font-weight: 400; }
.landing-hero-lead { max-width: 660px; margin: 28px 0 0; color: #d8bbc2; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.72; }
.landing-cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 38px; }
.hero-login { min-width: 272px; min-height: 66px; justify-content: flex-start; padding: 0 16px; border-radius: 12px; }
.hero-login > span:nth-child(2) { display: grid; gap: 3px; }
.hero-login small { color: #8b6e75; font-size: 9px; font-weight: 650; }
.hero-login b { margin-left: auto; font-size: 18px; }
.landing-text-link { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-size: 12px; font-weight: 800; text-decoration: none; }
.landing-text-link span { color: #df506e; }
.landing-trust { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 34px; color: #b8969f; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .055em; }
.landing-trust span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 8px 2px 0; border-radius: 50%; background: #df506e; box-shadow: 0 0 0 4px rgba(223,80,110,.1); }
.workspace-visual { position: relative; z-index: 2; perspective: 1400px; }
.workspace-window { position: relative; z-index: 2; overflow: hidden; border: 1px solid rgba(255,255,255,.19); border-radius: 20px; background: #f8f5f5; color: var(--ink); box-shadow: -24px 42px 90px rgba(0,0,0,.42); transform: rotateY(-4deg) rotateX(1deg); }
.window-bar { min-height: 44px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 0 15px; border-bottom: 1px solid #eadfe1; background: #fff; color: #88757a; font-size: 9px; }
.window-bar > div { display: flex; gap: 5px; }
.window-bar i { width: 7px; height: 7px; border-radius: 50%; background: #d5c8ca; }
.window-bar i:first-child { background: #b92645; }
.window-bar b { justify-self: end; padding: 5px 8px; border-radius: 999px; background: #edf7f2; color: #287154; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.window-body { min-height: 440px; display: grid; grid-template-columns: 72px 1fr; }
.window-rail { display: flex; align-items: center; flex-direction: column; gap: 12px; padding: 18px 12px; background: #2a040c; }
.window-rail img { width: 48px; height: 28px; object-fit: contain; margin-bottom: 10px; }
.window-rail span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #b9919a; font-size: 8px; font-weight: 900; }
.window-rail span.active { background: #a11d3a; color: #fff; box-shadow: 0 10px 18px rgba(0,0,0,.2); }
.window-rail i { width: 5px; height: 5px; margin-top: auto; border-radius: 50%; background: #53b98b; box-shadow: 0 0 0 4px rgba(83,185,139,.12); }
.window-content { padding: 30px; }
.window-welcome > span { color: #a11d3a; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.window-welcome h2 { margin: 9px 0 6px; font-size: clamp(24px, 2.7vw, 37px); line-height: 1; letter-spacing: -.045em; }
.window-welcome p { margin: 0; color: #8b7b7f; font-size: 10px; }
.window-services { display: grid; gap: 9px; margin-top: 27px; }
.window-services article { min-height: 64px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 11px; padding: 10px 13px; border: 1px solid #e7dcde; border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(73,21,32,.04); }
.window-services article.featured { color: #fff; border-color: #781228; background: linear-gradient(135deg, #8f1029, #5d091b); box-shadow: 0 15px 28px rgba(109,11,27,.2); }
.window-services article > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #f5e8eb; color: #8f1029; font-size: 8px; font-weight: 900; }
.window-services article.featured > span { background: rgba(255,255,255,.13); color: #fff; }
.window-services article div { min-width: 0; display: grid; gap: 3px; }
.window-services article b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.window-services article small { color: #9a898d; font-size: 8px; }
.window-services article.featured small { color: #e3bdc6; }
.window-services article i { color: #a11d3a; font-size: 9px; font-style: normal; font-weight: 900; }
.window-services article.featured i { color: #fff; }
.visual-orbit { position: absolute; z-index: 1; border: 1px solid rgba(224,87,116,.22); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 280px; height: 280px; top: -80px; right: -110px; }
.orbit-two { width: 160px; height: 160px; bottom: -60px; left: -55px; }
.landing-signal-strip { display: grid; grid-template-columns: repeat(3, 1fr) 1.35fr; align-items: center; gap: 20px; padding: 54px clamp(20px, 5vw, 70px); }
.landing-signal-strip > div { display: flex; align-items: center; gap: 13px; }
.landing-signal-strip strong { color: #fff; font-size: 29px; font-weight: 650; letter-spacing: -.04em; }
.landing-signal-strip span { color: #987b82; font-size: 9px; line-height: 1.4; text-transform: uppercase; letter-spacing: .08em; }
.landing-signal-strip p { justify-self: end; margin: 0; color: #977980; font-family: Georgia, serif; font-size: 19px; font-style: italic; line-height: 1.35; }
.landing-signal-strip p b { color: #fff; font-weight: 400; }
.landing-workspace { padding: clamp(70px, 9vw, 130px); border-radius: 36px; background: #f7f2f2; color: var(--ink); }
.landing-section-intro { display: grid; grid-template-columns: 1.1fr .9fr; column-gap: clamp(40px, 10vw, 150px); align-items: end; }
.landing-section-intro .landing-kicker { grid-column: 1 / -1; }
.landing-section-intro h2 { margin: 0; font-size: clamp(50px, 7vw, 92px); font-weight: 650; line-height: .91; letter-spacing: -.065em; }
.landing-section-intro > p:last-child { max-width: 500px; margin: 0 0 5px; color: #75656a; font-size: 15px; line-height: 1.75; }
.landing-capability-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 70px; }
.landing-capability-grid article { min-height: 310px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 32px; border: 1px solid #eadcdf; border-radius: 22px; background: #fff; box-shadow: 0 20px 50px rgba(61,18,28,.06); }
.landing-capability-grid article.capability-large { grid-row: span 2; min-height: 634px; color: #fff; border-color: #6f0c22; background: radial-gradient(circle at 82% 15%, rgba(202,57,88,.42), transparent 32%), linear-gradient(145deg, #38050f, #710d24); }
.landing-capability-grid article.capability-wide { min-height: 300px; }
.capability-number { color: #a1878e; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.capability-large .capability-number { color: #dc9eac; }
.landing-capability-grid article p { margin: 0 0 13px; color: var(--landing-red); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.landing-capability-grid article.capability-large p { color: #eea7b7; }
.landing-capability-grid h3 { max-width: 490px; margin: 0; font-size: clamp(25px, 3vw, 42px); line-height: 1.05; letter-spacing: -.045em; }
.landing-capability-grid article:not(.capability-large) h3 { font-size: clamp(23px, 2.4vw, 34px); }
.landing-capability-grid article div > span { display: block; max-width: 480px; margin-top: 18px; color: #dbc2c8; font-size: 13px; line-height: 1.65; }
.landing-capability-grid article:not(.capability-large) div > span { color: var(--muted); }
.landing-capability-grid article > b { align-self: flex-end; color: #f0e2e5; font-size: clamp(52px, 7vw, 100px); line-height: .8; letter-spacing: -.08em; }
.landing-capability-grid .capability-large > b { color: rgba(255,255,255,.1); font-size: clamp(84px, 12vw, 170px); }
.guideline-card { background: linear-gradient(135deg, #fff, #f9f3e4) !important; }
.guideline-card > b { color: #e6d8a8 !important; }
.landing-security { min-height: 650px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(50px, 10vw, 160px); padding: clamp(70px, 9vw, 130px); border-bottom: 1px solid rgba(255,255,255,.08); }
.security-copy h2 { max-width: 660px; margin: 0; font-size: clamp(48px, 6vw, 84px); font-weight: 650; line-height: .92; letter-spacing: -.062em; }
.security-copy > p:not(.landing-kicker) { max-width: 620px; margin: 25px 0 0; color: #b99aa2; font-size: 15px; line-height: 1.75; }
.security-copy ul { display: grid; gap: 18px; margin: 35px 0 0; padding: 0; list-style: none; }
.security-copy li { display: flex; align-items: flex-start; gap: 13px; }
.security-copy li > span { width: 25px; height: 25px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; color: #e45b78; font-size: 10px; }
.security-copy li div { display: grid; gap: 4px; }
.security-copy li b { font-size: 13px; }
.security-copy li small { color: #997c83; font-size: 11px; }
.security-access-card { max-width: 450px; justify-self: end; padding: 34px; border: 1px solid rgba(255,255,255,.13); border-radius: 24px; background: linear-gradient(150deg, rgba(255,255,255,.1), rgba(255,255,255,.035)); box-shadow: 0 35px 80px rgba(0,0,0,.3); backdrop-filter: blur(18px); }
.access-card-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 45px; }
.access-card-top span { width: 45px; height: 30px; display: grid; place-items: center; border-radius: 7px; background: #950f2d; font-size: 10px; font-weight: 900; }
.access-card-top small { color: #a98991; font-size: 8px; letter-spacing: .13em; }
.access-card-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: #fff; color: #4285f4; font-size: 20px; font-weight: 900; }
.access-card-icon img { width: 29px; height: 29px; display: block; }
.security-access-card h3 { margin: 24px 0 9px; font-size: 28px; letter-spacing: -.035em; }
.security-access-card p { margin: 0 0 24px; color: #a98c94; font-size: 12px; line-height: 1.55; }
.access-login { min-height: 55px; width: 100%; padding: 0 13px; border-radius: 10px; font-size: 12px; }
.access-login b { margin-left: auto; font-size: 17px; }
.security-access-card > small { display: block; margin-top: 13px; color: #846a71; font-size: 9px; text-align: center; }
.landing-final-cta { position: relative; overflow: hidden; display: grid; grid-template-columns: .5fr 1fr auto; align-items: end; gap: 30px; padding: clamp(60px, 9vw, 120px); border-radius: 36px; background: radial-gradient(circle at 85% 0%, rgba(255,255,255,.13), transparent 28%), linear-gradient(135deg, #971331, #650b20); }
.landing-final-cta::after { content: "INB"; position: absolute; right: -3%; bottom: -28%; color: rgba(255,255,255,.045); font-size: min(31vw, 430px); font-weight: 900; letter-spacing: -.12em; pointer-events: none; }
.landing-final-cta > p { align-self: start; margin: 6px 0 0; color: #eeb4c1; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.landing-final-cta h2 { position: relative; z-index: 1; margin: 0; font-size: clamp(48px, 7vw, 94px); font-weight: 650; line-height: .91; letter-spacing: -.065em; }
.final-login { position: relative; z-index: 1; min-height: 58px; padding: 0 16px; border-radius: 11px; font-size: 12px; }
.final-login b { margin-left: 24px; font-size: 18px; }
.landing-footer { width: min(1440px, calc(100% - 40px)); margin-top: 38px; border-color: rgba(255,255,255,.1); color: #775f65; }
.landing-footer span:first-child { color: #fff; }
.landing-footer-links { display: inline-flex; align-items: center; gap: 18px; }
.landing-footer-links a { color: inherit; text-decoration: none; }
.landing-footer-links a:hover { color: #fff; }

.legal-page { min-height: 100vh; background: #f8f4ee; color: #180106; }
.legal-topbar { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid rgba(45,3,12,.11); background: rgba(248,244,238,.92); backdrop-filter: blur(18px); }
.legal-topbar .portal-brand { color: #180106; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; color: #750d22; font-size: 12px; font-weight: 850; text-decoration: none; }
.legal-shell { width: min(960px, calc(100% - 40px)); margin: 0 auto; padding: clamp(64px, 9vw, 112px) 0 100px; }
.legal-eyebrow { margin: 0 0 16px; color: #991630; font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.legal-shell h1 { max-width: 760px; margin: 0; font-size: clamp(46px, 7vw, 82px); line-height: .94; letter-spacing: -.055em; }
.legal-intro { max-width: 720px; margin: 28px 0 0; color: #5d4b4f; font-size: clamp(17px, 2vw, 21px); line-height: 1.65; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 28px 0 0; color: #7a656a; font-size: 12px; font-weight: 750; }
.legal-content { display: grid; gap: 16px; margin-top: 62px; }
.legal-card { padding: clamp(26px, 4vw, 42px); border: 1px solid #ddd2cf; border-radius: 22px; background: #fff; box-shadow: 0 18px 45px rgba(45,3,12,.055); }
.legal-card h2 { margin: 0 0 14px; color: #750d22; font-size: 20px; letter-spacing: -.02em; }
.legal-card p, .legal-card li { color: #5d4b4f; line-height: 1.75; }
.legal-card p { margin: 0; }
.legal-card p + p { margin-top: 14px; }
.legal-card ul { margin: 12px 0 0; padding-left: 20px; }
.legal-card a { color: #8f1029; font-weight: 800; }
.legal-page .landing-footer { background: #180106; }

@media (max-width: 920px) {
  .portal-hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-emblem { display: none; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .access-grid { grid-template-columns: 1fr; }
  .manager-lock-panel { grid-template-columns: auto 1fr; }
  .manager-unlock-form { grid-column: 1 / -1; }
  .manager-toolbar, .manager-upload-row { align-items: stretch; grid-template-columns: 1fr; flex-direction: column; }
  .manager-upload-form { grid-template-columns: 1fr 1fr; }
  .manager-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teams-landing-hero { grid-template-columns: 1fr; }
  .landing-service-stack { max-width: 620px; }
  .landing-feature-grid { grid-template-columns: 1fr; }
  .workspace-visual { max-width: 680px; }
  .workspace-window { transform: none; }
  .landing-signal-strip { grid-template-columns: repeat(3, 1fr); }
  .landing-signal-strip p { display: none; }
  .landing-section-intro { grid-template-columns: 1fr; }
  .landing-section-intro > p:last-child { margin-top: 28px; }
  .landing-capability-grid { grid-template-columns: 1fr; }
  .landing-capability-grid article.capability-large { grid-row: auto; min-height: 480px; }
  .landing-security { grid-template-columns: 1fr; }
  .security-access-card { width: 100%; justify-self: start; }
  .landing-final-cta { grid-template-columns: 1fr; align-items: start; }
  .landing-final-cta > p { margin: 0; }
  .final-login { justify-self: start; }
}

@media (max-width: 1180px) and (min-width: 651px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .portal-header { width: calc(100% - 24px); min-height: 70px; }
  .portal-actions .identity-chip { display: none; }
  .portal-page main { width: calc(100% - 24px); }
  .portal-hero { padding: 38px 25px; border-radius: 22px; }
  .hero-copy h1 { font-size: 42px; }
  .trust-row { display: grid; }
  .services-section { padding-top: 50px; }
  .section-heading, .admin-intro { align-items: start; flex-direction: column; }
  .service-grid { grid-template-columns: 1fr; }
  .portal-note, .portal-footer { align-items: start; flex-direction: column; }
  .privacy-label { padding-left: 52px; }
  .admin-shell { width: calc(100% - 24px); margin-top: 25px; }
  .admin-card { padding: 21px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .sticky-save { align-items: stretch; flex-direction: column; }
  .admin-intro-actions { width: 100%; }
  .admin-intro-actions > * { flex: 1; }
  .file-manager-heading { align-items: flex-start; flex-direction: column; }
  .manager-lock-panel { grid-template-columns: 1fr; }
  .manager-lock-icon { width: 56px; height: 56px; border-radius: 16px; }
  .manager-unlock-form { grid-column: auto; }
  .file-manager-workspace { padding-inline: 18px; }
  .manager-toolbar { margin-inline: -18px; padding-inline: 18px; }
  .manager-toolbar-actions, .manager-search { width: 100%; }
  .manager-toolbar-actions > * { flex: 1; }
  .manager-upload-form, .manager-grid { grid-template-columns: 1fr; }
  .manager-upload-form .primary-button, .manager-upload-form .outline-button { width: 100%; }
  .service-bar { height: 66px; padding: 0 12px; }
  .service-shell { height: calc(100vh - 66px); }
  .landing-nav-link { display: none; }
  .teams-landing-shell { width: calc(100% - 24px); }
  .teams-landing-hero { min-height: 0; padding: 42px 24px; border-radius: 22px; }
  .landing-hero-copy h1 { font-size: 45px; }
  .landing-cta-row { align-items: flex-start; flex-direction: column; }
  .landing-service-stack { padding: 12px; border-radius: 18px; }
  .stack-service { padding: 12px; }
  .landing-services { padding-top: 58px; }
  .landing-access-band { align-items: flex-start; flex-direction: column; border-radius: 20px; }
  .card-actions { width: 100%; justify-content: flex-start; padding-left: 52px; }
  .access-card-head { flex-wrap: wrap; }
  .landing-announcement { justify-content: space-between; font-size: 8px; }
  .landing-topbar { min-height: 76px; }
  .landing-brand small { display: block; }
  .landing-login.compact { padding: 0 11px; }
  .landing-login.compact .google-mark { flex: 0 0 auto; }
  .teams-landing-hero { gap: 48px; }
  .landing-hero-copy h1 { font-size: 48px; }
  .hero-login { min-width: min(100%, 290px); }
  .landing-trust { display: grid; }
  .window-body { min-height: 400px; grid-template-columns: 52px 1fr; }
  .window-rail { padding: 14px 7px; }
  .window-rail img { width: 38px; }
  .window-rail span { width: 32px; height: 32px; }
  .window-content { padding: 22px 15px; }
  .window-bar { grid-template-columns: 1fr auto; }
  .window-bar > span { display: none; }
  .landing-signal-strip { grid-template-columns: 1fr; gap: 25px; padding: 42px 18px; }
  .landing-workspace, .landing-security, .landing-final-cta { padding: 58px 24px; border-radius: 24px; }
  .landing-section-intro h2, .security-copy h2, .landing-final-cta h2 { font-size: 48px; }
  .landing-capability-grid { margin-top: 48px; }
  .landing-capability-grid article, .landing-capability-grid article.capability-large { min-height: 360px; padding: 25px; }
  .security-access-card { padding: 25px; }
  .landing-footer { width: calc(100% - 24px); }
}

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

/* Premium INB Workspace shell shared by the portal and operational service chrome. */
.portal-page,
.admin-page,
.service-page {
  --workspace-night: #180106;
  --workspace-wine: #2d030c;
  --workspace-panel: rgba(55, 8, 18, .72);
  --workspace-panel-strong: rgba(35, 3, 10, .9);
  --workspace-line: rgba(255, 255, 255, .12);
  --workspace-text: #fff8f9;
  --workspace-muted: #c2a1aa;
  min-height: 100vh;
  color: var(--workspace-text);
  background:
    radial-gradient(circle at 88% 3%, rgba(188, 35, 67, .24), transparent 30%),
    radial-gradient(circle at 10% 82%, rgba(143, 16, 41, .22), transparent 32%),
    var(--workspace-night);
}
.portal-page::before,
.admin-page::before,
.service-page::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .09;
  background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(135deg, #000, transparent 72%);
}
.portal-page .portal-header,
.admin-page .portal-header,
.service-page .service-bar {
  color: var(--workspace-text);
  border-color: var(--workspace-line);
}
.portal-page .portal-brand strong,
.admin-page .portal-brand strong,
.service-page .portal-brand strong { color: #fff; }
.portal-page .portal-brand small,
.admin-page .portal-brand small,
.service-page .portal-brand small { color: var(--workspace-muted); }
.portal-page .portal-mark,
.admin-page .portal-mark,
.service-page .portal-mark {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.07);
  box-shadow: none;
}
.portal-page .identity-chip,
.admin-page .identity-chip,
.portal-page .outline-button,
.admin-page .outline-button,
.service-page .outline-button {
  color: #f7e8eb;
  border-color: var(--workspace-line);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(14px);
}
.portal-page .outline-button:hover,
.admin-page .outline-button:hover,
.service-page .outline-button:hover { background: rgba(255,255,255,.12); }
.portal-page .text-button,
.admin-page .text-button { color: #ee91a5; }

.portal-page .portal-hero {
  min-height: 520px;
  border: 1px solid var(--workspace-line);
  border-radius: 36px;
  background:
    radial-gradient(circle at 82% 7%, rgba(188,35,67,.36), transparent 30%),
    radial-gradient(circle at 22% 115%, rgba(143,16,41,.38), transparent 38%),
    linear-gradient(142deg, #210208 0%, #3a0611 52%, #1a0106 100%);
  box-shadow: 0 42px 100px rgba(0,0,0,.38);
}
.portal-page .portal-hero::before {
  opacity: .14;
  background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000, transparent 65%);
}
.portal-page .eyebrow { color: #dc9eac; }
.portal-page .hero-copy h1 { font-size: clamp(48px, 6.6vw, 88px); font-weight: 650; line-height: .91; letter-spacing: -.065em; }
.portal-page .hero-lead { color: #d8bbc2; }
.portal-page .trust-row { color: #c5a6ae; }
.portal-page .trust-row i { background: #df506e; box-shadow: 0 0 0 4px rgba(223,80,110,.12); }
.portal-page .ring-two { border-color: rgba(223,80,110,.42); }
.portal-page .emblem-core { border-color: rgba(255,255,255,.14); border-radius: 24px; background: linear-gradient(150deg, rgba(255,255,255,.11), rgba(255,255,255,.025)); backdrop-filter: blur(18px); }
.portal-page .emblem-core small { color: #ee9bad; }
.portal-page .section-heading h2,
.admin-page .section-heading h2,
.admin-page .admin-intro h1 { color: var(--workspace-text); }
.portal-page .section-heading > p,
.admin-page .section-heading > p,
.admin-page .admin-intro p:last-child { color: var(--workspace-muted); }
.portal-page .eyebrow.dark,
.admin-page .eyebrow.dark { color: #e96f89; }
.portal-page .service-card,
.admin-page .admin-card,
.admin-page .access-card {
  color: var(--workspace-text);
  border-color: var(--workspace-line);
  background: linear-gradient(150deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  box-shadow: 0 25px 65px rgba(0,0,0,.2);
  backdrop-filter: blur(18px);
}
.portal-page .service-card { min-height: 320px; border-radius: 22px; }
.portal-page .service-card::before { height: 4px; background: linear-gradient(90deg, #8f1029, #df506e); }
.portal-page .service-card:hover { border-color: rgba(223,80,110,.38); box-shadow: 0 28px 75px rgba(0,0,0,.3), 0 0 0 1px rgba(223,80,110,.1); }
.portal-page .service-card-icon,
.admin-page .service-card-icon { color: #f5b0bf; background: rgba(188,35,67,.17); }
.portal-page .service-card p,
.admin-page .card-heading p:last-child,
.admin-page .access-card p { color: var(--workspace-muted); }
.portal-page .service-card-footer { color: #f18ca2; }
.portal-page .service-card-footer span:last-child { background: rgba(255,255,255,.08); }
.portal-page .service-card[data-accent="yellow"] {
  color: #21171a;
  border-color: #eadfbd;
  background: linear-gradient(145deg, #fffdf8, #f8f0d9);
  box-shadow: 0 25px 65px rgba(0,0,0,.2);
}
.portal-page .service-card[data-accent="yellow"]::before { background: var(--gold); }
.portal-page .service-card[data-accent="yellow"] p { color: #71654e; }
.portal-page .service-card[data-accent="yellow"] .service-card-footer { color: #71520d; }
.portal-page .service-card[data-accent="yellow"] .service-card-footer span:last-child { background: rgba(224,174,71,.2); }
.portal-page .status-panel,
.admin-page .status-panel {
  color: var(--workspace-muted);
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
}
.portal-page .portal-note {
  color: var(--workspace-text);
  border-color: var(--workspace-line);
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(16px);
}
.portal-page .portal-note p { color: var(--workspace-muted); }
.portal-page .note-icon { color: #f18ca2; background: rgba(188,35,67,.17); }
.portal-page .privacy-label { color: #75cda7; }
.portal-page .portal-footer { color: #846a71; border-color: var(--workspace-line); }
.portal-page .portal-footer span:first-child { color: #fff; }

.admin-page .admin-shell { margin-top: 58px; }
.admin-page .admin-intro { margin-bottom: 40px; }
.admin-page .admin-card,
.admin-page .access-card { border-radius: 24px; }
.admin-page .upload-panel { border-top-color: #bc2343; }
.admin-page label { color: #f8edf0; }
.admin-page label small { color: var(--workspace-muted); }
.admin-page input,
.admin-page select,
.admin-page textarea {
  color: #fff8f9;
  border-color: rgba(255,255,255,.13);
  background: rgba(16,1,5,.58);
}
.admin-page input::placeholder,
.admin-page textarea::placeholder { color: #896e75; }
.admin-page input:focus,
.admin-page select:focus,
.admin-page textarea:focus { border-color: #df506e; box-shadow: 0 0 0 4px rgba(223,80,110,.12); }
.admin-page select option { color: #fff8f9; background: #26040c; }
.admin-page .file-field { border-color: rgba(223,80,110,.34); background: rgba(188,35,67,.075); }
.admin-page .upload-symbol { color: #f3a3b4; background: rgba(188,35,67,.18); }
.admin-page .icon-button,
.admin-page .small-button {
  color: #f4dce1;
  border-color: var(--workspace-line);
  background: rgba(255,255,255,.06);
}
.admin-page .small-button:hover { border-color: rgba(223,80,110,.4); background: rgba(255,255,255,.1); }
.admin-page .danger-button { color: #ff9aac; }
.admin-page .sticky-save {
  color: var(--workspace-text);
  border-color: rgba(255,255,255,.16);
  background: rgba(35,3,10,.9);
  box-shadow: 0 22px 58px rgba(0,0,0,.38);
}
.admin-page .sticky-save span { color: var(--workspace-muted); }
.admin-page .file-manager-heading,
.admin-page .manager-toolbar,
.admin-page .manager-upload-row { border-color: var(--workspace-line); }
.admin-page .manager-session-badge { color: #b99ba3; border-color: var(--workspace-line); }
.admin-page .manager-lock-icon,
.admin-page .manager-file-icon { color: #f4a1b3; border-color: rgba(223,80,110,.22); background: rgba(188,35,67,.16); }
.admin-page .manager-lock-copy p,
.admin-page .manager-upload-row > div > p:last-child,
.admin-page .manager-file-card p,
.admin-page .manager-file-category { color: var(--workspace-muted); }
.admin-page .manager-tab { color: #b99ba3; }
.admin-page .manager-tab span { background: rgba(255,255,255,.07); }
.admin-page .manager-tab.active { color: #fff; border-color: rgba(223,80,110,.36); background: rgba(188,35,67,.17); }
.admin-page .manager-file-picker { border-color: rgba(223,80,110,.34); background: rgba(188,35,67,.075); }
.admin-page .manager-file-card { color: var(--workspace-text); border-color: var(--workspace-line); background: rgba(255,255,255,.045); }
.admin-page .manager-empty { color: var(--workspace-muted); border-color: var(--workspace-line); }

.service-page .service-bar {
  position: relative;
  z-index: 2;
  background: rgba(24,1,6,.94);
  box-shadow: 0 12px 34px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
}
.service-page .service-shell { background: #0f0104; }
.service-page .service-loading { color: var(--workspace-muted); border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.05); }

@media (max-width: 650px) {
  .portal-page .portal-hero { min-height: 0; border-radius: 24px; }
  .portal-page .hero-copy h1 { font-size: 48px; }
  .admin-page .admin-shell { margin-top: 28px; }
}

/* INB Headline & Angle Studio */
.studio-page { min-height: 100vh; background: radial-gradient(circle at 86% 8%, rgba(205,47,82,.18), transparent 26%), linear-gradient(150deg, #180106 0%, #26030b 48%, #0d0003 100%); }
.studio-page [hidden] { display: none !important; }
.studio-main { width: min(1540px, calc(100% - 48px)); margin: 0 auto; padding: 62px 0 90px; }
.studio-hero { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 50px; padding: 18px 6px 55px; }
.studio-hero h1 { max-width: 900px; margin: 12px 0 20px; color: #fff; font-size: clamp(58px, 7.6vw, 116px); font-weight: 650; line-height: .84; letter-spacing: -.072em; }
.studio-hero > div:first-child > p:last-child { max-width: 690px; margin: 0; color: #b99ba3; font-size: 16px; line-height: 1.75; }
.studio-ai-badge { min-width: 260px; display: flex; align-items: center; gap: 14px; margin-bottom: 8px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(255,255,255,.055); box-shadow: 0 18px 48px rgba(0,0,0,.2); backdrop-filter: blur(18px); }
.studio-ai-badge .gemini-spark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #4c71f2, #b35ccb 58%, #ee5372); font-size: 22px; box-shadow: 0 12px 28px rgba(77,86,213,.28); }
.studio-ai-badge div { display: grid; gap: 2px; }
.studio-ai-badge small { color: #9b8087; font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.studio-ai-badge strong { color: #fff; font-size: 13px; }

.studio-workspace { overflow: hidden; display: grid; grid-template-columns: minmax(380px,.82fr) minmax(520px,1.18fr); border: 1px solid rgba(255,255,255,.12); border-radius: 30px; background: rgba(255,255,255,.035); box-shadow: 0 40px 100px rgba(0,0,0,.34); backdrop-filter: blur(24px); }
.studio-input-panel, .studio-output-panel { min-width: 0; padding: clamp(28px, 3vw, 48px); }
.studio-input-panel { border-right: 1px solid rgba(255,255,255,.11); background: linear-gradient(160deg, rgba(255,255,255,.065), rgba(255,255,255,.018)); }
.studio-output-panel { background: rgba(9,0,2,.27); }
.studio-panel-heading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 32px; }
.studio-panel-heading .eyebrow { margin: 1px 0 7px; }
.studio-panel-heading h2 { margin: 0; color: #fff; font-size: clamp(28px,3vw,42px); line-height: 1; letter-spacing: -.045em; }
.studio-step { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(223,80,110,.27); border-radius: 11px; color: #f18ca2; background: rgba(188,35,67,.14); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.studio-upload { position: relative; min-height: 90px; display: flex; align-items: center; gap: 15px; padding: 17px; border: 1px dashed rgba(223,80,110,.38); border-radius: 16px; color: #fff; background: rgba(188,35,67,.07); cursor: pointer; transition: .2s ease; }
.studio-upload:hover { border-color: rgba(241,140,162,.72); background: rgba(188,35,67,.12); }
.studio-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.studio-upload > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.studio-upload strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.studio-upload small { color: #9f8189; font-size: 11px; }
.studio-upload .upload-symbol { flex: 0 0 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: #ffdbe3; background: rgba(188,35,67,.2); font-size: 22px; }
.studio-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: #70575e; font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.studio-divider::before, .studio-divider::after { content: ""; height: 1px; flex: 1; background: rgba(255,255,255,.08); }
.studio-field { min-width: 0; display: grid; gap: 9px; color: #efe1e5; font-size: 11px; font-weight: 800; }
.studio-field > span { letter-spacing: .025em; }
.studio-field textarea, .studio-field select { width: 100%; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; outline: 0; color: #fff; background: rgba(9,0,2,.55); font: inherit; font-size: 13px; transition: .2s ease; }
.studio-field textarea:focus, .studio-field select:focus { border-color: #df506e; box-shadow: 0 0 0 4px rgba(223,80,110,.12); }
.studio-field textarea::placeholder { color: #765d64; }
.studio-field textarea { min-height: 310px; resize: vertical; padding: 17px; font-weight: 450; line-height: 1.7; }
.studio-field select { height: 48px; padding: 0 12px; font-weight: 650; }
.studio-field select option { color: #fff; background: #26040c; }
.studio-source-field small { justify-self: end; color: #826a70; font-size: 10px; font-weight: 650; }
.studio-controls { display: grid; grid-template-columns: 1fr 1.2fr .75fr; gap: 12px; margin-top: 22px; }
.studio-generate { width: 100%; min-height: 60px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 25px; padding: 0 18px; border: 0; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #bc2343, #8f1029 65%, #6d0b1b); box-shadow: 0 18px 38px rgba(148,16,44,.32); cursor: pointer; font: inherit; font-size: 14px; font-weight: 850; text-align: left; transition: transform .2s ease, box-shadow .2s ease; }
.studio-generate:hover { transform: translateY(-2px); box-shadow: 0 22px 48px rgba(148,16,44,.42); }
.studio-generate:disabled { cursor: wait; opacity: .68; transform: none; }
.studio-generate .gemini-spark { font-size: 18px; }
.studio-generate b { font-size: 20px; }
.studio-privacy { margin: 15px 8px 0; color: #826a70; font-size: 10px; line-height: 1.55; text-align: center; }

.output-heading { align-items: center; }
.studio-export-actions { display: flex; gap: 7px; margin-left: auto; }
.studio-export-actions button, .copy-angle { padding: 8px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; color: #d9c3c9; background: rgba(255,255,255,.055); cursor: pointer; font: inherit; font-size: 10px; font-weight: 800; }
.studio-export-actions button:hover, .copy-angle:hover { color: #fff; border-color: rgba(223,80,110,.4); background: rgba(188,35,67,.14); }
.studio-empty { min-height: 620px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 55px; text-align: center; }
.empty-orbit { width: 126px; height: 126px; display: grid; place-items: center; margin-bottom: 28px; border: 1px solid rgba(223,80,110,.25); border-radius: 50%; box-shadow: 0 0 0 24px rgba(188,35,67,.035), 0 0 0 50px rgba(188,35,67,.018); }
.empty-orbit span { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; color: #f294a8; background: rgba(188,35,67,.14); font-size: 27px; }
.studio-empty h3 { max-width: 440px; margin: 0 0 14px; color: #fff; font-size: clamp(27px,3vw,39px); line-height: 1.08; letter-spacing: -.04em; }
.studio-empty p { max-width: 490px; margin: 0; color: #92767e; font-size: 13px; line-height: 1.75; }
.studio-empty > div:last-child { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 27px; }
.studio-empty > div:last-child span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; color: #a98d94; background: rgba(255,255,255,.035); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.studio-loading { min-height: 570px; display: flex; align-items: center; justify-content: center; gap: 20px; color: #fff; text-align: left; }
.studio-loading p { margin: 7px 0 0; color: #90757c; font-size: 12px; }
.studio-loader { width: 48px; height: 48px; border: 2px solid rgba(255,255,255,.1); border-top-color: #df506e; border-radius: 50%; animation: studioSpin .8s linear infinite; }
@keyframes studioSpin { to { transform: rotate(360deg); } }
.studio-error { margin: 45px 0; padding: 18px 20px; border: 1px solid rgba(255,116,139,.28); border-radius: 14px; color: #ffc1cd; background: rgba(135,15,40,.18); font-size: 13px; line-height: 1.6; }
.studio-results { display: grid; gap: 14px; }
.editorial-brief { padding: 25px; border: 1px solid rgba(223,80,110,.2); border-radius: 18px; background: linear-gradient(145deg, rgba(188,35,67,.17), rgba(188,35,67,.055)); }
.editorial-brief > span { color: #f18ca2; font-size: 9px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.editorial-brief h3 { margin: 9px 0 10px; color: #fff; font-size: 23px; line-height: 1.18; letter-spacing: -.025em; }
.editorial-brief p { margin: 0; color: #b598a0; font-size: 12px; line-height: 1.65; }
.angle-results { display: grid; gap: 11px; }
.generated-angle { padding: 23px; border: 1px solid rgba(255,255,255,.105); border-radius: 18px; background: rgba(255,255,255,.045); transition: border-color .2s ease, transform .2s ease; }
.generated-angle:hover { transform: translateY(-2px); border-color: rgba(223,80,110,.29); }
.generated-angle-top { display: flex; align-items: center; gap: 9px; }
.angle-number { color: #df506e; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.angle-label { padding: 5px 8px; border-radius: 999px; color: #ed9caf; background: rgba(188,35,67,.14); font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.copy-angle { margin-left: auto; }
.generated-angle > h3 { margin: 17px 0 19px; color: #fff; font-size: clamp(21px,2vw,29px); font-weight: 650; line-height: 1.15; letter-spacing: -.035em; }
.angle-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.075); }
.angle-detail-grid small { color: #805f68; font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.angle-detail-grid p { margin: 7px 0 0; color: #ad9299; font-size: 11px; line-height: 1.62; }
.angle-basis { margin: 15px 0 0; padding: 11px 12px; border-radius: 10px; color: #967a82; background: rgba(0,0,0,.15); font-size: 10px; line-height: 1.5; }
.angle-basis strong { color: #c8afb5; }
.verification-card { padding: 20px; border: 1px solid rgba(224,174,71,.23); border-radius: 17px; background: rgba(224,174,71,.065); }
.verification-card > div { display: flex; gap: 11px; align-items: flex-start; }
.verification-card > div > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #f7cb70; background: rgba(224,174,71,.12); font-size: 12px; font-weight: 900; }
.verification-card strong { color: #f4e7c7; font-size: 12px; }
.verification-card p { margin: 4px 0 0; color: #9a8867; font-size: 10px; }
.verification-card ul { display: grid; gap: 7px; margin: 15px 0 0 40px; padding-left: 15px; color: #b7a789; font-size: 11px; line-height: 1.55; }
.verification-card.verification-clear { border-color: rgba(83,185,139,.2); background: rgba(83,185,139,.055); }
.verification-card.verification-clear > div > span { color: #75cda7; background: rgba(83,185,139,.12); }
.studio-disclaimer { margin: 4px 10px 0; color: #6f565d; font-size: 9px; line-height: 1.5; text-align: center; }

@media (max-width: 1120px) {
  .studio-workspace { grid-template-columns: 1fr; }
  .studio-input-panel { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.11); }
  .studio-empty { min-height: 480px; }
}
@media (max-width: 760px) {
  .studio-main { width: min(100% - 24px, 1540px); padding-top: 30px; }
  .studio-hero { grid-template-columns: 1fr; gap: 28px; padding: 12px 4px 38px; }
  .studio-hero h1 { font-size: clamp(52px,16vw,76px); }
  .studio-ai-badge { width: 100%; min-width: 0; margin: 0; }
  .studio-workspace { border-radius: 22px; }
  .studio-input-panel, .studio-output-panel { padding: 24px 18px; }
  .studio-controls { grid-template-columns: 1fr; }
  .studio-field textarea { min-height: 260px; }
  .output-heading { flex-wrap: wrap; }
  .studio-export-actions { width: 100%; margin: 4px 0 0 53px; overflow-x: auto; }
  .studio-export-actions button { white-space: nowrap; }
  .studio-empty { min-height: 430px; padding: 35px 12px; }
  .angle-detail-grid { grid-template-columns: 1fr; gap: 13px; }
  .generated-angle { padding: 19px; }
  .studio-page .identity-chip { display: none; }
}

/* INB Story Database & Angle Studio — aligned with A1 INB Stories */
.story-studio-page {
  --story-night: #180106;
  --story-wine: #2d030c;
  --story-red: #bc2343;
  --story-rose: #f18ca2;
  --story-muted: #c2a1aa;
  --story-line: rgba(255, 255, 255, .12);
  --story-glass: linear-gradient(150deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  min-height: 100vh;
  color: #fff8f9;
  background:
    radial-gradient(circle at 88% 2%, rgba(188,35,67,.24), transparent 29%),
    radial-gradient(circle at 8% 78%, rgba(143,16,41,.2), transparent 31%),
    var(--story-night);
  background-attachment: fixed;
}
.story-studio-page::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(135deg, #000, transparent 72%);
}
.story-studio-page [hidden] { display: none !important; }
.story-wrap { width: min(1480px, calc(100% - 48px)); margin-inline: auto; }
.story-hero {
  padding: 28px 0 58px;
  border-bottom: 1px solid var(--story-line);
  background: radial-gradient(circle at 83% 5%, rgba(188,35,67,.38), transparent 31%), linear-gradient(142deg, #210208 0%, #3a0611 52%, #1a0106 100%);
  box-shadow: 0 35px 90px rgba(0,0,0,.34);
}
.story-service-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 54px; }
.story-service-brand { display: flex; align-items: center; gap: 13px; color: #fff; text-decoration: none; }
.story-service-brand img { width: 92px; height: 50px; padding: 6px; object-fit: contain; border: 1px solid var(--story-line); border-radius: 10px; background: rgba(255,255,255,.07); }
.story-service-brand span { display: grid; gap: 1px; }
.story-service-brand strong { font-size: 13px; }
.story-service-brand small { color: #c49da7; font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.story-service-actions { display: flex; align-items: center; gap: 9px; }
.story-ghost-button, .story-sheet-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 0 13px;
  border: 1px solid var(--story-line);
  border-radius: 9px;
  color: #f7e8eb;
  background: rgba(255,255,255,.055);
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
}
.story-ghost-button:hover, .story-sheet-link:hover { border-color: rgba(241,140,162,.48); background: rgba(255,255,255,.1); }
.story-eyebrow, .story-index { margin: 0; color: var(--story-rose); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.story-hero h1 { max-width: 1080px; margin: 13px 0 20px; font-size: clamp(48px, 7vw, 96px); font-weight: 650; line-height: .88; letter-spacing: -.062em; }
.story-subtitle { max-width: 780px; margin: 0; color: #d8bbc2; font-size: 15px; line-height: 1.7; }
.story-stats { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.story-stats span { padding: 9px 12px; border: 1px solid var(--story-line); border-radius: 999px; color: #decbd0; background: rgba(255,255,255,.07); font-size: 11px; font-weight: 700; backdrop-filter: blur(12px); }
.story-stats strong { color: #fff; font-size: 13px; }
.story-toolbar { position: sticky; z-index: 40; top: 0; border-bottom: 1px solid var(--story-line); background: rgba(24,1,6,.9); box-shadow: 0 16px 38px rgba(0,0,0,.24); backdrop-filter: blur(18px); }
.story-toolbar-inner { min-height: 70px; display: flex; align-items: center; gap: 10px; }
.story-search { height: 44px; min-width: 280px; flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--story-line); border-radius: 10px; background: rgba(255,255,255,.07); }
.story-search:focus-within { border-color: #df506e; box-shadow: 0 0 0 3px rgba(223,80,110,.14); }
.story-search > span { color: #af8e96; font-size: 21px; }
.story-search input { width: 100%; border: 0; outline: 0; color: #fff8f9; background: transparent; font: inherit; font-size: 12px; }
.story-search input::placeholder { color: #8f737a; }
.story-filters { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--story-line); border-radius: 10px; background: rgba(255,255,255,.045); }
.story-filters button { height: 34px; padding: 0 11px; border: 0; border-radius: 7px; color: #ad8c94; background: transparent; cursor: pointer; font: inherit; font-size: 10px; font-weight: 850; }
.story-filters button:hover { color: #fff; }
.story-filters button.active { color: #fff; background: rgba(188,35,67,.36); box-shadow: 0 4px 13px rgba(0,0,0,.18); }
.story-sync-button { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #bc2343, #861126); box-shadow: 0 12px 25px rgba(143,16,41,.28); cursor: pointer; font: inherit; font-size: 11px; }
.story-sync-button span { font-size: 17px; }
.story-sync-button:disabled { cursor: wait; opacity: .64; }
.story-main { padding-block: 32px 80px; }
.story-notice { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-bottom: 18px; padding: 15px 17px; border: 1px solid rgba(255,178,114,.25); border-radius: 13px; color: #ffd8bd; background: rgba(154,52,18,.14); }
.story-notice > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,184,117,.13); }
.story-notice p { margin: 0; font-size: 12px; line-height: 1.55; }
.story-notice small { color: #cfa98e; font-size: 9px; white-space: nowrap; }
.story-state { min-height: 300px; display: flex; align-items: center; justify-content: center; gap: 17px; border: 1px solid var(--story-line); border-radius: 22px; color: #f7e8eb; background: var(--story-glass); }
.story-state p { margin: 5px 0 0; color: #a98b93; font-size: 11px; }
.story-state-error { min-height: 0; justify-content: flex-start; padding: 18px 20px; color: #ffc5d0; border-color: rgba(255,116,139,.3); background: rgba(135,15,40,.2); }
.story-spinner { width: 38px; height: 38px; flex: 0 0 auto; border: 2px solid rgba(255,255,255,.1); border-top-color: #df506e; border-radius: 50%; animation: studioSpin .8s linear infinite; }
.story-list { display: grid; gap: 16px; }
.story-organization { margin-bottom: 24px; padding: 24px; border: 1px solid var(--story-line); border-radius: 20px; background: linear-gradient(135deg,rgba(188,35,67,.16),rgba(255,255,255,.025)); }
.story-organization-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.story-organization-heading h2 { margin: 8px 0; font-size: clamp(24px,3vw,34px); letter-spacing: -.035em; }
.story-organization-heading p:last-child { margin: 0; color: var(--story-muted); font-size: 12px; }
.story-stage-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 18px; }
.story-stage-tabs button { padding: 10px 13px; border: 1px solid var(--story-line); border-radius: 9px; color: #d8bac3; background: rgba(0,0,0,.16); cursor: pointer; font: inherit; font-size: 12px; }
.story-stage-tabs button.active { color: #fff; border-color: #eb6686; background: #831530; box-shadow: 0 4px 18px rgba(0,0,0,.15); }
.story-queue-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.story-queue-tabs button { padding: 12px 16px; border: 1px solid var(--story-line); border-radius: 10px; color: #e6c6d0; background: rgba(255,255,255,.035); cursor: pointer; font: inherit; font-size: 12px; font-weight: 750; }
.story-queue-tabs button.active { color: #fff; border-color: #e86483; background: linear-gradient(130deg,#a82041,#70142d); }
.story-queue-tabs button:focus-visible, .story-photo-download:focus-visible { outline: 2px solid #ee7594; outline-offset: 3px; }
.story-queue-description { color: #c4a4af; font-size: 12px; line-height: 1.6; }
.story-assignment-badge, .story-due-badge { color: #dec7d0; background: rgba(255,255,255,.035); }
.story-priority-badge { text-transform: capitalize; color: #d8bfc8; }
.story-priority-badge.priority-high { color: #ffdb9b; background: rgba(220,153,64,.12); }
.story-priority-badge.priority-urgent, .story-due-badge.is-overdue { color: #ffbbcb; border-color: rgba(236,91,128,.4); background: rgba(188,35,67,.19); }
.story-organize-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.story-organize-filters label { display: grid; gap: 6px; flex: 1; min-width: 150px; color: #d5b6bf; font-size: 11px; }
.story-organize-filters select, .story-workflow-dialog input, .story-workflow-dialog select, .story-workflow-dialog textarea { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid var(--story-line); border-radius: 8px; color: #fff4f7; background: #25050e; font: inherit; font-size: 13px; color-scheme: dark; }
.story-organize-filters option, .story-workflow-dialog option { background: #25050e; }
.story-organize-filters #storyVisibleCount { align-self: center; padding-top: 18px; color: #cfabb5; font-size: 12px; }
.story-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px; margin: 24px 0; color: #d5b6bf; font-size: 12px; }
.story-pagination button:disabled { opacity: .4; cursor: default; }
.story-photo-section > summary { cursor: pointer; padding-block: 10px; }
.story-detail-retry { margin-top: 12px; }
.story-workflow-feedback { margin-bottom: 0; color: #aff1d5; font-size: 13px; }
.story-workflow-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0; padding: 12px 0; border-block: 1px solid var(--story-line); }
.story-workflow-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.story-workflow-badges > span { padding: 5px 9px; border: 1px solid var(--story-line); border-radius: 6px; font-size: 11px; overflow-wrap: anywhere; }
.story-stage-badge { color: #e8d2fa; background: rgba(159,132,201,.13); }
.story-stage-badge[data-stage="in-progress"] { color: #ffcaa3; background: rgba(228,157,93,.13); }
.story-stage-badge[data-stage="review"] { color: #ffde85; background: rgba(228,188,93,.13); }
.story-stage-badge[data-stage="ready"] { color: #aff1d5; background: rgba(85,191,152,.13); }
.story-stage-badge[data-stage="published"] { color: #b5e5ff; background: rgba(91,161,219,.13); }
.story-stage-badge[data-stage="archived"] { color: #c5b7be; background: rgba(255,255,255,.05); }
.story-folder-badge { color: #f5d6df; background: rgba(188,35,67,.12); }
.story-tag-badge { color: #b99ca6; background: rgba(255,255,255,.025); }
.story-organize-button { flex-shrink: 0; cursor: pointer; }
.story-card { scroll-margin-top: 90px; }
.story-board { display: flex; align-items: flex-start; gap: 14px; overflow-x: auto; padding: 0 0 20px; scrollbar-color: #86203b #1c0309; }
.story-board-column { flex: 1 0 265px; min-width: 265px; max-width: 420px; padding: 14px; border: 1px solid var(--story-line); border-radius: 16px; background: rgba(0,0,0,.18); }
.story-board-column > h3 { margin: 0 0 16px; padding: 6px 0 12px; border-bottom: 2px solid #863351; font-size: 14px; }
.story-board-card { display: grid; gap: 13px; margin: 10px 0; padding: 16px; border: 1px solid var(--story-line); border-radius: 12px; background: var(--story-glass); }
.story-board-card h4 { margin: 0; font-size: 19px; letter-spacing: -.025em; overflow-wrap: anywhere; }
.story-board-card p { margin: 0; color: #c6a4ae; font-size: 12px; overflow-wrap: anywhere; }
.story-board-card small, .story-board-empty { color: #af8b97; font-size: 11px; }
.story-board-actions { display: flex; gap: 6px; }
.story-board-actions button { flex: 1; padding: 0 9px; cursor: pointer; }
.story-workflow-dialog { width: min(690px,calc(100% - 28px)); max-height: calc(100dvh - 36px); padding: 28px; overflow-y: auto; border: 1px solid rgba(241,140,162,.34); border-radius: 20px; color: #fff2f6; background: #23040d; box-shadow: 0 35px 100px rgba(0,0,0,.6); }
.story-workflow-dialog::backdrop { background: rgba(10,0,3,.78); backdrop-filter: blur(6px); }
.story-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.story-dialog-heading h2 { margin: 8px 0 0; font-size: 26px; overflow-wrap: anywhere; }
.story-dialog-heading button { font-size: 20px; cursor: pointer; }
.story-dialog-intro { margin: 16px 0 20px; color: #c4a1ad; font-size: 13px; line-height: 1.6; }
.story-workflow-dialog fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; padding: 0; border: 0; }
.story-workflow-dialog fieldset:disabled { opacity: .5; }
.story-workflow-dialog label { display: grid; align-content: start; gap: 7px; min-width: 0; font-size: 12px; color: #e5c5d0; }
.story-workflow-dialog label small { color: #a98593; font-size: 11px; line-height: 1.5; }
.story-workflow-wide { grid-column: 1 / -1; }
.story-workflow-dialog textarea { resize: vertical; }
.story-workflow-dialog input:focus, .story-workflow-dialog select:focus, .story-workflow-dialog textarea:focus { outline: 2px solid #ee7594; outline-offset: 2px; }
#storyWorkflowMessage { color: #c6a4b0; font-size: 12px; line-height: 1.6; }
#storyWorkflowMessage.is-error { color: #ffb5c7; }
.story-dialog-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.story-dialog-actions button { cursor: pointer; }
.story-workflow-history { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--story-line); }
.story-workflow-history summary { cursor: pointer; color: #cca9b6; font-size: 12px; }
.story-workflow-history ol { padding-left: 20px; }
.story-workflow-history li { margin: 12px 0; padding-left: 4px; font-size: 12px; color: #dbbbc8; overflow-wrap: anywhere; }
.story-workflow-history li strong, .story-workflow-history li small { display: block; margin-top: 5px; }
.story-workflow-history li small { color: #a78493; }
@media(max-width:640px) {
  .story-organization { padding: 18px 14px; }
  .story-organization-heading { align-items: flex-start; flex-direction: column; }
  .story-workflow-row { align-items: flex-start; flex-direction: column; }
  .story-workflow-dialog { padding: 20px 16px; }
  .story-workflow-dialog fieldset { grid-template-columns: 1fr; }
}
.story-empty-results { padding: 90px 24px; border: 1px solid var(--story-line); border-radius: 22px; text-align: center; background: var(--story-glass); }
.story-empty-results > span { width: 54px; height: 54px; display: grid; place-items: center; margin: auto; border-radius: 16px; color: var(--story-rose); background: rgba(188,35,67,.2); font-size: 18px; font-weight: 900; }
.story-empty-results h2 { margin: 18px 0 7px; font-size: 28px; letter-spacing: -.035em; }
.story-empty-results p { margin: 0; color: var(--story-muted); font-size: 12px; }
.story-card { width: 100%; min-width: 0; overflow: hidden; padding: 26px; border: 1px solid var(--story-line); border-radius: 22px; color: #fff8f9; background: var(--story-glass); box-shadow: 0 25px 65px rgba(0,0,0,.22); backdrop-filter: blur(18px); }
.story-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 22px; }
.story-card-head > div { min-width: 0; }
.story-card-head h2 { margin: 6px 0 6px; font-size: clamp(25px, 3vw, 37px); font-weight: 650; line-height: 1; letter-spacing: -.04em; }
.story-meta { margin: 0; color: var(--story-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.story-status { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; font-size: 9px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.story-status.ready { color: #9cf3d8; background: rgba(15,118,110,.23); }
.story-status.needs { color: #ffd0aa; background: rgba(154,52,18,.23); }
.story-profile { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.story-profile > span, .story-profile > a { min-width: 110px; overflow: hidden; display: grid; gap: 3px; padding: 9px 11px; border: 1px solid var(--story-line); border-radius: 10px; color: #f8edf0; background: rgba(12,0,3,.25); text-decoration: none; }
.story-profile small { color: #94757d; font-size: 8px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.story-profile strong { min-width: 0; font-size: 10px; font-weight: 700; overflow-wrap: anywhere; }
.story-profile > a:hover { border-color: rgba(241,140,162,.42); }
.story-photo-section { min-width: 0; max-width: 100%; margin-top: 18px; padding: 14px; border: 1px solid var(--story-line); border-radius: 13px; background: rgba(12,0,3,.28); }
.story-photo-head { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 11px; }
.story-photo-head strong { color: #f7e8eb; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.story-photo-head span { color: #95777f; font-size: 9px; }
.story-photo-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: thin; }
.story-photo-downloads { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 8px; }
.story-photo-downloads small { color: #b99aa5; font-size: 11px; }
.story-photo-item { flex: 0 0 126px; min-width: 0; }
.story-photo-download { display: block; padding: 9px 2px; color: #f1b4c6; font-size: 10px; text-decoration: none; }
.story-photo-download:hover { color: #fff; text-decoration: underline; }
.story-photo-thumb { position: relative; width: 126px; height: 88px; flex: 0 0 126px; overflow: hidden; padding: 0; border: 1px solid var(--story-line); border-radius: 10px; background: #170106; cursor: pointer; }
.story-photo-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.story-photo-thumb:hover img { transform: scale(1.045); }
.story-photo-thumb span { display: none; position: absolute; inset: 0; place-items: center; padding: 8px; color: #c7aab1; background: #25040b; font-size: 9px; font-weight: 800; }
.story-photo-thumb.failed img { display: none; }
.story-photo-thumb.failed span { display: grid; }
.story-detail { min-width: 0; max-width: 100%; overflow: hidden; margin-top: 16px; border: 1px solid var(--story-line); border-radius: 12px; background: rgba(12,0,3,.18); }
.story-detail summary { padding: 13px 15px; color: #f7e8eb; cursor: pointer; font-size: 11px; font-weight: 850; list-style: none; }
.story-detail summary::-webkit-details-marker { display: none; }
.story-detail summary::after { content: "+"; float: right; color: var(--story-rose); font-size: 16px; }
.story-detail[open] summary::after { content: "−"; }
.story-detail-inner { position: relative; padding: 18px; border-top: 1px solid var(--story-line); background: rgba(12,0,3,.26); }
.story-body { color: var(--story-muted); font-size: 12px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.copy-story-button { float: right; margin: 0 0 10px 12px; padding: 7px 9px; border: 1px solid var(--story-line); border-radius: 8px; color: #f7e8eb; background: rgba(255,255,255,.06); cursor: pointer; font: inherit; font-size: 9px; font-weight: 800; }
.story-card-actions { min-width: 0; max-width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; padding: 15px 16px; border: 1px solid rgba(223,80,110,.25); border-radius: 13px; background: linear-gradient(135deg, rgba(188,35,67,.16), rgba(12,0,3,.2)); }
.story-card-actions > div { display: flex; align-items: center; gap: 12px; }
.story-card-actions .gemini-spark { width: 35px; height: 35px; flex: 0 0 35px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg, #4c71f2, #b35ccb 58%, #ee5372); }
.story-card-actions p { display: grid; gap: 3px; margin: 0; }
.story-card-actions strong { font-size: 11px; }
.story-card-actions small { color: #9f8189; font-size: 9px; line-height: 1.45; }
.generate-story-button { min-height: 43px; flex: 0 0 auto; display: flex; align-items: center; gap: 20px; padding: 0 14px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #bc2343, #861126); box-shadow: 0 12px 26px rgba(143,16,41,.32); cursor: pointer; font: inherit; font-size: 10px; font-weight: 850; }
.generate-story-button:hover:not(:disabled) { transform: translateY(-1px); }
.generate-story-button:disabled { cursor: not-allowed; opacity: .45; }
.generate-story-button b { font-size: 16px; }
.story-generation { margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--story-line); }
.story-generation-loading { min-height: 160px; display: flex; align-items: center; justify-content: center; gap: 15px; }
.story-generation-loading p { display: grid; gap: 4px; margin: 0; }
.story-generation-loading small { color: #9a7d84; font-size: 10px; }
.story-generation-error { padding: 15px; border: 1px solid rgba(255,116,139,.3); border-radius: 11px; color: #ffc5d0; background: rgba(135,15,40,.2); font-size: 11px; }
.story-generation-history { display: grid; gap: 14px; }
.story-history-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 2px; }
.story-history-head h3 { margin: 5px 0 0; font-size: 20px; font-weight: 700; letter-spacing: -.025em; }
.load-generation-history { min-height: 38px; padding: 0 12px; border: 1px solid var(--story-line); border-radius: 9px; color: #f7e8eb; background: rgba(255,255,255,.06); cursor: pointer; font: inherit; font-size: 9px; font-weight: 850; }
.load-generation-history:hover:not(:disabled) { border-color: rgba(240,100,130,.44); background: rgba(188,35,67,.14); }
.load-generation-history:disabled { cursor: wait; opacity: .58; }
.story-generation-stack { display: grid; gap: 14px; }
.story-generation-record { min-width: 0; padding: 19px; border: 1px solid rgba(223,80,110,.22); border-radius: 15px; background: linear-gradient(145deg, rgba(50,5,15,.7), rgba(12,0,3,.42)); box-shadow: inset 3px 0 0 rgba(213,52,87,.68); }
.story-generation-meta { margin: 7px 0 0; color: #8f7179; font-size: 8px; font-weight: 750; letter-spacing: .035em; overflow-wrap: anywhere; text-transform: uppercase; }
.story-generation-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.story-generation-head h3 { max-width: 870px; margin: 6px 0 0; font-size: clamp(21px, 2.6vw, 32px); font-weight: 650; line-height: 1.1; letter-spacing: -.035em; }
.story-generation-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; }
.copy-five-button, .copy-angle, .build-publication-button { padding: 7px 9px; border: 1px solid var(--story-line); border-radius: 8px; color: #e8d7db; background: rgba(255,255,255,.06); cursor: pointer; font: inherit; font-size: 9px; font-weight: 850; }
.build-publication-button { color: #fff; border-color: rgba(240,100,130,.36); background: linear-gradient(135deg, rgba(188,35,67,.72), rgba(134,17,38,.78)); text-decoration: none; white-space: nowrap; }
.build-publication-button:hover { border-color: rgba(255,155,176,.72); transform: translateY(-1px); }
.story-source-summary { max-width: 980px; margin: 13px 0 18px; color: var(--story-muted); font-size: 11px; line-height: 1.65; }
.story-angle-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.story-angle { min-width: 0; padding: 15px; border: 1px solid var(--story-line); border-radius: 14px; background: rgba(12,0,3,.3); }
.story-angle-top { display: flex; align-items: center; gap: 7px; }
.story-angle-number { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; border-radius: 8px; color: var(--story-rose); background: rgba(188,35,67,.18); font-size: 8px; font-weight: 900; }
.story-angle-label { min-width: 0; flex: 1; overflow: hidden; color: var(--story-rose); font-size: 8px; font-weight: 900; letter-spacing: .055em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.copy-angle { padding: 5px 7px; }
.story-angle-headline { margin: 15px 0 5px; font-size: 16px; font-weight: 750; line-height: 1.28; letter-spacing: -.025em; }
.story-word-count { margin: 0 0 14px; color: #80646b; font-size: 8px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.story-angle-copy { margin-top: 11px; }
.story-angle-copy strong, .story-angle-basis > strong { color: #a98a92; font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.story-angle-copy p, .story-angle-basis { margin: 4px 0 0; color: #c7aab1; font-size: 10px; line-height: 1.55; }
.story-angle-basis { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.075); }
.story-verification { margin-top: 12px; padding: 0 14px; border: 1px solid var(--story-line); border-radius: 11px; background: rgba(255,255,255,.035); }
.story-verification summary { padding: 12px 0; color: #e4d1d6; cursor: pointer; font-size: 10px; font-weight: 850; }
.story-verification ul { margin: 0 0 14px; padding-left: 18px; color: #b99ca4; font-size: 10px; line-height: 1.6; }
.story-ai-note { margin: 10px 0 0; color: #72585f; font-size: 8px; text-align: center; }
.story-photo-modal { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(5,0,1,.86); backdrop-filter: blur(10px); }
.story-photo-dialog { width: min(1160px, 96vw); height: min(850px, 92vh); overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: #100003; box-shadow: 0 35px 100px rgba(0,0,0,.58); }
.story-photo-modal-bar { min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 10px 13px; border-bottom: 1px solid var(--story-line); }
.story-photo-modal-bar strong { min-width: 0; flex: 1; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.story-photo-modal-bar span { color: #9d7e86; font-size: 9px; }
.story-photo-modal-bar a, .story-photo-modal-bar button { min-height: 34px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--story-line); border-radius: 8px; color: #fff; background: rgba(255,255,255,.06); text-decoration: none; font: inherit; font-size: 9px; font-weight: 800; cursor: pointer; }
.story-photo-modal-bar button { width: 34px; justify-content: center; padding: 0; font-size: 18px; }
.story-photo-stage { position: relative; min-height: 0; flex: 1; display: grid; place-items: center; }
.story-photo-stage img { width: 100%; height: 100%; min-width: 0; min-height: 0; display: block; object-fit: contain; }
.story-photo-stage > button { position: absolute; z-index: 2; top: 50%; width: 43px; height: 56px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; color: #fff; background: rgba(24,1,6,.75); transform: translateY(-50%); cursor: pointer; font-size: 26px; }
#storyPhotoPrevious { left: 13px; }
#storyPhotoNext { right: 13px; }
.story-photo-error { max-width: 430px; padding: 20px; color: #d9b6bf; text-align: center; font-size: 12px; line-height: 1.6; }
@media (max-width: 1250px) { .story-angle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .story-toolbar-inner { flex-wrap: wrap; padding-block: 10px; }
  .story-search { flex-basis: calc(100% - 180px); }
  .story-filters { order: 3; flex: 1; }
  .story-filters button { flex: 1; }
  .story-sheet-link { order: 4; }
  .story-notice { grid-template-columns: auto 1fr; }
  .story-notice small { grid-column: 2; white-space: normal; }
}
@media (max-width: 680px) {
  .story-wrap { width: min(100% - 24px, 1480px); }
  .story-hero { padding-top: 18px; padding-bottom: 42px; }
  .story-service-bar { align-items: flex-start; margin-bottom: 42px; }
  .story-service-brand img { width: 77px; height: 43px; }
  .story-service-actions .identity-chip { display: none; }
  .story-ghost-button { min-height: 36px; padding-inline: 10px; }
  .story-hero h1 { font-size: clamp(47px, 15vw, 70px); }
  .story-subtitle { font-size: 13px; }
  .story-toolbar { position: relative; }
  .story-search { min-width: 100%; flex-basis: 100%; }
  .story-filters { width: 100%; flex-basis: 100%; overflow-x: auto; }
  .story-sheet-link, .story-sync-button { flex: 1; }
  .story-main { padding-top: 20px; }
  .story-notice { align-items: flex-start; }
  .story-card { padding: 19px 16px; border-radius: 16px; }
  .story-card-head { flex-direction: column; gap: 13px; }
  .story-card-head h2 { font-size: 28px; }
  .story-profile { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .story-profile > span, .story-profile > a { min-width: 0; }
  .story-photo-thumb { width: 103px; height: 75px; flex-basis: 103px; }
  .story-photo-item { flex-basis: 103px; }
  .story-card-actions { align-items: stretch; flex-direction: column; }
  .generate-story-button { width: 100%; justify-content: space-between; }
  .story-generation-head { flex-direction: column; }
  .story-generation-actions { width: 100%; }
  .build-publication-button { flex: 1; text-align: center; }
  .story-history-head { align-items: stretch; flex-direction: column; }
  .load-generation-history { width: 100%; }
  .story-generation-record { padding: 16px 13px; }
  .story-angle-grid { grid-template-columns: 1fr; }
  .story-angle-headline { font-size: 19px; }
  .story-photo-modal { padding: 7px; }
  .story-photo-dialog { width: 100%; height: 95vh; border-radius: 11px; }
  .story-photo-modal-bar { flex-wrap: wrap; }
  .story-photo-modal-bar strong { flex-basis: calc(100% - 50px); }
}

