
    :root{
      --black:#161616;--cool:#05070c;--gray-100:#161616;--gray-90:#262626;--gray-80:#393939;--gray-70:#525252;--gray-60:#6f6f6f;--gray-30:#c6c6c6;--gray-20:#e0e0e0;--gray-10:#f4f4f4;--white:#fff;--blue:#0f62fe;--blue-70:#0043ce;--blue-20:#d0e2ff;--blue-10:#edf5ff;--cyan:#33b1ff;--purple:#8a3ffc;--red:#da1e28;--yellow:#f1c21b;
    }
    *{box-sizing:border-box} html,body{margin:0;min-height:100%;font-family:Arial,"IBM Plex Sans","PingFang SC","Microsoft YaHei",sans-serif;color:var(--gray-100);background:radial-gradient(circle at 74% -8%,rgba(15,98,254,.12),transparent 30%),linear-gradient(135deg,#f4f4f4 0%,#fff 62%,#eef4ff 100%)}
    button,input,textarea,select{font-family:inherit} button{cursor:pointer} a{text-decoration:none;color:inherit}.hidden{display:none!important}.demo-badge{display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(120,169,255,.55);background:rgba(15,98,254,.16);color:#d0e2ff;padding:6px 10px;font-size:12px;letter-spacing:.08em;text-transform:uppercase}.demo-badge.dark{background:#edf5ff;color:#001d6c;border-color:#78a9ff;text-transform:none;letter-spacing:0}.demo-badge:before{content:"";width:6px;height:6px;border-radius:50%;background:#33b1ff;box-shadow:0 0 12px rgba(51,177,255,.9)}
    .login{min-height:100vh;display:grid;place-items:center;position:relative;overflow:hidden;background:radial-gradient(circle at 18% 18%,rgba(51,177,255,.24),transparent 28%),radial-gradient(circle at 82% 76%,rgba(15,98,254,.26),transparent 32%),linear-gradient(135deg,#05070c 0%,#0b1220 42%,#111827 100%);color:#fff;padding:28px}.login-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);background-size:36px 36px;mask-image:radial-gradient(circle at center,black 0%,transparent 76%)}
    .login-card{position:relative;width:min(500px,94vw);padding:36px 36px 28px;background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.06));border:1px solid rgba(120,169,255,.36);box-shadow:0 34px 100px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.18);backdrop-filter:blur(18px)}.login-card:before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,var(--blue),var(--cyan),var(--purple))}.login-brand{display:flex;gap:14px;align-items:flex-start;margin-bottom:34px}.brand-mark{display:inline-block;width:30px;height:4px;background:linear-gradient(90deg,var(--blue),var(--cyan));box-shadow:0 0 18px rgba(15,98,254,.55);margin-top:9px}.login-brand span{display:block;color:#c6c6c6;font-size:12px;letter-spacing:.12em;text-transform:uppercase}.login-brand strong{display:block;color:#fff;font-size:23px;font-weight:500;letter-spacing:-.02em}.eyebrow{font-size:11px;color:var(--gray-70);text-transform:uppercase;letter-spacing:.12em}.login .eyebrow{color:#78a9ff}.login h1{font-size:38px;font-weight:300;margin:8px 0 12px;letter-spacing:-.04em}.login p{margin:0 0 26px;color:#d0e2ff;line-height:1.7}.field{display:block;margin-bottom:15px}.field span{display:block;font-size:12px;color:var(--gray-70);margin-bottom:6px}.login .field span{color:#d0e2ff}.input,.textarea,.select{width:100%;background:#fff;color:#161616;border:1px solid var(--gray-30);padding:10px 12px;font-size:14px;border-radius:0}.input:focus,.textarea:focus,.select:focus{outline:2px solid var(--blue);outline-offset:-2px}.login-input{background:rgba(255,255,255,.95);border-color:rgba(120,169,255,.55);min-height:46px}.login-error{background:rgba(218,30,40,.16);border-left:3px solid #ff8389;color:#ffd7d9;padding:10px 12px;font-size:13px;margin:6px 0 12px}.login-footer{margin-top:22px;color:#8d8d8d;font-size:12px}.orbit{position:absolute;right:8%;top:18%;width:270px;height:270px;border:1px solid rgba(120,169,255,.18);border-radius:50%;animation:spin 18s linear infinite}.orbit span{position:absolute;width:8px;height:8px;border-radius:50%;background:var(--cyan);box-shadow:0 0 18px rgba(51,177,255,.9)}.orbit span:nth-child(1){left:50%;top:-4px}.orbit span:nth-child(2){right:18px;bottom:54px;background:var(--blue)}.orbit span:nth-child(3){left:28px;bottom:36px;background:var(--purple)}@keyframes spin{to{transform:rotate(360deg)}}
    .shell{display:flex;min-height:100vh}.side{width:264px;background:linear-gradient(180deg,#000 0%,#121619 58%,#1c1c1c 100%);color:#fff;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;border-right:1px solid #393939;box-shadow:8px 0 30px rgba(0,0,0,.16)}.brand{padding:24px 22px 22px;border-bottom:1px solid #262626;background:linear-gradient(180deg,rgba(15,98,254,.08),rgba(255,255,255,0));line-height:1.32}.brand .brand-mark{display:block;margin:0 0 14px}.brand strong{display:block;color:#fff;font-size:18px;font-weight:500}.brand small{display:block;color:#c6c6c6;font-size:12px;letter-spacing:.08em;text-transform:uppercase}.nav{padding:12px 0;flex:1}.nav button{display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;color:#c6c6c6;text-align:left;padding:13px 20px;font-size:14px;border-left:4px solid transparent;transition:.16s}.nav button span{font-size:11px;color:#8d8d8d;width:22px;letter-spacing:.08em}.nav button:hover{background:#262626;color:#fff}.nav button.active{background:#262626;border-left-color:var(--blue);color:#fff;font-weight:600}.nav button.active span{color:#78a9ff}.side-footer{padding:16px 20px;border-top:1px solid #393939;font-size:12px;color:#c6c6c6}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--blue);margin-right:8px;box-shadow:0 0 10px rgba(15,98,254,.8)}
    .main{flex:1;min-width:0;padding:0 30px 44px}.top{background:rgba(255,255,255,.92);backdrop-filter:blur(12px);border-bottom:1px solid var(--gray-20);margin:0 -30px 24px;padding:22px 30px 18px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap}.top h1{margin:4px 0 0;font-size:30px;font-weight:400;letter-spacing:-.02em}.statusbar{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;max-width:760px}.status{background:#fff;border:1px solid var(--gray-20);padding:8px 12px;min-width:116px;box-shadow:0 8px 30px rgba(0,0,0,.03)}.status span{display:block;font-size:11px;color:var(--gray-70)}.status b{font-size:13px;color:#161616;font-weight:600}.notice{padding:12px 14px;margin:0 0 16px;border-left:4px solid var(--blue);background:var(--blue-10);color:#001d6c}.hero{position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:center;gap:24px;background:linear-gradient(120deg,#0f141d 0%,#1c2f52 56%,#0f62fe 100%);color:#fff;padding:28px 30px;border:1px solid #262626;box-shadow:0 28px 70px rgba(15,98,254,.16);margin-bottom:18px}.hero:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);background-size:28px 28px;mask-image:linear-gradient(90deg,transparent,black 18%,black 74%,transparent);opacity:.75}.hero>*{position:relative}.hero h2{font-size:31px;font-weight:400;margin:6px 0 10px}.hero p{margin:0;color:#d0e2ff;max-width:640px;line-height:1.65}.grid{display:grid;gap:18px}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.metric{position:relative;overflow:hidden;background:#fff;border:1px solid var(--gray-20);padding:18px 20px;box-shadow:0 12px 34px rgba(0,0,0,.045)}.metric:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--blue)}.metric span{display:block;color:var(--gray-70);font-size:13px}.metric b{font-size:32px;font-weight:300;letter-spacing:-.04em}.card{background:#fff;border:1px solid var(--gray-20);border-top:2px solid #f4f4f4;padding:20px;margin-bottom:16px;box-shadow:0 12px 34px rgba(0,0,0,.045)}.card:hover{box-shadow:0 16px 44px rgba(0,0,0,.06)}.card h2,.card h3{margin:0 0 16px;font-weight:500;letter-spacing:-.01em}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.two{display:grid;grid-template-columns:300px minmax(0,1fr);gap:16px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:16px}.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--gray-30);background:#fff;color:#161616;padding:10px 14px;font-size:14px;margin-right:8px;margin-top:8px;min-height:38px;transition:.16s}.btn:hover{background:var(--gray-10);border-color:#8d8d8d}.btn.blue{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 8px 20px rgba(15,98,254,.18)}.btn.blue:hover{background:var(--blue-70);border-color:var(--blue-70)}.btn.small{padding:6px 10px;font-size:12px;min-height:30px}.btn.danger{color:#fff;background:var(--red);border-color:var(--red)}.btn.danger.ghost{background:#fff;color:var(--red);border-color:#ffb3b8}.btn.danger.ghost:hover{background:#fff1f1}.logout{margin-top:0;align-self:stretch}.muted{color:var(--gray-70);font-size:13px}.table{width:100%;border-collapse:collapse;font-size:14px;background:#fff}.table th{background:#f4f4f4;color:#161616;font-weight:600;text-align:left;border-bottom:1px solid var(--gray-20);padding:10px;white-space:nowrap}.table td{border-bottom:1px solid var(--gray-20);padding:10px;vertical-align:middle}.table.aligned th:last-child,.table.aligned td:last-child{text-align:right;width:220px}.empty{text-align:center;color:var(--gray-70);padding:24px!important}.pill{display:inline-block;background:#f4f4f4;border:1px solid var(--gray-20);padding:4px 8px;color:#161616;font-size:12px;white-space:nowrap}.pill.ok{background:var(--blue-10);border-color:#78a9ff;color:#001d6c}.action-cell{white-space:nowrap}.candidate{display:block;width:100%;background:#fff;border:1px solid var(--gray-20);color:#161616;padding:12px;margin-bottom:8px;text-align:left}.candidate.active{border-left:4px solid var(--blue);background:var(--blue-10);border-color:#78a9ff}.candidate b{display:block}.candidate span{font-size:12px;color:var(--gray-70)}.list{position:sticky;top:92px;align-self:start}.textarea{min-height:90px;resize:vertical}.textarea.report{min-height:680px;line-height:1.65;font-size:15px}.config-line{display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:#f4f4f4;padding:12px;margin-bottom:12px}.task-card{background:#f9fbff;border:1px solid #d0e2ff;padding:12px 14px;margin:0;min-width:240px}.task-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}.progress-track{height:9px;background:#e0e0e0;overflow:hidden}.progress-bar{height:100%;background:linear-gradient(90deg,var(--blue),var(--cyan));transition:width .4s ease}.task-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:8px;color:#525252;font-size:12px}.hidden-file{display:none}.linkbtn{background:transparent;border:0;color:#161616;text-align:left;padding:0}.tag-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px}.tag-filter{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:14px 18px}.tag-chips{display:flex;gap:8px;flex-wrap:wrap}.chip{border:1px solid #c6c6c6;background:#fff;color:#161616;padding:7px 11px;font-size:12px}.chip.active{background:var(--blue);border-color:var(--blue);color:#fff}.tag-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.tag-card{background:#fff;border:1px solid #e0e0e0;border-top:3px solid var(--blue);padding:14px;box-shadow:0 10px 30px rgba(0,0,0,.045);position:relative}.tag-card:before{content:"";position:absolute;right:14px;top:14px;width:22px;height:3px;background:linear-gradient(90deg,var(--blue),var(--cyan))}.tag-level-input{max-width:180px;background:var(--blue-10);border:1px solid #78a9ff;color:#001d6c;padding:6px 9px;font-size:12px;font-weight:600}.tag-title-input{width:100%;border:0;border-bottom:1px solid #c6c6c6;font-size:18px;font-weight:600;color:#161616;padding:8px 0 10px;margin-bottom:10px}.tag-textarea,.tag-mini{width:100%;border:1px solid #e0e0e0;background:#fafafa;color:#161616;padding:10px;resize:vertical;font-family:inherit}.tag-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0}.tag-card-top{display:flex;gap:10px;align-items:center;margin-bottom:10px;padding-right:34px}.confidence{margin-left:auto;background:#f4f4f4;border:1px solid #c6c6c6;color:#161616;padding:6px 8px}
    @media(max-width:1160px){.two{grid-template-columns:1fr}.kpis,.tag-summary{grid-template-columns:repeat(2,1fr)}.tag-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.side{width:230px}.main{padding:0 18px 36px}.top{margin:0 -18px 20px;padding-left:18px;padding-right:18px}.orbit{display:none}}
  

    /* Visual brand layer. The original application script is unchanged. */
    :root {
      color-scheme: light;
      --navy:#092d5b; --navy-2:#143e70; --blue:#0f62b6;
      --ink:#203751; --muted:#677d94; --gold:#b08a4b;
      --line:#d8e2ed; --background:#f3f5f8; --wash:#f7f9fc;
      --gray-100:#203751; --gray-90:#294760; --gray-80:#375b80;
      --gray-70:#677d94; --gray-60:#7890a7; --gray-30:#bdcddd;
      --gray-20:#d8e2ed; --gray-10:#f7f9fc;
      --blue-70:#143e70; --blue-20:#d4e2f1; --blue-10:#eef4fb;
      --red:#a64b4d; --cyan:#638bb5; --purple:#b08a4b;
    }
    html,body { background:var(--background); color:var(--ink); font-family:"PingFang SC","Microsoft YaHei","Noto Sans SC",Arial,sans-serif; font-size:14px; line-height:1.65; }
    button,input,textarea,select { font:inherit; }
    button { border-radius:0; }
    button:disabled { opacity:.48; cursor:not-allowed; }
    :focus-visible { outline:2px solid #1a69b7; outline-offset:3px; }
    .brand-mark,.brand .brand-mark,.login-brand .brand-mark { position:relative; width:38px; height:38px; flex:none; display:grid; place-items:center; margin:0; background:var(--navy); box-shadow:none; }
    .brand-mark:before { content:""; width:18px; height:15px; background:linear-gradient(to bottom,#fff 0 2px,transparent 2px 6px,#fff 6px 8px,transparent 8px 13px,#fff 13px 15px); }
    .brand-mark:after { content:""; position:absolute; right:8px; top:14px; width:4px; height:4px; background:#d1b176; }
    .ys-brand-lockup { display:flex; align-items:center; gap:12px; }
    .ys-brand-copy { display:grid; gap:3px; }
    .ys-brand-copy strong,.brand .ys-brand-copy strong,.login-brand .ys-brand-copy strong { color:#173858; font-size:19px; font-weight:650; letter-spacing:3px; line-height:1.25; }
    .ys-brand-copy small,.brand .ys-brand-copy small { color:#778ba1; font:650 9px/1.4 Arial,sans-serif; letter-spacing:1.45px; }
    .demo-badge,.demo-badge.dark { background:#f7f9fc; border:1px solid var(--line); color:#617790; padding:3px 8px; font-size:10px; line-height:1.6; letter-spacing:.6px; }
    .demo-badge:before { width:5px; height:5px; border-radius:0; background:var(--gold); box-shadow:none; }
    .login { background:var(--background); color:var(--ink); padding:40px 24px; border-top:4px solid var(--navy); }
    .login-grid,.orbit { display:none; }
    .login-card { width:min(480px,100%); padding:40px 40px 30px; background:#fff; border:1px solid var(--line); box-shadow:0 12px 36px #18365b12; backdrop-filter:none; }
    .login-card:before { height:3px; left:-1px; right:auto; width:104px; background:var(--navy); }
    .login-brand { align-items:center; margin-bottom:30px; }
    .ys-login-product { display:flex; justify-content:space-between; align-items:center; gap:14px; margin:0 0 28px; padding:0 0 18px; border-bottom:1px solid var(--line); color:var(--muted); font-size:13px; }
    .login .eyebrow { color:#7890a7; font:650 10px/1.5 Arial,sans-serif; letter-spacing:1.8px; }
    .login h1 { margin:8px 0 26px; color:var(--navy); font-size:28px; font-weight:650; letter-spacing:.5px; }
    .login .field span { color:#617790; }
    .login-input { min-height:45px; border-color:#cfdbeb; background:#fff; }
    .login .btn { margin-right:0; }
    .login-footer { margin-top:28px; padding-top:19px; border-top:1px solid var(--line); color:#8297ab; font-size:10px; letter-spacing:1px; text-align:center; }
    .login-error { background:#fcf1f1; color:var(--red); border-left-color:var(--red); }
    .shell { border-top:3px solid var(--navy); }
    .side { width:240px; flex:0 0 240px; height:calc(100vh - 3px); background:#fff; color:var(--ink); border-right:1px solid var(--line); box-shadow:none; }
    .brand { padding:28px 24px 23px; border-bottom:1px solid var(--line); background:#fff; line-height:1.5; }
    .ys-product-name { margin:27px 0 10px; color:var(--navy); font-size:15px; font-weight:650; letter-spacing:.4px; }
    .nav { padding:18px 12px; }
    .nav button { min-height:46px; gap:12px; border-left:2px solid transparent; padding:11px 14px; margin-bottom:5px; color:#617790; font-size:13px; line-height:1.5; }
    .nav button span { width:22px; color:#91a2b3; font:11px Arial,sans-serif; letter-spacing:1px; }
    .nav button:hover { color:var(--navy); background:#f7f9fc; }
    .nav button.active { color:var(--navy); background:#eef4fb; border-left-color:var(--navy); font-weight:650; }
    .nav button.active span { color:#3b70a7; }
    .side-footer { padding:19px 24px; border-top:1px solid var(--line); color:#7890a7; font-size:11px; }
    .side-footer small { display:block; padding-top:7px; font:9px Arial,sans-serif; color:#9aabbc; letter-spacing:1.1px; }
    .dot { width:6px; height:6px; background:var(--gold); border-radius:0; box-shadow:none; margin-right:8px; }
    .main { padding:0 32px 24px; }
    .top { margin:0 -32px 30px; padding:22px 32px; min-height:109px; background:#fff; backdrop-filter:none; border-bottom:1px solid var(--line); align-items:center; }
    .eyebrow { color:#7890a7; font:650 10px/1.5 Arial,sans-serif; letter-spacing:1.7px; }
    .top h1 { margin:7px 0 0; font-size:27px; line-height:1.35; font-weight:650; letter-spacing:.6px; color:var(--navy); }
    .statusbar { gap:0; align-items:center; }
    .status { border:0; border-left:1px solid #e4ebf2; background:transparent; padding:0 18px; min-width:100px; box-shadow:none; }
    .status:first-child { border-left:0; }
    .status span { color:#8297ab; font-size:10px; margin-bottom:3px; }
    .status b { color:#355979; font-size:12px; font-weight:550; }
    .statusbar .logout { align-self:center; margin-left:10px; margin-right:0; border-color:var(--line); color:#6b8299; }
    .hero { background:#fff; color:var(--ink); padding:26px 28px; border:1px solid var(--line); border-top:3px solid var(--navy); box-shadow:none; margin-bottom:20px; gap:24px; }
    .hero:before { display:none; }
    .hero h2 { color:var(--navy); font-size:25px; line-height:1.5; font-weight:650; letter-spacing:.4px; margin:8px 0 7px; }
    .hero p { color:#71859d; font-size:12px; line-height:1.8; }
    .hero .btn { flex:none; margin:0; }
    .kpis { gap:16px; margin-bottom:22px; }
    .metric { padding:18px 22px; border:1px solid var(--line); box-shadow:none; min-height:111px; }
    .metric:before { width:48px; height:2px; top:-1px; left:-1px; bottom:auto; background:#91adca; }
    .metric:first-child:before { width:78px; background:var(--navy); }
    .metric span { color:#71859d; font-size:12px; }
    .metric b { display:block; margin-top:8px; color:#16416c; font:500 30px/1.2 Arial,sans-serif; font-variant-numeric:tabular-nums; letter-spacing:0; }
    .card { padding:22px 24px; border:1px solid var(--line); background:#fff; box-shadow:none; margin-bottom:18px; min-width:0; overflow-x:auto; }
    .card:hover { box-shadow:none; }
    .card h2,.card h3 { color:var(--navy); font-size:17px; font-weight:650; letter-spacing:.3px; margin:0 0 16px; }
    .card-head { margin-bottom:8px; }
    .card-head h2 { margin-bottom:8px; }
    .card-head>.btn { margin-top:0; }
    .card-head p { margin:0 0 8px; }
    .btn { padding:8px 14px; min-height:36px; color:#375b80; border:1px solid #cbd8e7; background:#fff; border-radius:0; font-size:12px; font-weight:550; white-space:nowrap; box-shadow:none; }
    .btn:hover { color:var(--navy); background:#eef4fb; border-color:#91b2d9; }
    .btn.blue { color:#fff; background:var(--navy); border-color:var(--navy); box-shadow:none; }
    .btn.blue:hover { background:#154577; border-color:#154577; }
    .btn.small { font-size:11px; min-height:30px; padding:5px 9px; margin-right:5px; }
    .btn.danger { background:var(--red); border-color:var(--red); }
    .btn.danger.ghost { background:#fff; color:var(--red); border-color:#e7c6c6; }
    .btn.danger.ghost:hover { background:#fcf1f1; border-color:#ca9396; }
    .table { color:#42617f; font-size:12px; min-width:670px; }
    .table th { background:#f7f9fc; color:#7990a7; padding:12px 13px; border-bottom:1px solid var(--line); font-size:11px; font-weight:550; }
    .table td { border-bottom:1px solid #e7edf4; padding:15px 13px; }
    .table tbody tr:last-child td { border-bottom:0; }
    .table tbody tr:hover { background:#fbfcfe; }
    .table td b { color:#214c76; font-weight:650; }
    .table.aligned th:last-child,.table.aligned td:last-child { width:212px; }
    .table .btn { margin-top:0; }
    .table .muted { font-size:11px; }
    .pill { padding:3px 7px; background:#f7f9fc; border-color:#dfe7ef; color:#6b8299; font-size:10px; }
    .pill.ok { color:#376b8f; background:#eef4fb; border-color:#d4e2f1; }
    .muted { font-size:12px; color:#7890a7; line-height:1.8; }
    .notice { padding:12px 16px; background:#eaf1f9; border-left:3px solid #4d80b6; color:#57728e; font-size:12px; }
    .form-grid { gap:16px 20px; }
    .field { margin-bottom:4px; }
    .field span { color:#65819c; font-size:12px; margin-bottom:7px; }
    .input,.textarea,.select { color:#294760; background:#fff; border-color:#cfdbeb; padding:10px 12px; font-size:13px; min-height:40px; }
    .input:focus,.textarea:focus,.select:focus { outline:2px solid #638fbd; outline-offset:-1px; }
    .input::placeholder { color:#9aabbc; }
    .two { grid-template-columns:246px minmax(0,1fr); gap:18px; }
    .list { padding:15px; top:20px; }
    .candidate { padding:13px 12px; background:#fff; color:var(--ink); border-color:#dfe7ef; border-left:3px solid #dfe7ef; margin-bottom:8px; }
    .candidate:last-child { margin-bottom:0; }
    .candidate:hover { background:#f7f9fc; border-color:#bdcddd; }
    .candidate.active { border:1px solid #d4e2f1; border-left:3px solid var(--navy); background:#eef4fb; }
    .candidate b { font-size:13px; font-weight:650; color:#214c76; margin-bottom:3px; }
    .candidate span { font-size:10px; line-height:1.7; color:#7890a7; }
    .textarea.report { min-height:590px; line-height:1.9; font-size:14px; padding:20px 22px; }
    .config-line { padding:10px 14px; border:1px solid var(--line); background:#f7f9fc; color:#617790; font-size:11px; }
    .config-line b { color:#355979; font-weight:550; }
    .task-card { border-color:#d4e2f1; background:#f7f9fc; min-width:210px; font-size:11px; }
    .task-head b { color:#355979; font-weight:550; }
    .progress-track { height:5px; background:#e2eaf3; }
    .progress-bar { background:#3b70a7; }
    .task-meta { color:#7890a7; font-size:10px; }
    .linkbtn { color:var(--navy); }
    .tag-summary { gap:14px; }
    .tag-summary .metric { min-height:100px; padding:17px; }
    .tag-summary .metric b { font-size:26px; }
    .tag-grid { gap:16px; }
    .tag-card { border:1px solid var(--line); border-top:2px solid #789bbc; padding:18px; box-shadow:none; min-width:0; }
    .tag-card:before { display:none; }
    .tag-card-top { padding-right:0; gap:8px; }
    .tag-level-input { width:calc(100% - 70px); min-width:0; max-width:180px; color:#376b8f; background:#eef4fb; border-color:#d4e2f1; font-size:11px; padding:7px 9px; }
    .confidence { background:#f7f9fc; color:#617790; border-color:#d4e2f1; font-size:11px; padding:6px 8px; }
    .tag-title-input { font-size:16px; font-weight:650; color:var(--navy); border-bottom-color:var(--line); padding:8px 0 11px; }
    .tag-textarea,.tag-mini { color:#42617f; background:#fbfcfe; border-color:#dfe7ef; font-size:12px; line-height:1.8; }
    .tag-textarea { min-height:85px; }
    .tag-mini { min-height:125px; }
    .chip { color:#617790; border-color:var(--line); font-size:11px; }
    .chip.active { color:#fff; background:var(--navy); border-color:var(--navy); }
    .empty { color:#8ca0b3; }
    .ys-footer { display:flex; justify-content:space-between; gap:15px; margin-top:32px; padding-top:18px; border-top:1px solid var(--line); color:#8c9eb0; font:10px/1.8 Arial,"PingFang SC",sans-serif; letter-spacing:.7px; }
    .ys-footer>span:first-child { color:#59738e; letter-spacing:2px; }
    @media(min-width:1600px) { .main { padding-left:44px; padding-right:44px; } .top { margin-left:-44px; margin-right:-44px; padding-left:44px; padding-right:44px; } }
    @media(max-width:1200px) { .side { width:220px; flex-basis:220px; } .brand { padding-left:20px; padding-right:20px; } .main { padding:0 24px 24px; } .top { margin-left:-24px; margin-right:-24px; padding:20px 24px; gap:16px; } .hero { padding:24px; } .hero h2 { font-size:23px; } .status { padding:0 12px; min-width:80px; } .two { grid-template-columns:220px minmax(0,1fr); } .tag-grid { grid-template-columns:1fr; } .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .kpis { grid-template-columns:repeat(4,minmax(0,1fr)); } .metric { padding:18px; } }
    @media(max-width:980px) { .side { width:194px; flex-basis:194px; } .brand { padding:24px 17px; } .ys-brand-lockup { gap:9px; } .ys-brand-copy strong,.brand .ys-brand-copy strong { font-size:17px; letter-spacing:2px; } .ys-brand-copy small,.brand .ys-brand-copy small { font-size:8px; letter-spacing:1px; } .nav { padding:14px 8px; } .nav button { padding-left:11px; font-size:12px; } .main { padding:0 20px 24px; } .top { margin:0 -20px 24px; padding:20px; } .top h1 { font-size:24px; } .top>.statusbar { width:100%; justify-content:flex-start; } .status:first-child { padding-left:0; } .hero { flex-direction:column; align-items:flex-start; gap:18px; } .hero h2 { font-size:22px; } .kpis { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } .two { grid-template-columns:1fr; } .list { position:static; display:flex; gap:10px; } .candidate { min-width:160px; margin-bottom:0; } .tag-summary { grid-template-columns:repeat(3,minmax(0,1fr)); } }
    @media(max-width:680px) { .shell { display:block; } .side { width:100%; height:auto; position:static; border-right:0; border-bottom:1px solid var(--line); } .brand { padding:16px 20px; display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; } .ys-product-name { margin:0; font-size:12px; } .brand>.demo-badge { display:none; } .nav { display:flex; overflow-x:auto; padding:0 12px; } .nav button { width:auto; flex:none; margin:0; padding:12px 12px; gap:7px; border-left:0; border-bottom:2px solid transparent; min-height:45px; } .nav button span { width:auto; font-size:9px; } .nav button.active { border-left:0; border-bottom-color:var(--navy); } .side-footer { display:none; } .main { padding:0 16px 20px; } .top { margin:0 -16px 20px; padding:18px 16px; } .top h1 { font-size:24px; } .status { padding:0 10px; min-width:0; } .status b { font-size:11px; } .statusbar .logout { margin-left:7px; } .hero { padding:20px; } .hero h2 { font-size:20px; } .card { padding:18px; } .form-grid { grid-template-columns:1fr; } .metric { min-height:96px; padding:16px; } .metric b { font-size:28px; } .tag-summary { gap:9px; } .tag-summary .metric { padding:13px 10px; } .tag-summary .metric span { font-size:10px; } .tag-summary .metric b { font-size:22px; } .tag-detail-grid { grid-template-columns:1fr; } .tag-mini { min-height:85px; } .ys-footer { flex-wrap:wrap; gap:4px; } .login-card { padding:32px 26px 24px; } .login h1 { font-size:25px; } }
    @media(prefers-reduced-motion:reduce) { *,*:before,*:after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
    @media print { .side,.statusbar,.ys-footer { display:none; } .main { padding:0; } .top { margin:0 0 20px; } .card,.hero,.metric { break-inside:avoid; } }
  
/* Folio application layout, retaining the confirmed Yushou visual layer. */
.brand-logo{width:38px;height:38px;flex:none}.projectbar{display:flex;gap:8px;align-items:center;margin-bottom:20px}.projectbar select{max-width:320px}.projectbar .btn{margin:0}.table-scroll{overflow:auto}.table{min-width:600px}.notice{position:sticky;top:0;z-index:10;white-space:pre-wrap}.notice.error{background:#fcf1f1;border-color:#a64b4d;color:#923e43}.notice:empty{display:none}.summary-note{padding:14px 18px;background:#f7f9fc;border:1px solid var(--line);color:#677d94;font-size:12px;margin:14px 0}.empty-state{padding:48px 24px;text-align:center;color:#677d94}.empty-state h3{color:var(--navy)}.workspace-actions{display:flex;gap:10px;flex-wrap:wrap}.workspace-actions .btn{margin-right:0}.editor-caption{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.editor-caption .select{width:auto}.btn:disabled{cursor:wait}.tag-mini{min-height:112px}.tag-card label{display:block;color:#677d94;font-size:11px;margin-top:8px}.tag-card input{max-width:100%}.tag-card .tag-title-input{margin-bottom:0}.tag-level-input{max-width:none!important}.tag-card-top label{margin:0;flex:1}.tag-card-top label:last-child{max-width:92px}.tag-card-top input,.tag-card-top select{width:100%}.tag-filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.tag-filters select{width:auto}.job-state{display:inline-block;color:#376b8f;border-left:2px solid #b08a4b;padding-left:8px;font-size:12px}.busy-indicator{width:9px;height:9px;display:inline-block;background:#b08a4b;margin-right:6px;animation:pulse 1.5s infinite}@keyframes pulse{50%{opacity:.3}}.muted code{color:#355979}.list{overflow:auto;max-height:80vh}.list-title{color:#677d94;font-size:12px;margin-bottom:12px}.top .statusbar{max-width:none}.status{min-width:100px}.status b{overflow-wrap:anywhere}.settings-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}.env-table{font-size:12px;width:100%;border-collapse:collapse}.env-table td{padding:9px 0;border-bottom:1px solid var(--line);vertical-align:top}.env-table code{font-size:11px;overflow-wrap:anywhere}.save-indicator{color:#b08a4b;font-size:12px;margin-left:10px}.empty{white-space:normal}.pill.failed{background:#fcf1f1;color:#923e43;border-color:#e9c9cb}.pill.running,.pill.queued{background:#f7f3ec;color:#8c6a32;border-color:#e1d4bc}.pill.succeeded{background:#eef4fb;color:#376b8f;border-color:#c9dbee}dialog{padding:0;border:1px solid var(--line);color:var(--ink);width:min(880px,94vw);max-height:88vh;background:#fff;box-shadow:0 20px 80px #092d5b30}dialog::backdrop{background:#092d5b66}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 24px;background:#f7f9fc;border-bottom:1px solid var(--line);position:sticky;top:0}.dialog-head h2{font-size:18px;margin:0}.dialog-body{padding:24px}.dialog-body pre{font:13px/1.8 inherit;white-space:pre-wrap;overflow-wrap:anywhere}.dialog-body textarea{min-height:340px}.file-item{padding:14px 0;border-bottom:1px solid var(--line)}.file-item strong{overflow-wrap:anywhere}.file-item summary{cursor:pointer}.alert-box{border-left:3px solid #b08a4b;background:#faf7f1;color:#765c33;padding:12px 16px;font-size:12px;line-height:1.8;margin-top:16px}.header-rule{width:40px;height:2px;background:#b08a4b;margin:12px 0}.material-size{font-size:12px;color:#677d94}.main{max-width:1800px}.hero .eyebrow{color:#b9cee4}.hero p{max-width:760px}.description{max-width:740px}.side-footer{line-height:1.9}.form-grid .field{margin:0}.checkbox-label{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#677d94}.checkbox-label input{width:16px;height:16px;accent-color:#092d5b}button,a,input,select{touch-action:manipulation}a.btn:hover{text-decoration:none}.nav button:focus-visible{outline-offset:-4px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:980px){.list{max-height:none}.settings-grid{grid-template-columns:1fr}.list .candidate{max-width:220px;flex:none}.list-title{display:none}.statusbar{justify-content:flex-start}.hero .btn{min-height:40px}}
@media(max-width:680px){.table-scroll{margin:0 -3px}.settings-grid{gap:0}.statusbar{gap:0}.status{min-width:80px}.brand .ys-brand-lockup{gap:10px}.ys-product-name{margin:0}.list{padding:10px}.dialog-body{padding:18px}.dialog-head{padding:14px 18px}.btn{min-height:42px}.btn.small{min-height:38px}.projectbar{flex-wrap:wrap}.projectbar .select{flex:1}.table{font-size:12px}.hero{gap:4px}.hero p{font-size:12px}.hero h2{font-size:21px}.top .statusbar{width:100%}.tag-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.ys-footer{font-size:9px}.settings-grid .card{min-width:0}}

.tag-grid>.tag-card:only-child{grid-column:1/-1}
