:root {
  --ink: #17212b;
  --muted: #73808d;
  --line: #e8edf1;
  --surface: #ffffff;
  --canvas: #f2f6fc;
  --brand: #007bc2;
  --brand-dark: #00629e;
  --brand-soft: #e5f5ff;
  --amber: #b77b28;
  --amber-soft: #fff4e2;
  --danger: #b63838;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); font: 15px/1.55 "Segoe UI", "Microsoft YaHei", sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #66c6ff; outline-offset: 2px; }

.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 82px; border-bottom: 1px solid rgba(23,33,43,.08); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #00a3ff, #007bc2); font-size: 20px; font-weight: 800; box-shadow: 0 6px 16px rgba(0,123,194,.2); }
.brand-logo { display: block; object-fit: contain; border: 1px solid #d8eaf5; padding: 2px; background: #fff; }
.brand strong, .brand small { display: block; line-height: 1.15; letter-spacing: .11em; }
.brand strong { font-size: 12px; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.brand .brand-company-name { font-size: 13px; letter-spacing: 0; }
.brand .brand-subtitle { font-size: 8px; letter-spacing: .08em; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.secure-label { display: inline-flex; align-items: center; gap: 7px; margin-right: 5px; color: var(--muted); font-size: 12px; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #00a3ff; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; border: 1px solid transparent; border-radius: 9px; padding: 0 15px; cursor: pointer; text-decoration: none; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: not-allowed; }
.button-quiet { border-color: var(--line); background: #fff; color: #52606c; }
.button-quiet:hover:not(:disabled) { border-color: #c8d8f5; color: var(--brand-dark); }
.button-primary { background: var(--brand); color: #fff; font-weight: 650; }
.button-primary:hover:not(:disabled) { background: var(--brand-dark); }
.button-wide { width: 100%; min-height: 46px; }
.button-small { min-height: 31px; padding: 0 10px; font-size: 12px; }
.button-danger { border-color: #f0d1d1; background: #fff8f8; color: var(--danger); }

.hero { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 300px; margin: 34px 0 45px; overflow: hidden; border: 1px solid #dce7f8; border-radius: 22px; padding: 44px 56px; background: radial-gradient(ellipse at 83% 15%, rgba(176,204,250,.48), transparent 37%), linear-gradient(115deg, #fff 0%, #f8faff 70%, #edf3ff 100%); }
.hero-copy { position: relative; z-index: 1; max-width: 650px; }
.eyebrow { margin: 0 0 10px; color: var(--brand); font-size: 10px; font-weight: 750; letter-spacing: .16em; }
.hero h1 { margin: 0; font-size: clamp(30px, 4vw, 42px); font-weight: 680; letter-spacing: -.045em; line-height: 1.2; }
.hero-subtitle { max-width: 590px; margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.welcome-line { margin-top: 29px; color: #687783; font-size: 13px; }
.welcome-line strong { color: var(--ink); font-weight: 650; }
.hero-art { position: absolute; top: 50%; right: 7%; width: 230px; height: 230px; transform: translateY(-50%); opacity: .9; }
.orbit { position: absolute; inset: 20px; border: 1px solid rgba(37,99,217,.17); border-radius: 50%; }
.orbit-two { inset: 48px; border-style: dashed; transform: rotate(-25deg) scaleX(1.35); }
.art-core { position: absolute; inset: 76px; display: grid; place-items: center; border: 1px solid rgba(37,99,217,.2); border-radius: 25px; background: linear-gradient(145deg, #fff, #e2ecff); color: var(--brand); font-size: 32px; font-weight: 800; box-shadow: 0 16px 40px rgba(37,83,157,.12); transform: rotate(-7deg); }
.art-node { position: absolute; display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #d7e3f7; border-radius: 12px; background: #fff; color: var(--brand); font-size: 13px; font-weight: 750; box-shadow: 0 8px 20px rgba(39,72,128,.1); }
.node-a { top: 23px; right: 35px; }.node-b { bottom: 30px; left: 25px; }.node-c { right: 13px; bottom: 73px; color: #5b82c7; }

.apps-section { margin-bottom: 32px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 17px; }
.section-heading .eyebrow { margin-bottom: 3px; color: #8b999f; }
.section-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.section-note { color: var(--muted); font-size: 12px; }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.app-card { position: relative; min-height: 250px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 23px 18px; background: var(--surface); box-shadow: 0 4px 18px rgba(25,45,56,.025); transition: border-color .18s, box-shadow .18s, transform .18s; }
.app-card:hover { border-color: #cfddf5; box-shadow: 0 12px 30px rgba(37,75,139,.08); transform: translateY(-2px); }
.app-card-top { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; }
.app-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: linear-gradient(145deg, #e6efff, #f4f8ff); color: var(--brand); font-size: 20px; font-weight: 750; }
.icon-amazon-listing { background: linear-gradient(145deg, #e5eeff, #f3f7ff); color: #2460cf; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 20px; padding: 5px 9px; font-size: 10px; font-weight: 650; }
.badge-live { background: #eaf2ff; color: #285aa9; }.badge-pending { background: var(--amber-soft); color: #9a6925; }.badge-pending .status-dot { background: #d59a42; }
.app-category { margin: 17px 0 2px; color: #8b969e; font-size: 10px; letter-spacing: .08em; }
.app-card h3 { margin: 2px 0 5px; font-size: 17px; font-weight: 680; letter-spacing: -.02em; }
.app-description { max-width: 480px; min-height: 39px; margin: 0; color: var(--muted); font-size: 12px; }
.app-meta { display: flex; align-items: center; gap: 7px; margin-top: 14px; color: #87949b; font-size: 10px; }
.owner-dot { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #edf2fa; color: #53657e; font-size: 10px; }
.app-actions { display: flex; align-items: center; gap: 18px; margin-top: auto; padding-top: 15px; }
.app-action { display: inline-flex; align-items: center; gap: 7px; color: var(--brand); font-size: 12px; font-weight: 700; text-decoration: none; }
.app-action::after { content: '↗'; font-size: 15px; transition: transform .15s; }
.app-action:hover::after { transform: translate(2px, -2px); }
.app-action-disabled { color: #9c9b96; cursor: not-allowed; }
.app-action-disabled::after { content: ''; }
.app-repository { color: #7f8d92; font-size: 12px; font-weight: 650; text-decoration: none; }
.app-repository:hover { color: var(--brand); text-decoration: underline; }
.loading-card { display: flex; align-items: center; gap: 10px; min-height: 90px; border: 1px dashed #ced9ec; border-radius: var(--radius); padding: 20px; color: var(--muted); font-size: 13px; }
.spinner { width: 16px; height: 16px; border: 2px solid #dce5f3; border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.help-strip { display: flex; align-items: center; gap: 13px; margin: 0 0 45px; border: 1px solid #e1e8f2; border-radius: 13px; padding: 15px 18px; background: rgba(255,255,255,.8); }
.help-icon { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 50%; background: #edf3ff; color: var(--brand); font-weight: 700; }
.help-strip strong { font-size: 12px; }.help-strip p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }.help-tag { margin-left: auto; color: #97a2a5; font-size: 10px; }
.footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(23,33,43,.08); padding: 19px 0 26px; color: #95a0a5; font-size: 10px; }

.auth-body { min-height: 100vh; background: #f2f4f7; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 43%) 1fr; background: radial-gradient(ellipse 31% 29% at 25% 25%, rgba(58,132,191,.34), transparent 100%), linear-gradient(to bottom right, #94b9d7 0%, #a9c4dc 38%, #c9d9e7 60%, #e7edf2 80%, #fbfcfd 100%); }
.auth-aside { position: relative; display: flex; flex-direction: column; min-height: 100vh; overflow: hidden; padding: 42px clamp(30px, 6vw, 85px); background: transparent; color: #001e33; }
.brand-light .brand-logo { border-color: rgba(255,255,255,.9); background: #fff; box-shadow: 0 5px 14px rgba(0,72,125,.14); }.brand-light strong { color: #001e33; }.brand-light small { color: #07395b; }
.auth-message { position: relative; z-index: 1; margin: auto 0; padding: 60px 0; }.auth-message .eyebrow { color: #07395b; }.auth-message h1 { margin: 0; color: #001e33; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.05em; line-height: 1.2; }.auth-message p:last-child { max-width: 330px; margin-top: 17px; color: #07395b; font-size: 14px; }
.auth-aside-foot { color: #07395b; font-size: 10px; }
.auth-panel-wrap { display: grid; place-items: center; padding: 38px 28px; background: transparent; }
.auth-panel { width: min(100%, 410px); }.auth-panel-register { width: min(100%, 490px); }
.mobile-brand { display: none; align-items: center; gap: 9px; margin-bottom: 35px; font-size: 12px; font-weight: 650; }
.mobile-brand-copy strong, .mobile-brand-copy small { display: block; line-height: 1.25; }
.mobile-brand-copy strong { color: #263448; font-size: 12px; letter-spacing: 0; }
.mobile-brand-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 500; }
.auth-panel .eyebrow { margin-bottom: 8px; }.auth-panel h2 { margin: 0; font-size: 27px; letter-spacing: -.035em; }.auth-hint { margin: 8px 0 27px; color: var(--muted); font-size: 13px; }
.form-stack { display: grid; gap: 16px; }.form-stack label { display: grid; gap: 7px; color: #43505a; font-size: 12px; font-weight: 650; }
.form-stack input { width: 100%; height: 44px; border: 1px solid #d7e0ed; border-radius: 9px; padding: 0 12px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 400; }
.form-stack input:focus { border-color: #6d9bea; outline: 3px solid rgba(69,122,218,.14); }
.form-stack label small { color: #929da2; font-size: 10px; font-weight: 400; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { min-height: 18px; margin: -6px 0 0; color: var(--danger); font-size: 11px; }
.auth-switch { margin: 21px 0 0; color: var(--muted); font-size: 12px; text-align: center; }.auth-switch a { color: var(--brand); font-weight: 650; text-decoration: none; }
.auth-footnote { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 15px; color: #9aa5a9; font-size: 10px; text-align: center; }
.simple-message { display: flex; flex-direction: column; align-items: flex-start; width: min(100% - 40px, 460px); margin: 15vh auto; }.simple-message .eyebrow { margin-top: 35px; }.simple-message h1 { font-size: 25px; }.simple-message p:not(.eyebrow) { margin-bottom: 24px; color: var(--muted); }

.admin-main { min-height: calc(100vh - 160px); padding: 48px 0 60px; }.admin-main h1 { margin: 0; font-size: 32px; }.admin-main > .hero-subtitle { margin: 8px 0 28px; }
.admin-panel { margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; padding: 21px; background: #fff; }
.admin-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }.admin-panel-heading h2 { margin: 0; font-size: 15px; }.admin-panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.invite-result { display: grid; gap: 9px; margin-top: 18px; border: 1px solid #d8e4f6; border-radius: 11px; padding: 15px; background: #f5f8fe; color: #4b5f7e; font-size: 11px; }.invite-result code { overflow-wrap: anywhere; border-radius: 7px; padding: 10px; background: #fff; color: #234f96; font-size: 13px; }
.table-wrap { overflow-x: auto; margin-top: 17px; }table { width: 100%; border-collapse: collapse; text-align: left; font-size: 11px; }th,td { border-top: 1px solid #edf0f1; padding: 11px 9px; white-space: nowrap; }th { color: #7d898e; font-size: 10px; font-weight: 600; }td { color: #445159; }

@media (max-width: 760px) {
  .shell { width: min(100% - 30px, 580px); }
  .topbar { min-height: 68px; }.secure-label { display: none; }.top-actions { gap: 6px; }.button { min-height: 35px; padding: 0 10px; font-size: 11px; }
  .hero { min-height: 275px; margin: 22px 0 31px; padding: 31px 25px; }.hero h1 { max-width: 360px; font-size: 32px; }.hero-subtitle { max-width: 380px; font-size: 12px; }.hero-art { right: -60px; opacity: .35; }.hero-copy { max-width: 100%; }
  .app-grid { grid-template-columns: 1fr; gap: 12px; }.app-card { min-height: 232px; padding: 19px; }.section-heading h2 { font-size: 20px; }.section-note { font-size: 10px; }
  .help-strip { margin-bottom: 31px; }.help-tag { display: none; }.footer { flex-direction: column; gap: 5px; }
  .auth-layout { grid-template-columns: 1fr; }.auth-aside { display: none; }.auth-panel-wrap { padding: 26px 23px; }.auth-panel { width: min(100%, 430px); }.mobile-brand { display: flex; }
  .admin-main { padding: 34px 0; }.admin-main h1 { font-size: 28px; }.admin-panel { padding: 16px; }.admin-panel-heading { align-items: flex-start; }.form-row { grid-template-columns: 1fr; }
}

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