/* Layout follows the supplied Tung Lan prototype; DS3 brand colors retained. */
.ds3-logo-frame,.auth-card .ds3-logo-frame{background:transparent;border:0;border-radius:0;overflow:visible}
.ds3-logo-frame img{position:static;width:100%;height:100%;max-width:100%;object-fit:contain;transform:none}
.ds3-logo-frame{width:184px;height:90px}.auth-card .ds3-logo-frame{width:220px;height:108px}
@media screen{
body.ops-shell{--op-bg:#eef1f5;--op-ink:#16202e;--op-muted:#5d6b7e;--op-line:#d9dfe7;--op-side:#14263b;--op-accent:#662d91;--op-gold:#b7202e;--op-red:#b7202e;font-size:15px;line-height:1.5}
body.ops-shell.ops-dark{--op-bg:#0f1620;--op-surface:#18222f;--op-ink:#e6ecf4;--op-muted:#a4b1c1;--op-line:#2a3646;--op-side:#0a111a;--op-accent:#c9a3e8}
.ops-shell .m-header{max-width:1180px;margin-left:0;padding:28px 32px 0}.ops-shell .m-page{max-width:1180px;margin-left:0;padding:20px 32px 48px}.ops-shell .ops-side{padding-top:16px}.ops-brand{padding-bottom:18px}.ops-brand small{color:#c9d4e3;letter-spacing:.6px}.ops-side nav button.active{box-shadow:inset 3px 0 #b7202e;background:#ffffff1f}.ops-hero{margin-bottom:18px}.ops-hero p{color:#c9d4e3}.ops-hero .ops-ring small{color:#c9d4e3}.ops-hero .ops-ring:before{background:var(--op-side)}.ops-ring{background:conic-gradient(#b7202e var(--progress),#ffffff2e 0)}
.ops-box{padding:18px;border-radius:14px}.ops-box h2{font-size:17px;margin:0 0 12px}.ops-load{grid-template-columns:130px 1fr 24px;font-size:13px;margin:9px 0}.proto-secondary{display:none}.smart-today{margin-top:18px}.ops-shell .m-page-title{font-size:26px;margin:0 0 4px}.ops-shell .m-subtitle{font-size:14px;margin:0 0 22px}.ops-stats button{padding:18px}.ops-quick-search{max-width:460px}
.proto-split{display:grid;grid-template-columns:320px minmax(0,1fr);gap:16px;align-items:start}.proto-project-layout{display:grid;gap:16px}.proto-project-layout .proto-create-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 16px;align-items:start}.proto-project-layout .proto-note{grid-column:1/-1}.proto-register-content{min-width:0}.proto-form{min-width:0}.proto-form label{display:block;font-size:13px;color:var(--op-muted);margin:10px 0 4px}.proto-form input,.proto-form select,.proto-form textarea{display:block;width:100%;font:inherit;font-size:14px;line-height:1.5;margin-top:4px;color:var(--op-ink);background:var(--op-bg);border:1px solid var(--op-line);border-radius:8px;padding:8px 10px;min-width:0}.proto-form textarea{resize:vertical}.proto-form .proto-note{display:block;font-size:12px;color:var(--op-muted);line-height:1.6;margin:8px 0}.proto-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 0}.proto-actions button,.proto-form form>button{padding:8px 14px;font-size:13px;border-radius:9px}.proto-form form>button{margin-top:14px}.proto-form .error{color:#b7202e;font-size:13px}.proto-readonly,.proto-route{padding:8px 10px;background:var(--op-bg);border:1px solid var(--op-line);border-radius:8px;margin:4px 0;font-size:13px}.proto-number{font-size:13px;color:var(--op-accent);border:1px dashed var(--op-line);background:var(--op-bg);padding:8px 10px;border-radius:8px;margin:4px 0}
.proto-register-content .ops-register-tools{padding:12px;gap:8px}.proto-register-content .ops-register-tools>label{font-size:11px}.proto-register-content .ops-register-tools select{max-width:170px}.proto-task-list{display:grid;gap:10px}.proto-task-card{box-shadow:none;border:1px solid var(--op-line);border-radius:8px;padding:14px}.proto-task-card .ops-card-title{font-weight:600;font-size:15px;margin-bottom:6px}.proto-task-card>small{font-size:12px;color:var(--op-muted)}.proto-task-card .proto-task-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}.proto-task-meta .m-badge{font-size:12px}.proto-task-meta small{font-size:12px}.proto-task-card progress{width:100%;height:6px;accent-color:#662d91}.proto-task-card.register-late{border-left:4px solid #b7202e}.proto-task-card .proto-actions{justify-content:flex-end;margin-top:8px}.proto-task-card .proto-actions button{padding:5px 10px}.proto-doc-layout .ops-register-tools{padding:0;margin-bottom:10px}.proto-doc-layout .ops-table-scroll{padding:0}.proto-doc-layout .ops-data-table{min-width:540px}.ops-data-table th,.ops-data-table td{padding:10px 8px}.ops-data-table th{font-size:13px}.ops-data-table td:first-child{width:35%}.ops-kanban{gap:14px;grid-auto-columns:minmax(220px,1fr)}.ops-kanban-column{min-height:200px;border-radius:10px;padding:10px}.register-card{border:1px solid var(--op-line);border-radius:8px}
.proto-segment{display:flex;height:12px;border-radius:9px;overflow:hidden;background:var(--op-line);margin:6px 0 10px}.proto-segment i{display:block}.proto-legend{display:flex;gap:10px;flex-wrap:wrap}.proto-legend button{display:flex;gap:5px;align-items:center;font-size:12px;padding:0;background:none;border:0;color:var(--op-muted)}.proto-legend i{display:block;width:9px;height:9px;border-radius:50%;flex-shrink:0}.proto-config-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.proto-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.proto-card-head h2{margin:0}.proto-card-head button,.proto-module-row button{font-size:12px;padding:5px 9px;background:transparent;color:var(--op-ink);border:1px solid var(--op-line)}.proto-setting{margin:12px 0}.proto-setting small,.proto-setting strong{display:block}.proto-setting small{font-size:13px;color:var(--op-muted);margin-bottom:4px}.proto-setting strong{font-size:14px;font-weight:500;padding:8px 10px;background:var(--op-bg);border:1px solid var(--op-line);border-radius:8px;overflow-wrap:anywhere}.proto-config-card .proto-note{font-size:12px;color:var(--op-muted)}.proto-chips{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.proto-chips button{font-size:13px;border-radius:24px;background:var(--op-bg);border:1px solid var(--op-line);color:var(--op-ink);padding:6px 10px}.proto-config-card>.primary{font-size:13px;padding:8px 14px}.proto-module-row{display:flex;gap:10px;align-items:center;border-bottom:1px solid var(--op-line);padding:9px 0;font-size:13px}.proto-module-row>span{flex:1}.proto-module-row small{font-size:11px;color:var(--op-muted)}.proto-config-wide{grid-column:1/-1}
}
@media screen and (max-width:1050px){.proto-split{grid-template-columns:280px minmax(0,1fr)}.proto-project-layout .proto-create-fields{grid-template-columns:1fr 1fr}.ops-shell .m-header{padding:20px 20px 0}.ops-shell .m-page{padding:20px}.ops-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media screen and (max-width:800px){.proto-split,.proto-config-grid{grid-template-columns:1fr}.proto-config-wide{grid-column:auto}.proto-project-layout .proto-create-fields{grid-template-columns:1fr}.proto-register-content .ops-register-tools select{max-width:100%}.proto-doc-layout .ops-data-table{min-width:530px}}
@media screen and (max-width:760px){.ops-shell .m-header{padding:calc(14px + env(safe-area-inset-top)) 14px 0}.ops-shell .m-page{padding:18px 14px 28px}.ops-mobile-brand .ds3-logo-frame{width:96px;height:50px}.ops-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.ops-hero{padding:20px}.ops-hero h1{font-size:22px}.ops-load{font-size:12px}.proto-split{gap:14px}}
@media print{.proto-composer,.proto-form,.proto-config-grid{display:none!important}}
