:root{font-family:Inter,"Segoe UI","Microsoft JhengHei",sans-serif;color:#294152;background:#f3f6f8;font-size:16px;--teal:#167d86;--line:#dce6ec;--muted:#617989}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{outline-offset:4px}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}.sidebar{position:fixed;inset:0 auto 0 0;width:272px;background:white;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:16px;padding:28px 22px 35px}.brand-icon{display:grid;place-items:center;width:58px;height:62px;background:var(--teal);border-radius:15px;color:white;font-size:27px}.brand strong{font-size:27px;letter-spacing:-.6px}.brand small{display:block;font-size:14px;color:var(--muted);margin-top:5px}nav{padding:6px 14px;overflow:auto}nav a,summary{display:flex;align-items:center;gap:18px;padding:17px 20px;border-radius:8px;font-size:17px}nav a:hover{background:#f0f6f7}nav a.active{color:#096d77;background:#e3f0f1;font-weight:650}.nav-home span,summary span{font-size:24px}.nav-label{font-size:12px;letter-spacing:2px;color:#7b919f;padding:30px 20px 10px}summary{list-style:none;cursor:pointer;color:var(--teal)}summary:after{content:'⌄';margin-left:auto}details:not([open]) summary:after{content:'›'}.subnav{margin-left:29px;padding-left:10px;border-left:1px solid var(--line)}.subnav a{font-size:15px;padding:15px 17px;margin:4px 0}.sidebar-footer{margin:auto 16px 20px;padding:17px 12px;background:#f4f8f8;border-radius:10px;display:flex;gap:10px;align-items:center;font-size:14px}.sidebar-footer small{display:block;margin-top:7px;color:var(--muted);font-size:12px}.local-indicator{width:8px;height:8px;border-radius:50%;background:#259b77}.shell{margin-left:272px;min-height:100vh;display:flex;flex-direction:column}header{height:84px;border-bottom:1px solid var(--line);background:white;display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:20px}.breadcrumb{font-size:17px;color:#728695;white-space:nowrap}.breadcrumb span{margin:0 14px;color:#b0bfc7}.breadcrumb b{font-weight:500;color:#294152}.header-tools{display:flex;align-items:center;gap:18px;font-size:14px}.module-label,.workspace{padding:11px 20px;border:1px solid var(--line);border-radius:8px}.avatar{border-radius:50%;background:#e7f3f4;color:var(--teal);padding:12px}.lang{color:var(--muted)}main{padding:36px;max-width:1700px;width:100%;margin:0 auto;flex:1}.eyebrow{font-size:12px;letter-spacing:2px;color:#78909e;font-weight:650;margin:0 0 9px}h1{font-size:30px;line-height:1.35;margin:0 0 12px;letter-spacing:.5px}h2{font-size:19px;margin:0}h3{font-size:17px;margin:0 0 10px}p{line-height:1.7}.description{color:var(--muted);margin:0;font-size:15px}.page-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.title-actions{display:flex;gap:10px}.btn{display:inline-flex;justify-content:center;align-items:center;border:1px solid #cddde3;border-radius:7px;padding:10px 16px;background:white;color:#345366;gap:8px;font-size:14px;min-height:42px}.btn:hover{background:#f0f6f7;border-color:#8cafb7}.btn.primary{background:var(--teal);color:white;border-color:var(--teal)}.btn.primary:hover{background:#096b74}.btn.small{padding:5px 12px;min-height:32px}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:24px;margin-bottom:22px}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.panel-header p{margin:6px 0 0;color:var(--muted);font-size:14px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:26px}.stat{background:white;border:1px solid var(--line);border-radius:10px;padding:19px 22px}.stat-label{color:var(--muted);font-size:14px}.stat strong{display:block;font-size:28px;margin-top:10px;font-weight:600}.stat small{font-size:13px;color:var(--muted);margin-left:8px;font-weight:400}.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.card{padding:24px;border:1px solid var(--line);border-radius:10px;transition:background .15s,border-color .15s;display:block}.card:hover{background:#f5fafb;border-color:#82b8be}.card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.card-icon{width:42px;height:42px;border-radius:10px;background:#eaf5f5;display:grid;place-items:center;color:var(--teal);font-size:19px}.card p{font-size:14px;color:var(--muted);margin:0 0 14px}.code{font-family:Consolas,monospace;font-size:12px;color:#657f90;overflow-wrap:anywhere}.badge{display:inline-block;padding:4px 9px;font-size:12px;line-height:1.5;border-radius:5px;background:#f1f5f7;color:#586e7c;white-space:nowrap}.badge.good{background:#e7f5ee;color:#216b51}.badge.warn{background:#fff3dd;color:#865d12}.badge.bad{background:#fbecec;color:#a83d3d}.status-line{display:flex;align-items:center;gap:12px;padding:14px 18px;background:#eef7f4;border:1px solid #d1e9de;border-radius:8px;margin-bottom:22px;font-size:14px}.status-line.warn{background:#fff8e9;border-color:#f1dfb7}.status-line .btn{margin-left:auto}.toolbar{display:flex;align-items:center;gap:12px;margin-bottom:20px}.toolbar input{max-width:360px}.toolbar .count{margin-left:auto;color:var(--muted);font-size:14px}input,select,textarea{width:100%;border:1px solid #cddce3;border-radius:6px;background:white;color:#294152;padding:11px 12px}input:focus,select:focus,textarea:focus{outline:2px solid #9cc9ce;border-color:var(--teal)}textarea{resize:vertical;line-height:1.7}label{display:block;font-size:14px;font-weight:550;margin-bottom:7px}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:14px}th{background:#f6f8fa;text-align:left;color:#647c8c;font-size:13px;font-weight:500;padding:13px 14px;white-space:nowrap}td{border-bottom:1px solid #edf1f4;padding:18px 14px;vertical-align:top;line-height:1.6}td .code{display:block;margin-top:5px}td .name{font-weight:600}td.purpose{max-width:310px;min-width:180px}td.actions{white-space:nowrap}tr:last-child td{border-bottom:none}.editor{font-family:Consolas,"Microsoft JhengHei",monospace;font-size:14px;min-height:440px;tab-size:2;background:#fbfcfd}.editor-meta{display:flex;flex-wrap:wrap;gap:20px;margin-bottom:16px;font-size:13px;color:var(--muted)}.note{font-size:14px;color:var(--muted);line-height:1.7}.split{display:grid;grid-template-columns:310px minmax(0,1fr);gap:20px}.file-list{max-height:550px;overflow:auto;margin-top:15px}.file-item{display:block;width:100%;text-align:left;border:0;background:white;padding:11px 9px;border-radius:5px;color:#3d5b6c;font-size:13px;overflow-wrap:anywhere;line-height:1.5}.file-item:hover,.file-item.selected{background:#eaf4f5;color:#116f78}.file-preview{white-space:pre-wrap;overflow-wrap:anywhere;font-family:Consolas,"Microsoft JhengHei",monospace;font-size:13px;line-height:1.8;max-height:520px;overflow:auto;background:#f8fafb;padding:18px;border-radius:6px;margin:0}.rule-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:20px}.rule-item{padding:14px;background:#f7fafb;border-radius:7px}.rule-item strong{display:block;font-size:14px;margin-bottom:7px}.rule-item code{font-size:12px;color:#617c8b}.events{list-style:none;padding:0;margin:0}.events li{display:flex;gap:15px;justify-content:space-between;border-bottom:1px solid #eef2f4;padding:13px 0;font-size:14px;line-height:1.6}.events small{color:var(--muted);font-size:12px;display:block}.empty{padding:35px;text-align:center;color:var(--muted)}.page-footer{font-size:11px;letter-spacing:1.4px;color:#8a9ca7;margin:6px 36px 20px;display:flex;justify-content:space-between}.page-footer span{letter-spacing:2px}dialog{border:1px solid var(--line);border-radius:12px;padding:0;width:min(640px,calc(100vw - 32px));max-height:90vh;color:#294152;box-shadow:0 24px 90px #18394733}dialog::backdrop{background:#20384866;backdrop-filter:blur(2px)}.dialog-head{padding:24px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.dialog-body{padding:24px}.dialog-footer{padding:18px 24px;background:#f7f9fa;display:flex;justify-content:flex-end;gap:10px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.full{grid-column:1/-1}.error{color:#a33b3b;font-size:14px;line-height:1.6;white-space:pre-wrap}.close{border:0;background:none;color:#607a8b;font-size:25px}.help{font-size:12px;color:var(--muted);margin:6px 0 0}#toast{position:fixed;bottom:28px;left:calc(50% + 110px);transform:translateX(-50%);background:#254651;color:white;padding:14px 23px;border-radius:8px;box-shadow:0 6px 25px #213c4920;display:none;z-index:20;font-size:14px;max-width:90vw}.warning-list{line-height:1.9;font-size:14px;overflow-wrap:anywhere} .hidden{display:none!important}@media(min-width:1600px){.cards{grid-template-columns:repeat(4,1fr)}}@media(max-width:1100px){.sidebar{width:228px}.shell{margin-left:228px}.brand{padding-left:17px;gap:12px}.brand strong{font-size:24px}main{padding:26px}.header-tools .module-label,.lang{display:none}.split{grid-template-columns:250px minmax(0,1fr)}.stats{gap:12px}.stat{padding:16px}}@media(max-width:760px){.sidebar{position:relative;width:100%;border-right:0}.brand{padding:16px 20px}.brand-icon{height:44px;width:44px;border-radius:10px;font-size:21px}.brand strong{font-size:23px}.brand small{font-size:12px}nav{display:flex;align-items:flex-start;padding:0 12px 12px;gap:5px;overflow:visible}.nav-label,.sidebar-footer{display:none}nav .nav-home,summary{font-size:14px;padding:12px}summary{padding-top:13px}.subnav{display:flex;flex-wrap:wrap;margin-left:0;padding-left:0;border:0}.subnav a{font-size:13px;padding:9px}.shell{margin-left:0}header{height:65px;padding:0 20px}.header-tools{gap:8px}.workspace{padding:7px;font-size:12px}.avatar{display:none}.breadcrumb{font-size:14px}main{padding:23px 16px}.page-title{align-items:flex-start;flex-wrap:wrap}h1{font-size:25px}.stats{grid-template-columns:repeat(2,1fr)}.cards,.split{grid-template-columns:1fr}.panel{padding:18px}.file-list{max-height:220px}.rule-grid{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.page-footer{margin:6px 16px 20px}.page-footer span{display:none}#toast{left:50%}.editor{min-height:360px}.toolbar{flex-wrap:wrap}.toolbar .count{margin-left:0}}
@media(max-width:420px){nav{display:block}.nav-home{white-space:nowrap}.subnav a{flex:1 1 42%}.stats{grid-template-columns:1fr 1fr;gap:8px}.stat{padding:12px}.stat strong{font-size:22px;overflow-wrap:anywhere}.stat small{display:block;margin:4px 0 0}.breadcrumb span{margin:0 6px}.header-tools{display:none}.rule-grid{grid-template-columns:1fr}.page-title .title-actions{flex-wrap:wrap}.panel-header{flex-wrap:wrap}.toolbar select{max-width:100%}}
#registry-status{max-width:160px}
.btn.danger{color:#a33b3b;border-color:#e8c7c7}.btn.danger:hover{background:#fff3f3;border-color:#d89494}.actions .btn{margin:0 5px 5px 0}.danger-box{background:#fff4f3;border:1px solid #efcfcc;border-radius:8px;padding:15px 17px;margin-bottom:18px;color:#803b37}.danger-box p{margin:6px 0 0;font-size:13px}
.auth-stage{min-height:calc(100vh - 60px);display:grid;place-items:center;padding:20px}.signed-out{background:linear-gradient(145deg,#fbfcfd 0%,#eef4f7 100%)}.signed-out main{padding:0;max-width:none}.signed-out .page-footer{display:none}.signed-out .auth-panel{width:min(672px,100%);max-width:none;margin:0;padding:0;border-radius:26px;overflow:hidden;box-shadow:0 22px 55px #28475615}.auth-content{padding:64px 56px 38px}.auth-brand{justify-content:center;margin-bottom:45px}.auth-brand .brand-icon{width:84px;height:84px;border-radius:22px;font-size:38px}.auth-brand strong{font-size:46px;letter-spacing:-1.5px;color:#203a4b}.auth-brand small{display:block;color:#78909e;font-size:18px;font-weight:400;margin-top:5px}.auth-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin-bottom:24px}.auth-heading h1{font-size:30px;margin-bottom:7px}.auth-heading p{margin:0;color:#8a9aa3;font-size:19px}.auth-heading select{width:auto;min-width:170px;padding:14px 18px;border-radius:10px}.auth-panel form{gap:23px;margin-top:24px}.auth-panel label{font-size:18px;margin-bottom:10px}.auth-input{position:relative;display:flex;align-items:center}.auth-input>span{position:absolute;left:20px;color:#768a96;font-size:22px;z-index:1}.auth-input input{height:62px;border-radius:11px;padding:14px 58px;font-size:17px}.auth-input input::placeholder{color:#b6bfc4}.password-toggle{position:absolute;right:10px;width:44px;height:44px;border:0;background:transparent;color:#7c8d96;font-size:21px;border-radius:8px}.password-toggle:hover{background:#eef5f6}.auth-submit{height:62px;border-radius:11px;font-size:20px;font-weight:700;letter-spacing:5px;margin-top:7px;box-shadow:0 12px 26px #167d8628}.auth-help{text-align:center;color:#748995;font-size:15px;margin:8px 0 0}.auth-panel>footer{text-align:center;background:#f7f9fa;border-top:1px solid var(--line);padding:24px;color:#718794;font-size:14px}.signed-out #toast{left:50%}
@media(max-width:700px){.auth-stage{padding:10px}.signed-out .auth-panel{border-radius:18px}.auth-content{padding:35px 23px 28px}.auth-brand{margin-bottom:32px}.auth-brand .brand-icon{width:62px;height:62px;border-radius:17px;font-size:28px}.auth-brand strong{font-size:34px}.auth-brand small{font-size:14px}.auth-heading{align-items:flex-start;flex-direction:column}.auth-heading h1{font-size:25px}.auth-heading p{font-size:16px}.auth-heading select{min-width:155px}.auth-input input{height:56px}.auth-panel label{font-size:16px}.auth-submit{height:56px}.auth-panel>footer{padding:20px}}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}#workspace-select{width:auto;max-width:260px;font-size:14px;padding:10px 12px}.user-label{font-size:14px;white-space:nowrap}.sidebar nav{flex:1}.sidebar-footer{flex-shrink:0}.nav-disabled{display:block;color:#81939f;padding:12px 16px;font-size:14px;line-height:1.6}.nav-disabled small{display:block;font-size:11px;color:#9a7d44}.workspace-strip{background:#e9f3f4;border:1px solid #d2e6e8;border-radius:12px;padding:25px 28px;margin-bottom:26px;display:flex;align-items:center;justify-content:space-between;gap:24px}.workspace-strip h2{font-size:24px;margin:8px 0}.workspace-strip p{font-size:14px;margin:4px 0;color:#5d7c88}.workspace-metrics{display:flex;gap:34px;color:#5c7784;font-size:13px}.workspace-metrics strong{display:block;font-size:30px;font-weight:550;color:#176f77;margin-bottom:6px}.capability-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.capability-card{display:flex;align-items:flex-start;gap:16px;padding:22px 19px;border:1px solid var(--line);border-radius:10px;min-height:145px;background:white}.capability-card[href]:hover{background:#f5fbfb;border-color:#7caeb7}.capability-icon{font-size:23px;color:#688595;flex-shrink:0}.capability-info{min-width:0;flex:1}.capability-title{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:13px}.capability-title h3{font-size:17px;line-height:1.6;margin:0}.capability-title .badge{font-size:10px;flex-shrink:0}.capability-info p{font-size:13px;color:#6d8592;line-height:1.65;margin:10px 0 0}.capability-info>.badge{margin-top:12px}.capability-card.unavailable{background:#fafcfd}.capability-card.unavailable h3{color:#6d8491}.workspace-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.workspace-card .workspace-symbol{display:grid;place-items:center;background:#e7f3f4;border-radius:10px;width:50px;height:50px;font-weight:650;color:var(--teal)}.workspace-card .btn{width:100%;margin-top:12px}.auth-panel{max-width:500px;margin:25px auto;padding:35px;background:white;border:1px solid var(--line);border-radius:15px}.auth-brand{display:flex;align-items:center;gap:14px;margin-bottom:30px}.auth-brand strong{font-size:26px}.auth-brand .brand-icon{width:48px;height:48px;font-size:23px}.auth-panel h1{font-size:27px}.auth-panel form{display:grid;gap:17px;margin-top:25px}.auth-panel .btn{width:100%}.auth-panel .note{font-size:12px;margin-bottom:0}.auth-panel .error{margin:0}.signed-out .sidebar{display:none}.signed-out .shell{margin-left:0}.signed-out header{display:none}.signed-out main{padding-top:20px}.signed-out .page-footer{max-width:950px;width:calc(100% - 50px);margin:0 auto 25px}.signed-out .auth-panel{box-shadow:0 15px 45px #34526608}nav details+details{margin-top:5px}@media(min-width:1700px){.capability-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1300px){.capability-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-grid{grid-template-columns:repeat(2,1fr)}.user-label{display:none}}@media(max-width:760px){.header-tools{display:flex!important;flex-wrap:wrap}header{height:auto;min-height:80px;flex-wrap:wrap;padding:14px 16px;gap:12px}#workspace-select{max-width:210px;font-size:13px}.workspace-strip{padding:20px;align-items:flex-start;flex-wrap:wrap}.workspace-strip h2{font-size:22px}.workspace-metrics{gap:30px}.capability-grid,.workspace-grid{grid-template-columns:1fr}.capability-card{min-height:120px}.sidebar nav{display:block}.sidebar nav details{margin:3px 0}.sidebar .subnav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.nav-disabled{padding:8px;font-size:12px}.sidebar .nav-label{display:block;padding:14px 12px 5px}.sidebar details:not(:first-of-type){content-visibility:auto}.auth-panel{padding:24px 20px;margin:10px auto}.signed-out main{padding:14px}.auth-panel h1{font-size:23px}}@media(max-width:420px){.sidebar .subnav{grid-template-columns:1fr 1fr}.header-tools{width:100%}#workspace-select{flex:1;min-width:0;max-width:none}.workspace-metrics strong{font-size:25px}.capability-title{flex-wrap:wrap}.auth-panel{border-radius:10px}}

.public-view {
  background: #f4f7f9;
}
.public-view .sidebar-footer {
  background: #f4f8f8;
}
.public-view .public-login {
  min-width: 96px;
  padding: 12px 24px;
  border-color: #27838b;
  color: #126e76;
  text-align: center;
}
.public-view .public-login.primary {
  color: #fff;
}
.public-hero {
  padding: 18px 4px 32px;
}
.public-hero h1 {
  margin: 10px 0 8px;
  color: #203d52;
  font-size: 36px;
  line-height: 1.25;
}
.public-hero p {
  margin: 0;
  color: #8295a1;
  font-size: 19px;
}
.public-welcome {
  min-height: 330px;
  display: grid;
  place-items: center;
  text-align: center;
}
.public-welcome > div {
  max-width: 680px;
}
.public-welcome h2 {
  margin: 14px 0 16px;
  color: #203d52;
  font-size: 29px;
}
.public-welcome p {
  margin: 0;
  color: #6f8794;
  font-size: 17px;
  line-height: 1.9;
}
@media (max-width: 760px) {
  .public-view .header-tools {
    width: auto;
    margin-left: auto;
  }
  .public-view .module-label {
    display: none;
  }
  .public-view .public-login {
    min-width: 78px;
    padding: 10px 18px;
  }
  .public-hero {
    padding-top: 5px;
  }
  .public-hero h1 {
    font-size: 29px;
  }
  .public-welcome {
    min-height: 260px;
    padding: 28px 22px;
  }
  .public-welcome h2 {
    font-size: 24px;
  }
}

@media (min-width: 1101px) {
  .sidebar {
    width: 343px;
  }
  .shell {
    margin-left: 343px;
    border-left: 46px solid #f3f7f8;
  }
  .brand {
    gap: 21px;
    padding: 21px 17px 32px;
  }
  .brand-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    font-size: 30px;
  }
  .brand strong {
    font-size: 34px;
  }
  .brand small {
    margin-top: 5px;
    font-size: 16px;
  }
  .sidebar nav {
    padding: 5px 0;
  }
  .sidebar nav .nav-home {
    width: 309px;
    min-height: 90px;
    margin: 10px 34px 0 0;
    padding-left: 30px;
    border-radius: 0 15px 15px 0;
    font-size: 19px;
  }
  .public-view .sidebar nav .nav-home.active {
    border: 3px solid #1a8c94;
    background: #e5edef;
  }
  .sidebar .nav-label {
    padding: 30px 23px 10px;
  }
  .sidebar details {
    margin: 0 14px;
  }
  .sidebar summary {
    font-size: 18px;
  }
  .sidebar .subnav {
    margin-left: 30px;
  }
  header {
    height: 97px;
    padding: 0 34px 0 0;
  }
  main {
    padding: 20px 30px 36px;
  }
  .page-footer {
    margin-left: 30px;
    margin-right: 30px;
  }
}
@media (max-width: 1100px) {
  .shell {
    border-left: 0;
  }
}

.language-switch {
  width: auto;
  min-width: 118px;
  height: 42px;
  padding: 8px 34px 8px 12px;
  border-color: var(--line);
  border-radius: 8px;
  color: #4e6877;
  background-color: #fff;
  font-size: 14px;
}
.language-switch.compact {
  max-width: 132px;
}
@media (max-width: 760px) {
  .language-switch {
    min-width: 106px;
    height: 40px;
    padding-left: 9px;
    font-size: 13px;
  }
}

/* AI-DEMO N01 fixed sidebar shell */
html,body{max-width:100%;overflow-x:hidden}.brand-row{position:relative;display:flex;align-items:center;min-height:74px;border-bottom:1px solid var(--line)}.brand-row .brand{flex:1;min-width:0;padding:15px 16px;gap:12px}.brand-row .brand-icon{width:42px;height:42px;flex:0 0 42px;border-radius:11px;font-size:19px}.brand-row .brand strong{font-size:21px}.brand-row .brand small{font-size:11px}.sidebar-toggle{position:absolute;right:-13px;top:24px;width:26px;height:26px;padding:0;border:1px solid var(--line);border-radius:50%;background:#fff;color:#45636f;z-index:2}.sidebar{width:240px}.shell{min-width:0;margin-left:240px;border-left:0}header{height:56px;min-height:56px;padding:0 24px}main{min-width:0;max-width:none;padding:24px}.page-footer{margin:6px 24px 18px}.sidebar nav{padding:12px 10px}.sidebar nav>a,.sidebar summary{min-height:46px;padding:11px 12px;gap:12px;font-size:14px}.sidebar nav>a>span,.sidebar summary>span{width:22px;text-align:center;font-size:18px}.sidebar nav>a>b,.sidebar summary>b{font-weight:600}.sidebar .subnav{margin-left:17px}.sidebar .subnav a{padding:10px 13px;font-size:13px}.sidebar-footer{margin:10px 10px 14px;padding:12px 10px}.sidebar-collapsed .sidebar{width:64px}.sidebar-collapsed .shell{margin-left:64px}.sidebar-collapsed .brand-row .brand{padding:14px 11px}.sidebar-collapsed .brand-row .brand span,.sidebar-collapsed nav b,.sidebar-collapsed nav .nav-disabled,.sidebar-collapsed nav details .subnav,.sidebar-collapsed nav details summary:after,.sidebar-collapsed .sidebar-footer div{display:none}.sidebar-collapsed .sidebar nav{padding:12px 7px}.sidebar-collapsed .sidebar nav>a,.sidebar-collapsed .sidebar summary{justify-content:center;padding:11px 8px}.sidebar-collapsed .sidebar-footer{justify-content:center}.sidebar-collapsed .sidebar-toggle{right:-13px}

/* P02 customer data grid */
.customer-page{min-width:0}.customer-page .page-title{margin-bottom:18px}.demo-banner{display:flex;align-items:center;gap:12px;margin-bottom:16px;padding:11px 14px;color:#665024;background:#fff8e8;border:1px solid #efdfb8;border-radius:8px;font-size:13px;line-height:1.5}.demo-banner strong{flex:0 0 auto;padding:3px 8px;color:#805b10;background:#ffedc2;border-radius:4px}.page-tabs{display:flex;gap:22px;margin-bottom:0;padding:0 4px;border-bottom:1px solid var(--line)}.page-tabs button{position:relative;padding:12px 4px;color:#708592;background:transparent;border:0}.page-tabs button.active{color:var(--teal);font-weight:650}.page-tabs button.active:after{position:absolute;right:0;bottom:-1px;left:0;height:2px;background:var(--teal);content:''}.customer-grid-panel{min-width:0;margin-top:0;border-top-left-radius:0;padding:0;overflow:hidden}.customer-filters{display:grid;grid-template-columns:minmax(240px,1fr) 170px 190px auto;gap:12px;align-items:end;padding:18px 20px;border-bottom:1px solid var(--line)}.customer-filters label{margin:0}.customer-filters label span{display:block;margin-bottom:6px;color:#587181;font-size:12px;font-weight:650}.filter-reset{margin-bottom:0}.customer-selection{min-height:40px;padding:9px 20px;display:flex;justify-content:space-between;gap:14px;color:var(--muted);background:#f9fbfc;border-bottom:1px solid var(--line);font-size:12px}.customer-table-scroll{max-width:100%;max-height:520px;overflow:auto;outline-offset:-3px}.customer-table{min-width:980px;table-layout:fixed}.customer-table th{position:sticky;top:0;z-index:2;height:44px;padding:0 14px;background:#f5f8f9;box-shadow:0 1px 0 var(--line)}.customer-table th:nth-child(1){width:150px}.customer-table th:nth-child(2){width:230px}.customer-table th:nth-child(3){width:150px}.customer-table th:nth-child(4){width:110px}.customer-table th:nth-child(5){width:110px}.customer-table th:nth-child(6){width:110px}.customer-table th:nth-child(7){width:130px}.customer-table th button{width:100%;height:44px;padding:0;display:flex;align-items:center;justify-content:space-between;color:#587181;background:transparent;border:0;text-align:left;font-size:12px}.customer-table th button:hover{color:var(--teal)}.customer-table td{height:48px;padding:9px 14px;vertical-align:middle;white-space:nowrap}.customer-table tbody tr{cursor:pointer}.customer-table tbody tr:hover,.customer-table tbody tr:focus{background:#f0f8f8;outline:2px solid #9cc9ce;outline-offset:-2px}.customer-table td small{display:block;margin-top:2px;color:#84949d;font-size:11px}.customer-table .sticky-id{position:sticky;left:0;z-index:1;background:inherit}.customer-table thead .sticky-id{z-index:3;background:#f5f8f9}.row-select{display:flex;align-items:center;gap:9px;margin:0;font-weight:500}.row-select input{width:16px;height:16px;margin:0;accent-color:var(--teal)}.customer-status{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border-radius:999px;font-size:12px}.status-合作中{color:#1f6d51;background:#e7f5ee}.status-潛在{color:#275d83;background:#e8f2fa}.status-追蹤中{color:#845c10;background:#fff1d1}.status-暫停{color:#6f6871;background:#efedef}.customer-pagination{min-height:58px;padding:10px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);color:var(--muted);font-size:13px}.customer-pagination>div{display:flex;align-items:center;gap:10px}.customer-pagination strong{min-width:54px;color:#425c69;text-align:center}.drawer-scrim{position:fixed;inset:56px 0 0 240px;z-index:9;background:rgba(25,49,59,.24)}.customer-drawer{position:fixed;top:56px;right:0;bottom:0;z-index:10;width:420px;max-width:calc(100vw - 64px);display:flex;flex-direction:column;background:#fff;box-shadow:-16px 0 50px rgba(34,58,69,.18)}.drawer-head{padding:22px 24px;display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid var(--line)}.drawer-head h2{font-size:22px}.customer-drawer #customer-detail{padding:24px;overflow:auto}.customer-summary{display:grid;grid-template-columns:48px 1fr auto;gap:13px;align-items:center;padding-bottom:22px;border-bottom:1px solid var(--line)}.customer-summary h3{margin:0 0 4px}.customer-avatar{width:48px;height:48px;display:grid;place-items:center;color:#fff;background:var(--teal);border-radius:12px;font-size:20px;font-weight:700}.detail-list{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:18px 0}.detail-list div{padding:14px 0;border-bottom:1px solid #edf1f4}.detail-list div:nth-child(odd){padding-right:12px}.detail-list .wide{grid-column:1/-1;padding-right:0}.detail-list dt{color:#7b8e99;font-size:12px}.detail-list dd{margin:6px 0 0;color:#294152;font-size:14px;line-height:1.6}.drawer-note{padding:12px;color:#775e28;background:#fff8e8;border-radius:7px;font-size:12px}.drawer-foot{margin-top:auto;padding:16px 24px;display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);background:#f8fafb}.sidebar-collapsed .drawer-scrim{left:64px}.drawer-open{overflow:hidden}

@media(max-width:1000px){.customer-filters{grid-template-columns:minmax(220px,1fr) 150px 170px}.customer-filters .filter-reset{grid-column:1/-1;justify-self:start}.header-tools .module-label{display:none}}
@media(max-width:760px){.sidebar,.sidebar-collapsed .sidebar{position:fixed;width:64px}.shell,.sidebar-collapsed .shell{margin-left:64px}.brand-row{min-height:56px}.brand-row .brand{padding:7px 11px}.brand-row .brand span,.sidebar-toggle,.sidebar nav b,.sidebar nav .nav-disabled,.sidebar nav details .subnav,.sidebar nav details summary:after,.sidebar-footer div{display:none}.sidebar nav{display:block;padding:8px 7px;overflow-y:auto}.sidebar nav>a,.sidebar summary{justify-content:center;min-height:44px;padding:9px 7px}.sidebar .nav-label{display:none}.sidebar nav details{margin:2px 0}.sidebar-footer{display:flex;margin:8px 7px;padding:10px;justify-content:center}header{min-height:56px;height:auto;padding:8px 12px;align-items:center}.breadcrumb{font-size:13px}.header-tools{display:flex!important;margin-left:auto}.header-tools .language-switch,.header-tools .user-label{display:none}#workspace-select{max-width:145px;padding:7px 9px;font-size:11px}.header-tools .btn{min-height:34px;padding:5px 9px;font-size:12px}main{padding:16px 12px}.page-title{align-items:flex-start;flex-direction:column}.page-title .title-actions{width:100%;flex-wrap:wrap}.page-title .title-actions .btn{flex:1}.demo-banner{align-items:flex-start}.customer-filters{grid-template-columns:1fr}.customer-filters .filter-reset{grid-column:auto}.customer-selection{align-items:flex-start;flex-direction:column}.customer-pagination{align-items:flex-start;flex-direction:column}.customer-pagination>div{width:100%;justify-content:space-between}.customer-drawer{top:0;width:calc(100vw - 64px)}.drawer-scrim{inset:0 0 0 64px}.page-footer{margin-left:12px;margin-right:12px}.public-view .sidebar{width:64px}.signed-out .shell{margin-left:0}}
@media(max-width:480px){.customer-filters{padding:15px}.customer-pagination{padding:12px 15px}.customer-page h1{font-size:23px}.detail-list{grid-template-columns:1fr}.detail-list div:nth-child(odd){padding-right:0}.detail-list .wide{grid-column:auto}.customer-summary{grid-template-columns:42px 1fr}.customer-summary .customer-status{grid-column:2}.customer-avatar{width:42px;height:42px}.drawer-head,.customer-drawer #customer-detail,.drawer-foot{padding-left:17px;padding-right:17px}}
/* AI mechanical learning workspace */
.public-learning-hero{min-height:360px}.public-learning-hero h1{max-width:660px;font-size:clamp(30px,4vw,48px);line-height:1.2}.public-learning-hero p{max-width:650px;font-size:17px}.public-learning-hero .eyebrow{color:#c9f7ef}.public-gear-art{position:relative;width:240px;height:220px;flex:0 0 240px}.public-gear-art span{position:absolute;display:grid;place-items:center;color:#d0faf3;line-height:1;text-shadow:0 16px 32px #073d4555}.public-gear-art span:first-child{font-size:172px;left:0;top:0}.public-gear-art span:last-child{font-size:105px;right:0;bottom:0}.public-learning-section{margin-bottom:20px}.public-learning-section .knowledge-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.public-learning-section .knowledge-card h3{margin:15px 0 5px}.public-learning-section .knowledge-card p{min-height:0}.public-learning-flow{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.public-learning-flow span{padding:13px 8px;border-radius:9px;background:#e9f6f4;color:#126f77;text-align:center;font-size:13px;font-weight:700}.public-view .sidebar nav>a,.public-view .sidebar nav>button{font-weight:600}.public-view .sidebar nav>a>span,.public-view .sidebar nav>button>span{width:22px;text-align:center}.public-view .sidebar nav>a b,.public-view .sidebar nav>button b{font-weight:600}.public-view .sidebar nav>button{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;padding:11px 12px;border:0;border-radius:8px;background:transparent;color:inherit;text-align:left;font-size:14px}.public-view .sidebar nav>button:hover{background:#f0f6f7}
@media(max-width:900px){.public-learning-flow{grid-template-columns:repeat(3,minmax(0,1fr))}.public-gear-art{width:150px;flex-basis:150px}.public-gear-art span:first-child{font-size:115px}.public-gear-art span:last-child{font-size:70px}}
@media(max-width:600px){.public-learning-hero{min-height:0}.public-gear-art{display:none}.public-learning-flow{grid-template-columns:repeat(2,minmax(0,1fr))}}
.learning-hero{display:flex;align-items:center;justify-content:space-between;gap:32px;padding:32px;margin-bottom:20px;border-radius:18px;color:#fff;background:linear-gradient(125deg,#0b6670,#178089 58%,#2ca99d)}
.learning-hero h2{margin:5px 0 8px;font-size:30px}.learning-hero p{margin:0 0 20px;color:#dff8f4}.hero-actions{display:flex;gap:10px;flex-wrap:wrap}.learning-hero .btn{border-color:#c9f3ed;background:#fff;color:#126e76}.learning-hero .btn.primary{background:#d7fff8}.progress-ring{width:132px;height:132px;flex:0 0 132px;border-radius:50%;display:grid;place-content:center;text-align:center;background:radial-gradient(circle,#147881 57%,transparent 59%),conic-gradient(#b9fff1 68%,rgba(255,255,255,.22) 0)}.progress-ring strong{font-size:28px}.progress-ring span{font-size:12px;color:#ddfaf6}.learning-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.learning-stats>div{padding:18px 20px;border:1px solid var(--line);border-radius:14px;background:#fff}.learning-stats span,.learning-stats small{display:block;color:var(--muted)}.learning-stats strong{display:block;margin:6px 0;font-size:24px}.learning-dashboard,.progress-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.75fr);gap:20px;margin-bottom:20px}.task-list{list-style:none;margin:0;padding:0}.task-list li{display:grid;grid-template-columns:34px 1fr auto;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}.task-list li>span{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#eaf6f5;color:#167b83;font-weight:700}.task-list .done>span{background:#1d938a;color:#fff}.task-list small,.path-steps small{display:block;color:var(--muted);margin-top:3px}.weakness-score{display:flex;justify-content:space-between;gap:10px}.mastery-bar,.map-progress{height:8px;border-radius:99px;background:#e6efef;overflow:hidden}.mastery-bar i,.map-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#178089,#42bba8)}.weakness-card .mastery-bar{margin:12px 0 18px}.path-steps{display:flex;align-items:center;gap:10px;overflow-x:auto;padding:8px 0}.path-steps a{min-width:135px;color:inherit;text-decoration:none}.path-steps a>span{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#edf3f3;color:#667}.path-steps .complete>span,.path-steps .current>span{background:#178089;color:#fff}.path-steps i{height:2px;min-width:24px;flex:1;background:#dfe9e9}
.map-overview{display:grid;grid-template-columns:auto minmax(180px,1fr) minmax(220px,auto);gap:22px;align-items:center;padding:20px 24px;margin-bottom:20px;border:1px solid #bfe1de;background:#f3fbfa;border-radius:14px}.map-overview span,.map-overview small{display:block;color:var(--muted)}.map-overview strong{font-size:28px}.map-overview p{margin:0}.knowledge-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.knowledge-card{position:relative;padding:22px;border:1px solid var(--line);border-radius:15px;background:#fff}.knowledge-card.current{border-color:#83c9c3;box-shadow:0 5px 18px rgba(18,110,118,.08)}.knowledge-card.locked{opacity:.68}.knowledge-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#e6f6f3;color:#147881;font-size:22px}.knowledge-card>.badge{position:absolute;top:22px;right:22px}.knowledge-card h2{margin:18px 0 7px}.knowledge-card p{min-height:44px;color:var(--muted)}.knowledge-card .mastery-bar{margin:18px 0}.knowledge-card .btn{width:100%}
.lesson-layout{display:grid;grid-template-columns:210px minmax(0,1fr) 250px;gap:18px;align-items:start}.lesson-rail,.coach-panel{position:sticky;top:80px;padding:20px;border:1px solid var(--line);border-radius:14px;background:#fff}.lesson-rail h2{margin:5px 0 20px}.lesson-rail a{display:flex;gap:9px;align-items:center;padding:11px 8px;color:#4d6264;text-decoration:none;border-left:3px solid transparent}.lesson-rail a>span{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#edf3f3;font-size:12px}.lesson-rail a.active{color:#147881;background:#edf9f7;border-left-color:#178089}.lesson-rail a.done span,.lesson-rail a.active span{background:#178089;color:#fff}.lesson-content{padding:30px;border:1px solid var(--line);border-radius:14px;background:#fff}.lesson-label{color:#16858a;font-weight:700;font-size:12px;letter-spacing:.08em}.lesson-content>h2{font-size:28px}.lead{font-size:17px;line-height:1.75;color:#41595b}.gear-diagram{min-height:230px;display:flex;align-items:center;justify-content:center;padding:25px;border-radius:14px;background:linear-gradient(145deg,#eff9f8,#f8fbfb);overflow:hidden}.gear{display:grid;place-content:center;text-align:center;border:10px dashed #178089;border-radius:50%;background:#d8f1ee;color:#0b656d;font-size:23px;font-weight:800}.gear small{display:block;font-size:11px;margin-top:4px}.small-gear{width:105px;height:105px}.large-gear{width:165px;height:165px}.mesh-mark{font-size:28px;color:#178089}.formula-card{margin:20px 0;padding:18px;border-left:4px solid #178089;border-radius:8px;background:#f1f9f8}.formula-card span{display:block;color:var(--muted)}.formula-card strong{font-size:20px}.concept-note{padding:16px;border-radius:10px;background:#fff9e9;border:1px solid #f0dfac}.concept-note h3{margin-top:0}.concept-note p{margin-bottom:0}.lesson-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;flex-wrap:wrap}.coach-panel{text-align:center}.coach-avatar{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 12px;border-radius:18px;background:#178089;color:#fff;font-weight:800}.coach-panel button,.coach-topics button{width:100%;margin:5px 0;padding:10px;text-align:left;border:1px solid var(--line);border-radius:8px;background:#fff;color:#274a4d;cursor:pointer}.coach-panel button:hover,.coach-topics button:hover{border-color:#178089;background:#f1fbfa}.coach-panel small{display:block;margin-top:12px;color:var(--muted)}
.coach-workspace{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:610px;border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden}.coach-topics{padding:22px;background:#f6faf9;border-right:1px solid var(--line)}.coach-topics>span{display:block;margin:6px 0;color:var(--muted)}.coach-topics .mastery-bar{margin:12px 0 28px}.chat-panel{display:flex;min-width:0;flex-direction:column}.chat-messages{flex:1;max-height:520px;padding:28px;overflow-y:auto;background:linear-gradient(#fff,#fbfdfd)}.message{width:min(78%,620px);margin-bottom:18px;padding:14px 16px;border-radius:14px;background:#edf7f6}.message.user{margin-left:auto;background:#177d85;color:#fff}.message p{margin:5px 0;line-height:1.6}.message small{color:#627b7d}.message.user small{color:#e2f4f2}.chat-input{display:grid;grid-template-columns:1fr auto;gap:10px;padding:18px;border-top:1px solid var(--line)}.chat-panel>.note{margin:0;padding:0 18px 16px}
.lab-layout{display:grid;grid-template-columns:260px minmax(320px,1fr) 270px;gap:18px;align-items:stretch}.lab-controls label{display:flex;justify-content:space-between;margin:18px 0 7px;font-weight:700}.lab-controls input[type=range]{width:100%;accent-color:#178089}.lab-controls input[type=number]{width:100%}.lab-controls .btn{margin-top:20px}.lab-stage{display:flex;flex-direction:column;justify-content:center;min-height:440px;overflow:hidden;background:radial-gradient(circle,#fff 0,#eef8f7 75%)}.lab-gears{display:flex;justify-content:center;align-items:center}.sim-gear{display:grid;place-content:center;flex:0 0 auto;border:12px dashed #16818a;border-radius:50%;background:#d7f0ed;text-align:center;font-weight:800;transition:width .25s,height .25s}.sim-gear.driven{margin-left:-6px;border-color:#52a89f;background:#e9f7f5}.sim-gear small{display:block;margin-top:5px;font-size:10px}.direction-line{display:flex;justify-content:space-between;gap:12px;margin-top:28px;font-size:12px;color:var(--muted)}.lab-results dl>div{padding:14px 0;border-bottom:1px solid var(--line)}.lab-results dt{color:var(--muted)}.lab-results dd{margin:4px 0 0;font-size:24px;font-weight:800;color:#126f77}.lab-results .concept-note{margin:18px 0}.lab-results .btn{width:100%}
.quiz-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px;align-items:start}.quiz-question{margin:0 0 14px}.quiz-question legend{padding:0 6px;font-weight:800}.quiz-question label{display:flex;align-items:center;gap:10px;padding:10px;border-radius:8px;cursor:pointer}.quiz-question label:hover{background:#f2f9f8}.quiz-question input{accent-color:#178089}.quiz-status{position:sticky;top:80px}.quiz-status>strong{display:block;font-size:28px;margin:12px 0}.quiz-status .mastery-bar{margin-bottom:18px}.quiz-submit{width:100%;margin-bottom:20px}.quiz-result{display:flex;gap:24px;align-items:center;border-color:#72bfb7;background:#f2fbfa}.result-score{font-size:56px;font-weight:900;color:#137780}.quiz-result small{display:block;margin-top:8px;color:var(--muted)}
.project-hero{padding:28px;margin-bottom:20px;border-radius:16px;color:#fff;background:linear-gradient(125deg,#114f59,#178089)}.project-hero h2{font-size:28px;margin:8px 0}.project-hero p{color:#daf2f0}.project-meta{display:flex;gap:12px;flex-wrap:wrap}.project-meta span{padding:6px 10px;border-radius:99px;background:rgba(255,255,255,.14)}.project-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:18px}.project-steps{list-style:none;margin:0;padding:0}.project-steps li{display:flex;gap:12px;padding:15px;margin-bottom:9px;border:1px solid var(--line);border-radius:12px;background:#fff}.project-steps li>span{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#e9f1f1}.project-steps li.active{border-color:#178089}.project-steps li.active>span{background:#178089;color:#fff}.project-steps p{margin:3px 0;color:var(--muted)}.brief-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}.brief-grid>div{padding:15px;border-radius:10px;background:#f2f8f7}.brief-grid span,.brief-grid strong{display:block}.brief-grid span{color:var(--muted);font-size:12px}.project-brief textarea{width:100%;resize:vertical}.skill-row{display:grid;grid-template-columns:110px 1fr 42px;gap:12px;align-items:center;margin:18px 0}.review-list{list-style:none;margin:0;padding:0}.review-list li{display:flex;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}.review-list small{display:block;margin-top:4px;color:var(--muted)}.risk{padding:5px 8px;border-radius:8px;background:#fff2ce;color:#835d00;font-size:12px}.risk.high{background:#fee6e2;color:#a23d30}.teacher-table table td small{display:block;color:var(--muted)}
@media(max-width:1180px){.knowledge-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lesson-layout{grid-template-columns:190px minmax(0,1fr)}.coach-panel{position:static;grid-column:1/-1;display:grid;grid-template-columns:auto 1fr repeat(3,minmax(120px,1fr));gap:10px;align-items:center;text-align:left}.coach-panel .coach-avatar{margin:0}.coach-panel h2,.coach-panel p,.coach-panel small{grid-column:2}.lab-layout{grid-template-columns:240px minmax(0,1fr)}.lab-results{grid-column:1/-1}.lab-results dl{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}}
@media(max-width:820px){.learning-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.learning-dashboard,.progress-layout,.coach-workspace,.quiz-layout,.project-layout{grid-template-columns:1fr}.coach-topics{border-right:0;border-bottom:1px solid var(--line)}.quiz-status{position:static;grid-row:1}.map-overview{grid-template-columns:1fr}.lesson-layout{grid-template-columns:1fr}.lesson-rail,.coach-panel{position:static}.lesson-rail{display:flex;overflow-x:auto;gap:5px}.lesson-rail h2,.lesson-rail>.eyebrow{display:none}.lesson-rail a{min-width:max-content;border-left:0;border-bottom:3px solid transparent}.lesson-rail a.active{border-bottom-color:#178089}.coach-panel{display:block;text-align:center}.coach-panel .coach-avatar{margin:auto}.lab-layout{grid-template-columns:1fr}.lab-results{grid-column:auto}}
@media(max-width:560px){.learning-hero{align-items:flex-start;padding:22px}.progress-ring{width:86px;height:86px;flex-basis:86px}.progress-ring strong{font-size:20px}.learning-stats,.knowledge-grid,.brief-grid,.lab-results dl{grid-template-columns:1fr}.lesson-content{padding:20px}.gear-diagram{min-height:190px}.large-gear{width:125px;height:125px}.small-gear{width:85px;height:85px}.chat-input{grid-template-columns:1fr}.chat-input .btn{width:100%}.message{width:90%}.lab-stage{min-height:330px}.direction-line{flex-direction:column;text-align:center}.path-steps{align-items:stretch}.map-overview{padding:18px}.skill-row{grid-template-columns:90px 1fr 38px}}
.topic-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.topic-tabs .btn{min-height:36px;padding:7px 11px;font-size:12px}.topic-concept{border-color:#bfe1de;background:#f3fbfa}.topic-concept h2{margin-bottom:9px}.topic-concept p{margin:0}.knowledge-card .concept-note{min-height:120px;margin:12px 0;font-size:13px}.knowledge-card .concept-note p{min-height:0;margin:5px 0 0}.knowledge-card .topic-preview{min-height:52px;font-size:13px;color:#3a5b60}.knowledge-card .badge{margin-bottom:12px}.knowledge-card button{display:block;margin-top:12px}.answer-review{padding-left:20px}.answer-review li{margin:13px 0;padding-bottom:10px;border-bottom:1px solid var(--line)}.answer-review p{margin:5px 0;color:#506e72}.auth-help a{color:#126f77;font-weight:700;text-decoration:underline;text-underline-offset:3px}.public-view .header-tools{gap:8px}.public-view .header-tools .btn{white-space:nowrap}
.quiz-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:18px}.quiz-controls label{margin:0}.quiz-controls select{width:auto;min-width:150px}.quiz-question legend{max-width:100%;font-weight:650;line-height:1.7}.quiz-question legend .badge{margin-left:8px}.wrong-card{border-top:1px solid var(--line);padding:22px 0}.wrong-card:first-child{border-top:0}.wrong-card-head{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px}.wrong-card-head button{margin-left:auto}.wrong-card h3{line-height:1.7;margin:12px 0}.wrong-card p{margin:5px 0}.scratch-panel{position:fixed;z-index:30;right:18px;top:66px;width:min(470px,calc(100vw - 24px));max-height:calc(100dvh - 78px);overflow:auto;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 20px 60px #163d5650;padding:16px}.scratch-head{display:flex;align-items:center;justify-content:space-between;font-size:18px}.scratch-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:12px 0}.scratch-tools label{display:flex;align-items:center;gap:4px;margin:0;font-size:12px}.scratch-tools input[type=color]{width:34px;height:30px;padding:2px}.scratch-tools input[type=range]{width:74px;padding:0}#scratch-canvas{display:block;width:100%;height:auto;aspect-ratio:9/5;border:1px solid #cbd9e0;border-radius:8px;background:#fff;touch-action:none;cursor:crosshair}.scratch-calculator{margin-top:14px}.scratch-calculator label{margin-bottom:6px}.calculator-display{display:flex;gap:6px}.calculator-display input{min-width:0}.calculator-display button{min-width:44px}.scratch-calculator output{display:block;min-height:28px;margin:8px 0;color:#096d77;font-weight:650;overflow-wrap:anywhere}.calculator-keys{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.calculator-keys button{min-height:36px;border:1px solid var(--line);border-radius:6px;background:#f5f9fa;color:#294152}.calculator-keys button:hover{background:#e5f2f2}.header-tools{min-width:0}.header-tools .scratch-toggle{white-space:nowrap}@media(max-width:760px){.scratch-panel{top:8px;right:8px;width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.header-tools .scratch-toggle{padding:6px 8px;font-size:12px}.quiz-controls{align-items:stretch}.quiz-controls select{flex:1}}
.quiz-question input[type=radio]{width:auto;flex:0 0 auto}.quiz-result{display:block}.quiz-result .answer-review{max-width:100%}.wrong-card,.quiz-question{min-width:0;overflow-wrap:anywhere}
.question-figure{width:min(100%,430px);margin:14px 0 18px;padding:10px;border:1px solid #cde3e3;border-radius:10px;background:#f6fbfa}.question-figure svg{display:block;width:100%;height:auto;max-height:190px}.question-figure svg rect,.question-figure svg circle,.question-figure svg line,.question-figure svg path{stroke:#197b83;stroke-width:3;fill:none;stroke-linecap:round;stroke-linejoin:round}.question-figure svg rect{fill:#e3f3f0}.question-figure svg text{fill:#244d56;font-size:13px;font-weight:600;font-family:Arial,"Microsoft JhengHei",sans-serif;stroke:none}.question-figure figcaption{margin-top:6px;color:#607982;font-size:12px}.answer-review .question-figure,.wrong-card .question-figure{width:min(100%,340px)}
.lab-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 22px}.lab-tabs .btn{min-width:130px}.lab-experiment[hidden]{display:none}.lab-experiment>h2{font-size:23px;margin:0 0 5px}.lab-experiment>.note{margin:0 0 18px}.lab-layout>*{min-width:0}.lab-drawing{display:block;width:min(100%,440px);height:auto;margin:0 auto}.lab-drawing line,.lab-drawing path{stroke:#137b84;stroke-width:4;fill:none;stroke-linecap:round;stroke-linejoin:round}.lab-drawing text{fill:#24515a;font:600 14px Arial,"Microsoft JhengHei",sans-serif}.lab-drawing-caption{text-align:center;color:#607982;font-size:13px}.belt-visual{width:100%;text-align:center}.belt-loop{position:relative;display:flex;align-items:center;justify-content:space-around;gap:18px;min-height:190px;width:min(100%,450px);margin:0 auto}.belt-loop:before,.belt-loop:after{content:"";position:absolute;left:18%;right:18%;height:5px;background:#65aaa9;border-radius:10px}.belt-loop:before{top:14%}.belt-loop:after{bottom:14%}.belt-wheel{position:relative;z-index:1;display:grid;place-items:center;flex:0 0 auto;border:9px solid #197f88;border-radius:50%;background:#e2f3f0;color:#126a73;font-weight:800;font-size:13px}.belt-visual>p{margin:16px 0 0;color:#607982;font-size:13px}@media(max-width:560px){.lab-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.lab-tabs .btn{min-width:0}.belt-loop{gap:8px}.lab-stage{min-height:320px}}
.scratch-panel{display:flex;flex-direction:column;min-width:0;min-height:0;max-width:none;max-height:none;overflow:hidden;padding:0}.scratch-head{flex:0 0 auto;min-height:48px;padding:8px 12px 8px 16px;border-bottom:1px solid var(--line);background:#f0f8f7;cursor:move;touch-action:none;user-select:none;gap:10px}.scratch-head:focus-visible,.scratch-resize:focus-visible{outline:3px solid #187f88;outline-offset:-3px}.scratch-head-hint{margin-left:auto;color:#587782;font-size:12px;font-weight:400}.scratch-head .close{font-size:24px;line-height:1}.scratch-body{flex:1;min-height:0;overflow:auto;padding:14px 16px 30px}.scratch-tools{margin-top:0}.scratch-resize{position:absolute;right:0;bottom:0;width:30px;height:30px;border:0;border-radius:0 0 12px 0;background:linear-gradient(135deg,transparent 52%,#167d86 53%,#167d86 59%,transparent 60%,transparent 69%,#167d86 70%,#167d86 77%,transparent 78%);cursor:nwse-resize;touch-action:none}@media(max-width:760px){.scratch-panel{max-height:none}.scratch-head-hint{font-size:11px}}
.textbook-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}.textbook-tools label{font-weight:700}.textbook-tools input{width:min(100%,340px)}.textbook-tools span{color:var(--muted);font-size:13px}.textbook-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:18px;align-items:start;min-width:0}.textbook-toc{position:sticky;top:76px;max-height:calc(100dvh - 94px);overflow:auto;padding:18px}.textbook-toc h2{margin:0 0 12px}.textbook-toc h3{margin:18px 0 7px;color:#147881;font-size:14px}.textbook-link{display:block;width:100%;padding:9px 10px;border:0;border-left:3px solid transparent;background:transparent;color:#304c52;text-align:left;line-height:1.5;cursor:pointer}.textbook-link:hover,.textbook-link:focus-visible{background:#edf9f7}.textbook-link.active{border-left-color:#178089;background:#e6f6f3;font-weight:700}.textbook-article{min-width:0;padding:30px;overflow-wrap:anywhere}.textbook-article h2{margin:8px 0 16px;font-size:28px}.textbook-article h3{margin:22px 0 8px}.textbook-article p{line-height:1.8}.textbook-article .question-figure{width:min(100%,520px)}.textbook-example{padding:2px 18px 8px;border-radius:10px;background:#f3f9fa}.textbook-article .lesson-actions{border-top:1px solid var(--line);padding-top:18px}.textbook-link:focus-visible,.textbook-article button:focus-visible{outline:3px solid #187f88;outline-offset:2px}@media(max-width:820px){.textbook-layout{grid-template-columns:minmax(0,1fr)}.textbook-toc{position:static;max-height:300px}.textbook-article{padding:20px}}@media(max-width:560px){.textbook-tools{display:block}.textbook-tools label,.textbook-tools input,.textbook-tools span{display:block;margin:6px 0}.textbook-article h2{font-size:23px}}
.textbook-article>section,.textbook-depth>section{max-width:78ch}.textbook-depth{margin:18px 0 24px;padding:4px 0 4px 20px;border-left:3px solid #c9e8e4}.textbook-depth h3{color:#176e76}.textbook-worked{padding:1px 18px 10px;border-radius:10px;background:#f2f9f8}.textbook-check{margin:24px 0;padding:18px 20px;border:1px solid #a8d7d2;border-radius:12px;background:#f3fbfa}.textbook-check h3{margin-top:0}.textbook-check details{padding:12px 14px;border-radius:8px;background:#fff}.textbook-check summary{color:#126e76;font-weight:700;cursor:pointer}.textbook-check summary:focus-visible{outline:3px solid #187f88;outline-offset:3px}.textbook-check details p{margin-bottom:0}@media(max-width:560px){.textbook-depth{padding-left:12px}.textbook-worked,.textbook-check{padding:12px}}

/* 03.04 layout and keyboard acceptance */
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid #0b6f78;outline-offset:3px}
.skip-link{position:fixed;left:12px;top:8px;z-index:1000;transform:translateY(-150%);padding:10px 16px;border-radius:7px;background:#183f4b;color:#fff;font-weight:700;box-shadow:0 5px 18px #102f3d44}
.skip-link:focus{transform:translateY(0)}
#main:focus{outline:none}
.site-purpose{display:inline-flex;align-items:center;min-height:34px;padding:6px 11px;border:1px solid #9fd3cd;border-radius:999px;background:#eef9f7;color:#126e76;font-size:12px;font-weight:700;white-space:nowrap}
@media(max-width:560px){.site-purpose{max-width:116px;white-space:normal;text-align:center;line-height:1.25}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
input[aria-invalid="true"],select[aria-invalid="true"],textarea[aria-invalid="true"]{border-color:#b43d3d;background:#fffafa}input[aria-invalid="true"]:focus,select[aria-invalid="true"]:focus,textarea[aria-invalid="true"]:focus{outline-color:#e6a5a5}.field-error{min-height:1.25em;margin:6px 0 0;color:#a33b3b;font-size:13px;line-height:1.45}.field-error:empty{display:none}[aria-busy="true"]{cursor:progress}
.question-catalog{min-width:0}.question-catalog-filters{display:grid;grid-template-columns:minmax(220px,1fr) repeat(3,minmax(130px,180px));gap:12px;align-items:end;margin-bottom:18px}.question-catalog-filters label span{display:block;margin-bottom:6px;color:var(--muted);font-size:12px}.question-catalog-scroll{max-width:100%;max-height:560px}.question-catalog-scroll table{min-width:900px}.question-catalog-scroll th{position:sticky;top:0;z-index:1}.question-catalog-scroll .question-prompt{min-width:360px;white-space:normal}.question-catalog-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:16px;color:var(--muted);font-size:13px}.question-catalog-footer>div{display:flex;align-items:center;gap:9px}.question-catalog-footer label{margin:0}.question-catalog-footer select{width:auto;padding:7px 28px 7px 9px}@media(max-width:900px){.question-catalog-filters{grid-template-columns:1fr 1fr}}@media(max-width:560px){.question-catalog-filters{grid-template-columns:1fr}.question-catalog-footer{align-items:flex-start;flex-direction:column}.question-catalog-footer>div{width:100%;justify-content:space-between}}
.region-switch{width:auto;min-width:92px;height:42px;padding:8px 30px 8px 10px;border-color:var(--line);border-radius:8px;color:#4e6877;background:#fff;font-size:13px}.region-switch.compact{max-width:132px}@media(max-width:900px){.header-tools .region-switch{display:none}}
