:root {
  --ink: #151722;
  --muted: #747887;
  --line: #e7e9ef;
  --surface: #f5f7fb;
  --white: #fff;
  --cyan: #05bcd7;
  --violet: #7359ea;
  --pink: #df3cbe;
  --green: #1d9d6b;
  --red: #c94866;
  --orange: #b6741c;
  --gradient: linear-gradient(120deg, #08b9d5, #725ce9 52%, #dd3dbf);
  --sidebar: 250px;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: Inter, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(7, 185, 214, .22); outline-offset: 2px; }

.agent-login { min-height: 100vh; display: grid; grid-template-columns: minmax(480px, .92fr) minmax(520px, 1.08fr); background: #fff; }
.login-brand-panel { min-height: 100vh; position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 42px 58px; color: #fff; background: radial-gradient(circle at 86% 8%, rgba(112, 83, 235, .42), transparent 35%), radial-gradient(circle at 0 100%, rgba(0, 188, 219, .2), transparent 35%), linear-gradient(145deg, #11131d, #181a2a 62%, #221a34); }
.brand-lockup { display: flex; align-items: center; gap: 17px; color: rgba(255,255,255,.48); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.brand-lockup img { width: 104px; height: 53px; object-fit: contain; }
.brand-lockup::after { width: 1px; height: 27px; order: 1; content: ""; background: rgba(255,255,255,.13); }
.brand-lockup span { order: 2; }
.login-message { max-width: 620px; margin: auto 0 44px; position: relative; z-index: 1; }
.login-message > p:first-child { margin: 0 0 20px; color: rgba(255,255,255,.36); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.login-message h1 { margin: 0; font-size: clamp(46px, 4.8vw, 72px); line-height: .98; letter-spacing: -.062em; }
.login-message h1 span { color: transparent; background: linear-gradient(95deg, #54e7ef, #9685ff 50%, #ed65d1); background-clip: text; -webkit-background-clip: text; }
.login-message > p:last-child { max-width: 520px; margin: 25px 0 0; color: rgba(255,255,255,.55); font-size: 14px; line-height: 1.72; }
.login-process-card { max-width: 520px; padding: 19px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.09); border-radius: 18px; backdrop-filter: blur(12px); }
.login-process-card > span { color: rgba(255,255,255,.31); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.login-process-card ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 15px 0 0; padding: 0; list-style: none; }
.login-process-card li { min-width: 0; padding: 12px; background: rgba(255,255,255,.045); border-radius: 12px; }
.login-process-card i { width: 24px; height: 24px; display: grid; place-items: center; margin-bottom: 13px; color: #181a27; background: #dffbff; border-radius: 7px; font-size: 8px; font-style: normal; font-weight: 800; }
.login-process-card strong, .login-process-card small { display: block; }
.login-process-card strong { margin-bottom: 5px; font-size: 9px; }
.login-process-card small { color: rgba(255,255,255,.36); font-size: 7px; line-height: 1.45; }
.login-form-panel { display: grid; place-items: center; padding: 48px; }
.login-form-card { width: min(420px, 100%); }
.mobile-brand { display: none; width: 115px; margin-bottom: 45px; }
.eyebrow { margin: 0 0 15px !important; color: #735de3 !important; font-size: 9px !important; font-weight: 800 !important; letter-spacing: .13em; text-transform: uppercase; }
.login-form-card h2, .activation-card h2 { margin: 0; font-size: 39px; letter-spacing: -.052em; }
.login-form-card > p:not(.eyebrow):not(.secure-copy), .activation-card > p:not(.eyebrow) { margin: 10px 0 31px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.login-form-card label, .activation-card label { display: block; margin-bottom: 18px; }
.login-form-card label span, .activation-card label span { display: block; margin-bottom: 8px; color: #454853; font-size: 10px; font-weight: 700; }
.login-form-card input, .activation-card input { width: 100%; height: 53px; padding: 0 15px; color: var(--ink); background: #fafafd; border: 1px solid #e2e4ea; border-radius: 12px; outline: none; }
.login-form-card input:focus, .activation-card input:focus { background: #fff; border-color: rgba(112, 86, 231, .55); box-shadow: 0 0 0 4px rgba(112, 86, 231, .08); }
.gradient-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; color: #fff; background: var(--gradient); border: 0; border-radius: 11px; box-shadow: 0 12px 28px rgba(109,83,225,.2); cursor: pointer; font-size: 11px; font-weight: 750; }
.gradient-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 34px rgba(109,83,225,.27); }
.gradient-button:disabled { cursor: wait; opacity: .6; }
.gradient-button.small { min-height: 42px; font-size: 9px; }
.login-form-card form .gradient-button, .activation-card form .gradient-button { width: 100%; min-height: 54px; margin-top: 4px; }
.form-error { display: none; margin: -4px 0 15px; padding: 11px 12px; color: #ae3151; background: #fff0f4; border: 1px solid #f1d2dc; border-radius: 9px; font-size: 10px; }
.form-error.visible { display: block; }
.secure-copy { margin: 18px 0 42px !important; color: #9b9da7 !important; text-align: center; font-size: 9px !important; }
.plain-link { width: max-content; display: block; margin: 0 auto; color: #858895; font-size: 10px; font-weight: 700; }
.plain-link:hover { color: #4f42aa; }

.agent-app { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) 1fr; }
.agent-sidebar { height: 100vh; position: sticky; top: 0; z-index: 30; display: flex; flex-direction: column; padding: 24px 18px 19px; color: rgba(255,255,255,.7); background: linear-gradient(175deg, #12141e, #1a1b2b 76%, #221a33); }
.sidebar-brand { height: 58px; display: flex; align-items: center; gap: 10px; padding: 0 7px 16px; border-bottom: 1px solid rgba(255,255,255,.07); }
.sidebar-brand img { width: 90px; height: 46px; object-fit: contain; }
.sidebar-brand span { padding: 5px 7px; color: #6ce1ea; background: rgba(0,190,222,.1); border: 1px solid rgba(0,190,222,.13); border-radius: 6px; font-size: 7px; font-weight: 800; letter-spacing: .11em; }
.agent-identity { display: flex; align-items: center; gap: 11px; margin: 22px 3px 12px; padding: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; }
.agent-identity > span { width: 36px; height: 36px; display: grid; flex: 0 0 auto; place-items: center; color: #fff; background: var(--gradient); border-radius: 10px; font-size: 8px; font-weight: 800; }
.agent-identity strong, .agent-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-identity strong { max-width: 135px; margin-bottom: 3px; color: #fff; font-size: 9px; }
.agent-identity small { color: rgba(255,255,255,.36); font-size: 7px; }
.agent-sidebar nav { display: grid; gap: 4px; margin-top: 12px; }
.agent-sidebar nav button { height: 45px; display: flex; align-items: center; gap: 11px; padding: 0 12px; color: rgba(255,255,255,.48); background: transparent; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-size: 9px; font-weight: 700; text-align: left; }
.agent-sidebar nav button:hover { color: rgba(255,255,255,.78); background: rgba(255,255,255,.035); }
.agent-sidebar nav button.active { color: #fff; background: linear-gradient(100deg, rgba(100,80,225,.26), rgba(232,57,189,.1)); border-color: rgba(134,106,239,.15); }
.agent-sidebar nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.agent-sidebar nav i { min-width: 20px; height: 18px; display: grid; place-items: center; margin-left: auto; color: #67e0e8; background: rgba(0,190,222,.1); border-radius: 6px; font-size: 7px; font-style: normal; }
.sidebar-help { margin-top: auto; padding: 15px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); border-radius: 13px; }
.sidebar-help strong { color: #fff; font-size: 9px; }
.sidebar-help p { margin: 7px 0 0; color: rgba(255,255,255,.35); font-size: 7px; line-height: 1.5; }
.agent-logout { height: 42px; margin-top: 12px; padding: 0 12px; color: rgba(255,255,255,.43); background: transparent; border: 0; border-radius: 9px; cursor: pointer; font-size: 8px; font-weight: 700; text-align: left; }
.agent-logout:hover { color: #fff; background: rgba(255,255,255,.04); }
.agent-main { min-width: 0; }
.agent-header { height: 80px; position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 31px; background: rgba(255,255,255,.93); border-bottom: 1px solid var(--line); backdrop-filter: blur(15px); }
.agent-header > div:first-of-type p { margin: 0 0 3px; color: #9a9da9; font-size: 7px; font-weight: 800; letter-spacing: .09em; }
.agent-header h1 { margin: 0; font-size: 19px; letter-spacing: -.035em; }
.header-agent { display: flex; align-items: center; gap: 9px; }
.header-agent > span { width: 35px; height: 35px; display: grid; place-items: center; color: #fff; background: var(--gradient); border-radius: 10px; font-size: 8px; font-weight: 800; }
.header-agent strong, .header-agent small { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-agent strong { margin-bottom: 2px; font-size: 9px; }
.header-agent small { color: #999ca7; font-size: 7px; }
.mobile-nav-button { display: none; }
.agent-content { padding: 30px 31px 50px; }
.workspace-view { display: none; }
.workspace-view.active { display: block; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: .35; transform: translateY(5px); } }

.welcome-hero { min-height: 260px; position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 34px; padding: 34px 38px; color: #fff; background: radial-gradient(circle at 88% 10%, rgba(227,62,190,.35), transparent 35%), radial-gradient(circle at 15% 100%, rgba(0,190,222,.22), transparent 40%), linear-gradient(135deg, #141623, #292142); border-radius: 21px; box-shadow: 0 20px 50px rgba(34,31,65,.14); }
.welcome-hero > div:first-child p:first-child { margin: 0 0 14px; color: rgba(255,255,255,.42); font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.welcome-hero h2 { max-width: 590px; margin: 0; font-size: clamp(29px, 3vw, 45px); letter-spacing: -.052em; }
.welcome-hero > div:first-child > p:nth-of-type(2) { max-width: 520px; margin: 15px 0 25px; color: rgba(255,255,255,.53); font-size: 11px; line-height: 1.65; }
.welcome-hero .gradient-button { min-width: 145px; }
.hero-process { padding: 18px; background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; backdrop-filter: blur(12px); }
.hero-process > span { color: rgba(255,255,255,.34); font-size: 7px; font-weight: 800; letter-spacing: .13em; }
.hero-process > div { display: grid; grid-template-columns: 29px 1fr; align-items: center; gap: 10px; margin-top: 10px; padding: 10px; background: rgba(255,255,255,.04); border-radius: 10px; }
.hero-process i { width: 28px; height: 28px; display: grid; place-items: center; color: #1a1c29; background: #e4fbff; border-radius: 8px; font-size: 8px; font-style: normal; font-weight: 800; }
.hero-process p { margin: 0; }
.hero-process strong, .hero-process small { display: block; }
.hero-process strong { margin-bottom: 3px; font-size: 9px; }
.hero-process small { color: rgba(255,255,255,.38); font-size: 7px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin: 18px 0; }
.metric-grid article { min-height: 135px; padding: 18px; background: #fff; border: 1px solid #e7e9ee; border-radius: 15px; box-shadow: 0 7px 22px rgba(34,37,57,.035); }
.metric-grid span { color: #858995; font-size: 8px; font-weight: 700; }
.metric-grid strong { display: block; margin: 18px 0 7px; font-size: 29px; line-height: 1; letter-spacing: -.04em; }
.metric-grid small { color: #9a9da8; font-size: 7px; }
.home-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; }
.content-card { min-height: 330px; padding: 20px; background: #fff; border: 1px solid #e6e8ed; border-radius: 16px; box-shadow: 0 8px 25px rgba(35,38,58,.035); }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.card-heading p, .section-intro > div:first-child > p { margin: 0 0 5px; color: #8978e8; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.card-heading h3 { margin: 0; font-size: 14px; }
.card-heading button { color: #6554cb; background: transparent; border: 0; cursor: pointer; font-size: 8px; font-weight: 700; }
.compact-list { display: grid; gap: 8px; }
.compact-item { display: grid; grid-template-columns: 39px 1fr auto; align-items: center; gap: 11px; padding: 11px; background: #fafafd; border: 1px solid #ececf1; border-radius: 11px; cursor: pointer; }
.compact-item > span { width: 38px; height: 38px; display: grid; place-items: center; color: #51439f; background: linear-gradient(135deg,#e7faff,#eee9ff); border-radius: 10px; font-size: 8px; font-weight: 800; }
.compact-item strong, .compact-item small { display: block; }
.compact-item strong { margin-bottom: 4px; font-size: 9px; }
.compact-item small { color: #999ca7; font-size: 7px; }
.status-chip { width: max-content; display: inline-flex; align-items: center; padding: 6px 8px; color: #6254c0; background: #efecff; border-radius: 7px; font-size: 7px; font-weight: 750; text-transform: capitalize; }
.status-submitted { color: #078aa1; background: #e7fafd; }
.status-viewed, .status-under_review { color: #6151c3; background: #eeebff; }
.status-more_information_required, .status-awaiting_payment, .status-awaiting_client_approval { color: #a96312; background: #fff4df; }
.status-demo_approved, .status-demo_building, .status-demo_ready, .status-sent_to_client, .status-client_testing { color: #8b3a8e; background: #fff0fb; }
.status-payment_confirmed, .status-converted { color: #16845a; background: #e8f8f1; }
.status-closed { color: #777b87; background: #f0f1f4; }
.next-steps a { display: grid; grid-template-columns: 35px 1fr; gap: 11px; margin-top: 9px; padding: 14px; background: #fafafd; border: 1px solid #ececf1; border-radius: 11px; }
.next-steps a > span { width: 34px; height: 34px; display: grid; place-items: center; color: #5b4cb6; background: #efecff; border-radius: 9px; font-size: 8px; font-weight: 800; }
.next-steps strong, .next-steps small { display: block; }
.next-steps strong { margin-bottom: 5px; font-size: 9px; }
.next-steps small { color: #9295a1; font-size: 7px; line-height: 1.45; }

.section-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 23px; }
.section-intro h2 { margin: 0; font-size: 28px; letter-spacing: -.045em; }
.section-intro > div:first-child > p:last-child { max-width: 690px; margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.guide-rule, .price-warning { max-width: 330px; padding: 13px 15px; background: #fff; border: 1px solid #e5e7ed; border-radius: 12px; }
.guide-rule strong, .price-warning strong { font-size: 8px; }
.guide-rule p, .price-warning p { margin: 5px 0 0; color: #8e919d; font-size: 7px; line-height: 1.45; }
.guide-layout { display: grid; grid-template-columns: 220px 1fr; align-items: start; gap: 16px; }
.guide-layout > aside { position: sticky; top: 104px; display: grid; gap: 4px; padding: 10px; background: #fff; border: 1px solid #e6e8ed; border-radius: 14px; }
.guide-layout > aside a { padding: 10px; color: #7b7e8b; border-radius: 8px; font-size: 8px; font-weight: 700; }
.guide-layout > aside a:hover { color: #5849b5; background: #f6f3ff; }
.guide-sections { display: grid; gap: 12px; }
.guide-section { padding: 23px 25px; background: #fff; border: 1px solid #e6e8ed; border-radius: 15px; box-shadow: 0 7px 20px rgba(35,38,58,.025); scroll-margin-top: 105px; }
.guide-section > p:first-child { margin: 0 0 6px; color: #8875e8; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.guide-section h3 { margin: 0; font-size: 17px; }
.guide-section > p:nth-of-type(2) { margin: 9px 0 17px; color: #737684; font-size: 9px; line-height: 1.62; }
.guide-section ul, .guide-section ol { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.guide-section li { position: relative; padding: 11px 13px 11px 35px; color: #555864; background: #fafafd; border: 1px solid #ececf1; border-radius: 10px; font-size: 9px; line-height: 1.55; }
.guide-section ul li::before { width: 8px; height: 8px; position: absolute; top: 15px; left: 15px; content: ""; background: var(--gradient); border-radius: 50%; }
.guide-section ol { counter-reset: steps; }
.guide-section ol li { counter-increment: steps; }
.guide-section ol li::before { width: 21px; height: 21px; position: absolute; top: 9px; left: 9px; display: grid; place-items: center; content: counter(steps); color: #5546ab; background: #eeebff; border-radius: 7px; font-size: 7px; font-weight: 800; }
.status-guide-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.status-guide-list div { padding: 12px; background: #fafafd; border: 1px solid #ececf1; border-radius: 10px; }
.status-guide-list strong, .status-guide-list span { display: block; }
.status-guide-list strong { margin-bottom: 5px; font-size: 8px; }
.status-guide-list span { color: #8b8e99; font-size: 7px; line-height: 1.45; }

.resource-toolbar { display: flex; gap: 10px; margin-bottom: 16px; }
.resource-toolbar input, .resource-toolbar select { height: 43px; padding: 0 13px; background: #fff; border: 1px solid #e2e4ea; border-radius: 10px; outline: none; font-size: 9px; }
.resource-toolbar input { width: min(360px, 100%); }
.resource-toolbar select { min-width: 190px; }
.resource-grid, .price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.resource-card, .price-card { min-width: 0; padding: 19px; background: #fff; border: 1px solid #e6e8ed; border-radius: 15px; box-shadow: 0 7px 22px rgba(34,37,57,.03); }
.resource-icon { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 16px; color: #5d4fc2; background: #f0edff; border-radius: 12px; font-size: 8px; font-weight: 800; }
.resource-card > span, .price-card > span { color: #8e7bea; font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.resource-card h3, .price-card h3 { margin: 8px 0 7px; font-size: 14px; }
.resource-card p, .price-card p { margin: 0; color: #7b7e8b; font-size: 8px; line-height: 1.55; }
.resource-meta { display: flex; justify-content: space-between; gap: 10px; margin: 16px 0 12px; padding-top: 12px; color: #9a9da8; border-top: 1px solid #eeeeF2; font-size: 7px; }
.resource-card a { width: 100%; min-height: 39px; display: flex; align-items: center; justify-content: center; color: #5b4db7; background: #f7f5ff; border: 1px solid #e3ddff; border-radius: 9px; font-size: 8px; font-weight: 750; }
.empty-card { grid-column: 1/-1; padding: 55px 25px; color: #8f929e; background: #fff; border: 1px dashed #dcdfe7; border-radius: 15px; text-align: center; font-size: 10px; }
.price-card { display: flex; flex-direction: column; min-height: 260px; }
.price-value { margin: 18px 0 9px !important; color: #171923 !important; font-size: 22px !important; font-weight: 800; letter-spacing: -.035em; }
.price-billing { margin-bottom: 14px !important; }
.price-agent-note { margin-top: auto !important; padding: 11px 12px; color: #5d50a8 !important; background: #f7f5ff; border: 1px solid #e5e0ff; border-radius: 9px; }

.client-form { display: grid; gap: 14px; }
.form-card { padding: 23px; background: #fff; border: 1px solid #e6e8ed; border-radius: 16px; box-shadow: 0 7px 22px rgba(34,37,57,.025); }
.form-card-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.form-card-heading > span { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; color: #5e4fc0; background: #efecff; border-radius: 10px; font-size: 8px; font-weight: 800; }
.form-card-heading h3 { margin: 1px 0 5px; font-size: 14px; }
.form-card-heading p { margin: 0; color: #90939e; font-size: 8px; }
.request-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.request-choice label { position: relative; cursor: pointer; }
.request-choice input { position: absolute; opacity: 0; pointer-events: none; }
.request-choice label > span { min-height: 92px; display: flex; flex-direction: column; justify-content: center; padding: 17px; background: #fafafd; border: 1px solid #e5e7ed; border-radius: 12px; transition: .18s ease; }
.request-choice input:checked + span { background: #f6f3ff; border-color: #cfc6ff; box-shadow: 0 0 0 3px rgba(112,86,231,.07); }
.request-choice strong, .request-choice small { display: block; }
.request-choice strong { margin-bottom: 6px; font-size: 10px; }
.request-choice small { color: #8c8f9b; font-size: 8px; line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid label { min-width: 0; }
.form-grid label.wide { grid-column: 1/-1; }
.form-grid label > span { display: block; margin-bottom: 7px; color: #555864; font-size: 8px; font-weight: 750; }
.form-grid input, .form-grid textarea { width: 100%; padding: 0 13px; color: var(--ink); background: #fafafd; border: 1px solid #e3e5eb; border-radius: 10px; outline: none; font-size: 9px; }
.form-grid input { height: 44px; }
.form-grid textarea { padding-top: 12px; line-height: 1.55; resize: vertical; }
.form-grid input:focus, .form-grid textarea:focus { background: #fff; border-color: rgba(112,86,231,.48); box-shadow: 0 0 0 3px rgba(112,86,231,.06); }
.file-drop { min-height: 125px; display: grid; place-items: center; padding: 20px; background: #fafafd; border: 1px dashed #ccd0da; border-radius: 13px; cursor: pointer; text-align: center; }
.file-drop:hover { background: #f8f6ff; border-color: #bfb4f7; }
.file-drop input { display: none; }
.file-drop strong, .file-drop small { display: block; }
.file-drop strong { margin-bottom: 6px; color: #5b4db6; font-size: 10px; }
.file-drop small { color: #9295a1; font-size: 8px; }
.selected-files { display: grid; gap: 7px; margin-top: 10px; }
.file-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; background: #fafafd; border: 1px solid #ececf1; border-radius: 9px; }
.file-row strong, .file-row small { display: block; }
.file-row strong { margin-bottom: 3px; font-size: 8px; }
.file-row small { color: #999ca7; font-size: 7px; }
.file-row button { color: #b23e5b; background: transparent; border: 0; cursor: pointer; font-size: 7px; font-weight: 700; }
.form-submit-bar { position: sticky; z-index: 8; bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; background: rgba(255,255,255,.96); border: 1px solid #e3e5eb; border-radius: 14px; box-shadow: 0 16px 45px rgba(30,32,49,.12); backdrop-filter: blur(12px); }
.form-submit-bar strong, .form-submit-bar p { display: block; }
.form-submit-bar strong { margin-bottom: 4px; font-size: 9px; }
.form-submit-bar p { margin: 0; color: #9295a0; font-size: 7px; }

.client-list { display: grid; gap: 10px; }
.client-list-item { display: grid; grid-template-columns: 48px minmax(200px, 1.2fr) minmax(150px, .8fr) minmax(150px, .7fr) auto; align-items: center; gap: 15px; padding: 15px 17px; background: #fff; border: 1px solid #e6e8ed; border-radius: 13px; cursor: pointer; }
.client-list-item:hover { border-color: #d5cff5; box-shadow: 0 8px 22px rgba(35,38,58,.05); }
.client-list-item > span:first-child { width: 46px; height: 46px; display: grid; place-items: center; color: #51439f; background: linear-gradient(135deg,#e7faff,#eee9ff); border-radius: 12px; font-size: 8px; font-weight: 800; }
.client-list-item strong, .client-list-item small { display: block; }
.client-list-item strong { margin-bottom: 4px; font-size: 9px; }
.client-list-item small { color: #979aa5; font-size: 7px; }
.client-list-item .service-label { color: #696c78; font-size: 8px; }

.detail-dialog { width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; background: transparent; border: 0; border-radius: 18px; }
.detail-dialog::backdrop { background: rgba(18,19,29,.62); backdrop-filter: blur(4px); }
.dialog-shell { max-height: calc(100vh - 32px); display: grid; grid-template-rows: auto 1fr; overflow: hidden; background: #fff; border-radius: 18px; box-shadow: 0 30px 90px rgba(15,16,25,.28); }
.dialog-shell header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 23px 27px 19px; border-bottom: 1px solid var(--line); }
.dialog-shell header p { margin: 0 0 6px; color: #7d6ae0; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.dialog-shell header h2 { margin: 0 0 5px; font-size: 21px; letter-spacing: -.04em; }
.dialog-shell header span { color: #999ca7; font-size: 8px; }
.dialog-shell header button { width: 37px; height: 37px; display: grid; place-items: center; color: #858895; background: #f4f5f7; border: 0; border-radius: 10px; cursor: pointer; }
.dialog-shell header svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.dialog-body { overflow-y: auto; padding: 24px 27px 34px; }
.detail-grid { overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 18px; background: #e7e9ef; border: 1px solid #e7e9ef; border-radius: 12px; gap: 1px; }
.detail-grid div { padding: 12px 13px; background: #fafafd; }
.detail-grid span, .detail-grid strong { display: block; }
.detail-grid span { margin-bottom: 5px; color: #9a9da8; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.detail-grid strong { color: #454853; font-size: 9px; overflow-wrap: anywhere; }
.detail-section { margin-top: 18px; }
.detail-section h3 { margin: 0 0 9px; color: #6f7280; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.detail-copy { padding: 14px; color: #555864; background: #fafafd; border: 1px solid #e8e9ef; border-radius: 10px; font-size: 9px; line-height: 1.65; white-space: pre-wrap; }
.attachment-list { display: grid; gap: 7px; }
.attachment-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; color: #5b4db6; background: #f7f5ff; border: 1px solid #e3ddff; border-radius: 9px; font-size: 8px; font-weight: 700; }
.timeline { display: grid; gap: 10px; }
.timeline div { position: relative; padding-left: 18px; }
.timeline div::before { width: 8px; height: 8px; position: absolute; top: 3px; left: 0; content: ""; background: #755ce9; border: 2px solid #eeeaff; border-radius: 50%; }
.timeline strong, .timeline small { display: block; }
.timeline strong { margin-bottom: 4px; font-size: 8px; text-transform: capitalize; }
.timeline small { color: #9699a4; font-size: 7px; line-height: 1.45; }

.agent-toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 10px; padding: 12px 15px; color: #454853; background: #fff; border: 1px solid #e3e5eb; border-radius: 11px; box-shadow: 0 18px 45px rgba(25,27,43,.16); opacity: 0; pointer-events: none; transform: translateY(12px); transition: .2s ease; }
.agent-toast.visible { opacity: 1; transform: none; }
.agent-toast > span { width: 25px; height: 25px; background: #e8f8f1; border-radius: 8px; }
.agent-toast.error > span { background: #ffedf1; }
.agent-toast p { margin: 0; font-size: 9px; font-weight: 700; }

.activation-page { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 10% 10%, rgba(0,190,222,.08), transparent 30%), radial-gradient(circle at 90% 0, rgba(226,60,190,.1), transparent 30%), #f7f8fb; }
.activation-shell { width: min(980px, 100%); min-height: 570px; display: grid; grid-template-columns: .95fr 1.05fr; overflow: hidden; background: #fff; border: 1px solid #e5e7ed; border-radius: 22px; box-shadow: 0 28px 80px rgba(29,31,49,.13); }
.activation-brand { padding: 46px; color: #fff; background: radial-gradient(circle at 85% 5%, rgba(225,62,190,.38), transparent 35%), linear-gradient(145deg,#12141e,#242039); }
.activation-brand img { width: 110px; height: 56px; object-fit: contain; margin-bottom: 95px; }
.activation-brand > p:first-of-type { margin: 0 0 17px; color: rgba(255,255,255,.36); font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.activation-brand h1 { margin: 0; font-size: 44px; line-height: 1.02; letter-spacing: -.055em; }
.activation-brand > p:last-child { margin: 22px 0 0; color: rgba(255,255,255,.52); font-size: 12px; line-height: 1.65; }
.activation-card { display: flex; flex-direction: column; justify-content: center; padding: 60px; }
.activation-link { margin-top: 8px; }

.sidebar-shade { display: none; }
@media (max-width: 1150px) {
  .resource-grid, .price-grid { grid-template-columns: 1fr 1fr; }
  .home-grid { grid-template-columns: 1fr; }
  .content-card { min-height: auto; }
}
@media (max-width: 950px) {
  .agent-login { grid-template-columns: 1fr 1fr; }
  .login-brand-panel { padding: 38px; }
  .agent-app { grid-template-columns: 1fr; }
  .agent-sidebar { width: var(--sidebar); position: fixed; left: 0; transform: translateX(-105%); transition: transform .24s ease; }
  .agent-sidebar.open { transform: none; }
  .sidebar-shade { position: fixed; z-index: 25; inset: 0; background: rgba(17,18,27,.38); }
  .sidebar-shade.visible { display: block; }
  .mobile-nav-button { width: 38px; height: 38px; display: grid; place-items: center; margin-right: 12px; color: #60636f; background: #f4f5f7; border: 0; border-radius: 9px; }
  .mobile-nav-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
  .agent-header { justify-content: flex-start; }
  .header-agent { margin-left: auto; }
}
@media (max-width: 760px) {
  .agent-login { grid-template-columns: 1fr; }
  .login-brand-panel { display: none; }
  .login-form-panel { min-height: 100vh; padding: 30px 22px; }
  .mobile-brand { display: block; }
  .agent-header { height: 72px; padding: 0 16px; }
  .agent-content { padding: 22px 16px 40px; }
  .welcome-hero { grid-template-columns: 1fr; padding: 27px 24px; }
  .hero-process { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .section-intro { flex-direction: column; }
  .guide-rule, .price-warning { max-width: none; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-layout > aside { position: static; display: flex; overflow-x: auto; }
  .guide-layout > aside a { flex: 0 0 auto; }
  .resource-grid, .price-grid { grid-template-columns: 1fr; }
  .resource-toolbar { align-items: stretch; flex-direction: column; }
  .resource-toolbar input, .resource-toolbar select { width: 100%; }
  .form-grid, .request-choice { grid-template-columns: 1fr; }
  .form-grid label.wide { grid-column: auto; }
  .form-submit-bar { align-items: stretch; flex-direction: column; }
  .client-list-item { grid-template-columns: 43px 1fr auto; }
  .client-list-item > div:nth-of-type(2), .client-list-item > div:nth-of-type(3) { display: none; }
  .status-guide-list { grid-template-columns: 1fr; }
  .activation-page { padding: 0; }
  .activation-shell { min-height: 100vh; grid-template-columns: 1fr; border: 0; border-radius: 0; }
  .activation-brand { display: none; }
  .activation-card { padding: 36px 23px; }
  .detail-dialog { width: 100vw; max-height: 100vh; }
  .dialog-shell { max-height: 100vh; border-radius: 0; }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .metric-grid { grid-template-columns: 1fr; }
  .header-agent > div { display: none; }
  .agent-header > div:first-of-type p { display: none; }
  .welcome-hero h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
