@import url('./theme.css');

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif; font-size: 14px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea, a { outline-offset: 4px; }
:focus-visible { outline: 3px solid #8eaef5; }
button, a, input, select { transition: background .18s, border-color .18s, color .18s; }
svg { width: 20px; height: 20px; flex-shrink: 0; }
button svg { width: 17px; height: 17px; }
.loading-screen { display: grid; min-height: 100vh; place-items: center; color: var(--muted); }
.layout { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--navy); color: #d2dcee; display: flex; flex-direction: column; position: sticky; height: 100vh; top: 0; padding: 25px 16px 20px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; border-bottom: 1px solid #ffffff13; }
.brand-image { width: 60px; height: 47px; object-fit: contain; background: white; border-radius: 5px; }
.brand strong { color: white; font-size: 16px; letter-spacing: 1px; }
.brand small { display: block; font-size: 10px; letter-spacing: 2px; color: #a3b4cf; }
.nav-label { padding: 23px 14px 9px; color: #93a6c3; font-size: 11px; letter-spacing: 1.5px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: #c1cde0; border-radius: 7px; margin-bottom: 4px; font-size: 13px; }
.nav-item:hover { background: #ffffff0a; color: white; }
.nav-item.active { background: #3564e1; color: white; box-shadow: 0 4px 14px #00103d33; }
.nav-item .count { margin-left: auto; font-size: 10px; padding: 0 6px; background: #ffffff1f; border-radius: 4px; }
.sidebar-footer { margin-top: auto; border-top: 1px solid #ffffff13; padding: 18px 10px 0; }
.workspace-label { display: flex; gap: 10px; align-items: center; color: #f0f4fb; font-size: 12px; }
.workspace-label small { display: block; color: #9aaccc; font-size: 11px; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #ffffff12; color: #d5e1fa; }
.main { min-width: 0; }
.topbar { background: #fff; border-bottom: 1px solid var(--border); height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 36px; gap: 20px; }
.breadcrumb { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 10px; }
.breadcrumb strong { color: #354560; font-weight: 500; }
.header-right { display: flex; align-items: center; gap: 17px; font-size: 12px; color: #5a6980; }
.preview-label { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 6px; height: 6px; background: #dd9c39; border-radius: 50%; }
.logout { background: none; border: 0; padding: 8px; color: #65728a; }
.content { max-width: 1600px; padding: 32px 36px 40px; margin: auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 25px; }
h1 { margin: 0 0 5px; font-size: 25px; font-weight: 650; letter-spacing: -.6px; }
.subtitle { color: var(--muted); font-size: 12px; margin: 0; }
.eyebrow { color: #6b7a94; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 7px; }
.btn { display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 38px; padding: 8px 15px; border-radius: 6px; border: 1px solid #d9e0eb; background: white; color: #354560; font-size: 12px; font-weight: 500; white-space: nowrap; }
.btn:hover { border-color: #94a8cb; background: #f7f9fc; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: white; }
.btn-primary:hover { background: #254cb8; border-color: #254cb8; }
.btn-danger { color: #b33737; background: #fff7f7; border-color: #efcdcd; }
.btn-text { border: 0; background: transparent; color: var(--blue); padding: 5px 7px; font-size: 12px; min-height: 32px; }
.btn-text:hover { background: #eef3ff; }
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.banner { display: flex; align-items: center; gap: 14px; background: #edf3ff; border: 1px solid #d9e5fb; border-radius: 8px; padding: 15px 18px; margin-bottom: 24px; color: #365d98; font-size: 12px; }
.banner p { margin: 0; flex: 1; }
.banner strong { font-weight: 600; }
.banner .btn { border-color: #c5d5f2; background: #f9fbff; color: #365d98; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; margin-bottom: 26px; }
.stat { padding: 21px 23px 18px; background: white; border: 1px solid var(--border); border-radius: 9px; }
.stat.featured { background: #203b66; border-color: #203b66; color: white; }
.stat-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #64748b; }
.stat-icon { display: grid; place-items: center; background: #f3f6fb; border-radius: 8px; width: 33px; height: 33px; color: #6380a8; }
.stat-value { font-size: 34px; line-height: 1.5; font-weight: 600; letter-spacing: -1px; font-variant-numeric: tabular-nums; margin-top: 8px; }
.stat-foot { font-size: 11px; color: #738096; margin-top: 6px; }
.stat.featured .stat-top, .stat.featured .stat-foot { color: #c4d3ea; }
.stat.featured .stat-icon { background: #ffffff10; color: #c7d8f5; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, 1fr); gap: 22px; }
.panel { background: white; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 19px 23px; border-bottom: 1px solid #edf0f5; gap: 12px; }
.panel-head h2 { font-size: 14px; margin: 0; font-weight: 600; }
.panel-head small { font-size: 11px; color: var(--muted); }
.panel-body { padding: 20px 23px; }
.route-bar-row { display: grid; grid-template-columns: 25px minmax(100px, 1fr) minmax(55px, 1fr) 44px; align-items: center; gap: 10px; padding: 10px 0; font-size: 12px; }
.rank { display: grid; place-items: center; color: #6d809f; width: 20px; height: 20px; font-size: 10px; background: #f1f5fa; border-radius: 4px; }
.route-bar-row:first-child .rank { background: #eaf0fe; color: var(--blue); }
.route-label { display: flex; gap: 10px; align-items: center; }
.route-label span { color: #acb6c5; }
meter { appearance: none; width: 100%; height: 6px; border: 0; background: #eef2f8; border-radius: 5px; }
meter::-webkit-meter-bar { height: 6px; border: none; background: #eef2f8; }
meter::-webkit-meter-optimum-value { background: #7b9bdc; border-radius: 5px; }
meter::-moz-meter-bar { background: #7b9bdc; }
.numeric { font-variant-numeric: tabular-nums; text-align: right; }
.footnote { color: var(--muted); font-size: 10px; margin-top: 16px; }
.quick-link { display: flex; align-items: center; gap: 13px; padding: 15px 0; color: var(--ink); width: 100%; background: none; border: none; text-align: left; }
.quick-link + .quick-link { border-top: 1px solid #f0f2f6; }
.quick-icon { display: grid; place-items: center; width: 35px; height: 35px; background: #f1f5fd; color: #5b7db5; border-radius: 7px; }
.quick-link strong { font-size: 12px; font-weight: 500; display: block; }
.quick-link small { font-size: 11px; color: var(--muted); }
.quick-link > svg { margin-left: auto; width: 16px; color: #98a5b8; }
.wide { grid-column: 1 / -1; }
.empty { text-align: center; padding: 55px 20px; color: #758299; }
.empty-icon { display: grid; place-items: center; margin: 0 auto 15px; width: 49px; height: 49px; background: #f2f5fb; border-radius: 13px; color: #849bb9; }
.empty h3 { font-size: 14px; color: #4b5e7a; font-weight: 500; margin: 0 0 6px; }
.empty p { font-size: 12px; margin: 0 0 20px; }
.toolbar { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; padding: 17px 20px; border-bottom: 1px solid var(--border); }
.search { display: flex; align-items: center; border: 1px solid #dce3ed; border-radius: 6px; padding-left: 11px; background: #fff; width: 280px; }
.search svg { width: 16px; height: 16px; color: #8a99ad; }
.search input { width: 100%; min-width: 0; border: none; background: transparent; padding: 9px 10px; font-size: 12px; }
.toolbar select { font-size: 12px; padding: 8px 10px; border: 1px solid #dce3ed; border-radius: 6px; background: white; color: #596a85; max-width: 250px; }
.toolbar-meta { margin-left: auto; color: #718097; font-size: 11px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 12px; }
th { text-align: left; background: #f9fafc; color: #728096; font-size: 11px; font-weight: 500; padding: 12px 20px; border-bottom: 1px solid var(--border); }
td { padding: 15px 20px; border-bottom: 1px solid #edf0f5; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcff; }
td small { display: block; color: #8490a3; font-size: 10px; margin-top: 3px; }
.muted { color: var(--muted); }
.inactive td { color: #929cab; background: #fafafa; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; padding: 3px 8px; border-radius: 4px; color: #63718a; background: #f0f3f7; }
.tag.active { background: #edf8f2; color: #25825a; }
.tag.pending, .tag.draft { background: #fff5e6; color: #9d6a16; }
.tag.needs_review, .tag.rejected { background: #fff0ed; color: #b6533e; }
.tag.blue { background: #edf3ff; color: #4d72b8; }
.table-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.table-footer .btn { min-height: 30px; padding: 4px 10px; font-size: 11px; }
.data-notice { padding: 12px 18px; margin-bottom: 18px; background: #fff9ec; border: 1px solid #f0e5ca; color: #8c6e37; border-radius: 7px; font-size: 12px; }
.quality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.quality-item { padding: 21px; }
.quality-item h3 { margin: 12px 0 6px; font-size: 15px; font-weight: 550; }
.quality-item p { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.quality-item .value { font-size: 30px; font-weight: 600; }
.activity-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 12px 0; font-size: 12px; border-bottom: 1px solid #edf0f5; }
.activity-row:last-child { border-bottom: 0; }
.activity-row small { color: var(--muted); font-size: 11px; }
dialog { border: 1px solid #dde5f0; border-radius: 12px; box-shadow: 0 25px 100px #172b4d33; padding: 0; width: min(720px, calc(100vw - 30px)); max-height: calc(100dvh - 48px); color: var(--ink); }
dialog::backdrop { background: #12244075; backdrop-filter: blur(2px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 25px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 17px; margin: 0; }
.icon-btn { border: 0; background: transparent; padding: 7px; color: #6d7d96; display: grid; place-items: center; }
.form-body { padding: 24px 25px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { color: #53647e; font-size: 12px; }
.field b { color: #cb5a48; font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; border: 1px solid #d7e0ec; padding: 9px 11px; border-radius: 6px; color: var(--ink); background: #fff; font-size: 13px; }
.field textarea { resize: vertical; min-height: 75px; }
.field input:disabled, .field select:disabled { background: #f3f5f9; }
.field small { font-size: 10px; color: var(--muted); }
.full { grid-column: 1 / -1; }
.form-section { font-size: 12px; font-weight: 600; margin: 5px 0 -3px; padding-top: 10px; border-top: 1px solid var(--border); }
.form-note { background: #f4f7fc; color: #627897; padding: 10px 13px; border-radius: 5px; font-size: 11px; margin-bottom: 20px; }
.form-error { background: #fff0ed; color: #b03e2d; border: 1px solid #f0c9c1; font-size: 12px; border-radius: 6px; padding: 10px 13px; margin: 15px 0 0; }
.form-error:empty { display: none; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 17px 25px; border-top: 1px solid var(--border); background: #fbfcfe; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; }
.detail-grid small { display: block; color: var(--muted); font-size: 11px; }
.detail-grid strong { font-size: 13px; font-weight: 500; }
.detail-notes { white-space: pre-wrap; font-size: 12px; color: #677893; }
.evidence-link { display: inline-flex; margin-top: 10px; font-size: 12px; }
.timeline { padding-left: 15px; border-left: 2px solid #e6ecf5; }
.timeline article { position: relative; margin-bottom: 22px; font-size: 12px; }
.timeline article:before { content: ''; width: 8px; height: 8px; background: #6d8fc4; border-radius: 50%; position: absolute; left: -20px; top: 8px; border: 2px solid white; }
.timeline p { color: #6a7a93; margin: 6px 0; font-size: 11px; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translate(-50%, 20px); background: #203653; color: white; padding: 12px 23px; border-radius: 8px; box-shadow: 0 5px 25px #0b23452b; opacity: 0; pointer-events: none; transition: .2s; z-index: 100; font-size: 13px; max-width: calc(100vw - 30px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.login { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100vh; background: white; }
.login-story { background: #192e50; color: white; display: flex; flex-direction: column; justify-content: center; padding: 9vw; position: relative; overflow: hidden; }
.login-story:after { content: ''; position: absolute; width: 500px; height: 500px; border: 1px solid #ffffff0d; border-radius: 50%; right: -220px; bottom: -100px; box-shadow: 0 0 0 80px #ffffff03, 0 0 0 160px #ffffff03; pointer-events: none; }
.login-story .eyebrow { color: #9bb8ea; margin-bottom: 28px; }
.login-story h1 { font-size: 39px; line-height: 1.5; letter-spacing: 1px; }
.login-story p { color: #aabdde; font-size: 13px; max-width: 350px; line-height: 2; margin-top: 25px; }
.login-tags { display: flex; gap: 12px; margin-top: 35px; flex-wrap: wrap; }
.login-tags span { padding: 7px 12px; border: 1px solid #ffffff20; border-radius: 5px; color: #b7cae9; font-size: 11px; }
.login-form { display: flex; flex-direction: column; justify-content: center; padding: 10vw 8vw; }
.login-logo { width: 130px; height: 100px; object-fit: contain; align-self: flex-start; margin-bottom: 24px; }
.login-form h2 { margin: 0 0 9px; font-size: 23px; }
.login-form p { font-size: 12px; color: var(--muted); margin-bottom: 32px; }
.login-form .btn { min-height: 44px; }
.login-info { padding: 15px; background: #f5f8fd; border-radius: 7px; color: #6c7e97; font-size: 11px; margin-top: 20px; line-height: 1.9; }
.compare-row { display: flex; gap: 20px; align-items: center; border-bottom: 1px solid var(--border); padding: 15px 0; }
.compare-row strong { margin-left: auto; }
@media (min-width: 1650px) { .content { padding-top: 42px; } }
@media (max-width: 1100px) { .layout { grid-template-columns: 205px minmax(0, 1fr); } .content { padding: 25px 22px; } .topbar { padding: 0 22px; } .stat { padding: 18px; } .stats { gap: 12px; } .dashboard-grid { grid-template-columns: 1fr; } .brand { gap: 7px; } .brand strong { font-size: 14px; } }
@media (max-width: 760px) { .layout { display: block; } .sidebar { position: static; height: auto; padding: 12px; } .brand { padding: 0 5px 10px; } .brand-image { width: 43px; height: 33px; } .brand strong { font-size: 15px; } .brand small { display: none; } .sidebar nav { display: flex; overflow-x: auto; padding-top: 10px; gap: 5px; } .nav-label, .sidebar-footer { display: none; } .nav-item { padding: 8px 11px; white-space: nowrap; margin: 0; font-size: 12px; gap: 6px; } .nav-item svg { width: 15px; height: 15px; } .topbar { height: 54px; padding: 0 16px; } .header-right { gap: 7px; } .header-right > span:not(.preview-label) { display: none; } .content { padding: 24px 16px; } h1 { font-size: 22px; } .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 15px; } .stats { grid-template-columns: 1fr 1fr; } .stat-value { font-size: 29px; } .stat { padding: 16px; } .banner { flex-wrap: wrap; gap: 9px; padding: 13px; } .banner > svg { display: none; } .banner p { flex-basis: 100%; } .quality-grid { grid-template-columns: 1fr; } .toolbar { padding: 14px; } .search { width: 100%; } .toolbar-meta { margin-left: 0; } .panel-head, .panel-body { padding: 17px; } .form-grid, .detail-grid { grid-template-columns: 1fr; } .form-body { padding: 18px; } .modal-head, .modal-footer { padding: 16px 18px; } .login { grid-template-columns: 1fr; } .login-story { padding: 32px; min-height: 240px; } .login-story h1 { font-size: 28px; } .login-story p, .login-tags { display: none; } .login-form { padding: 35px; } .login-logo { width: 90px; height: 69px; margin-bottom: 16px; } .route-bar-row { grid-template-columns: 21px minmax(100px, 1fr) 70px 35px; gap: 6px; } }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
