
/* HF52 TOR / SRS full-screen workspace: isolated from dialog and editor styles */
body.s2tor-lock{overflow:hidden!important}
#s2tor-workspace{position:fixed;inset:0;z-index:1950;background:#071d31;color:#e9f5ff;font:14px/1.5 Inter,'Sarabun',Arial,sans-serif;isolation:isolate}
#s2tor-workspace[hidden]{display:none!important}
#s2tor-workspace *{box-sizing:border-box}
#s2tor-workspace .s2tor-shell{display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:100dvh;overflow:hidden}
#s2tor-workspace .s2tor-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 18px;background:linear-gradient(110deg,#0d324f,#123b5d);border-bottom:1px solid #326789;min-height:78px}
#s2tor-workspace .s2tor-headleft{display:flex;align-items:center;gap:12px;min-width:0}
#s2tor-workspace .s2tor-headleft>div{min-width:0}
#s2tor-workspace .s2tor-mark{width:48px;height:48px;display:grid;place-items:center;flex-shrink:0;border-radius:13px;font-size:24px;background:linear-gradient(135deg,#0e90bc,#15bbb4);color:#fff}
#s2tor-workspace .s2tor-headleft small{font-size:10px;letter-spacing:1.4px;color:#8bd7f6}
#s2tor-workspace h1{font-size:21px;line-height:1.2;color:#fff;margin:3px 0 0}
#s2tor-workspace .s2tor-sub{font-size:12px;margin:4px 0 0;color:#b3d6eb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#s2tor-workspace .s2tor-tools{display:flex;align-items:center;gap:8px;flex:0 0 auto}
#s2tor-workspace .s2tor-btn{border:1px solid #467fa6;background:#174563;color:#effaff;border-radius:8px;padding:9px 12px;font:700 12px/1.3 inherit;cursor:pointer;white-space:nowrap}
#s2tor-workspace .s2tor-btn:hover{background:#1d6688}
#s2tor-workspace .s2tor-save{background:#0c869c;border-color:#26acc2}
#s2tor-workspace .s2tor-close{background:#303d62;border-color:#6c8eb9}
#s2tor-workspace .s2tor-body{display:grid;grid-template-columns:minmax(215px,260px) minmax(0,1fr);height:100%;min-height:0}
#s2tor-workspace .s2tor-sidebar{background:#0b2941;border-right:1px solid #2f5a7a;padding:18px 12px;overflow-y:auto;min-height:0}
#s2tor-workspace .s2tor-sideheader{display:block;color:#80d8f4;letter-spacing:1px;font-size:11px;margin:0 10px 14px}
#s2tor-workspace .s2tor-sidebar-nav{display:grid;gap:8px}
#s2tor-workspace .s2tor-navbtn{display:flex;align-items:center;gap:9px;width:100%;padding:12px 10px;border:1px solid #365d7b;border-radius:9px;color:#d8edfb;background:#193a58;text-align:left;cursor:pointer;font:700 12px/1.3 Inter,'Sarabun',Arial,sans-serif}
#s2tor-workspace .s2tor-navbtn:hover{background:#225277}
#s2tor-workspace .s2tor-navbtn.active{background:linear-gradient(110deg,#078991,#0b748f);border-color:#38d7d0;color:#fff;box-shadow:inset 3px 0 #4bf0db}
#s2tor-workspace .s2tor-navbtn>i{font-size:17px}
#s2tor-workspace .s2tor-number{color:#8ddbf6;font-size:11px}
#s2tor-workspace .s2tor-sidebar-note{font-size:11px;color:#7bbedb;border-top:1px solid #2c5573;margin-top:18px;padding:14px 9px}
#s2tor-workspace .s2tor-content{overflow-y:auto;overflow-x:hidden;min-height:0;padding:20px 24px 34px;scrollbar-color:#4a8dae #09253b;scrollbar-width:thin}
#s2tor-workspace .s2tor-page-head{padding:8px 4px 16px;border-bottom:1px solid #315573;margin-bottom:16px}
#s2tor-workspace .s2tor-page-head span{font-size:11px;color:#79d7f5;letter-spacing:1.4px}
#s2tor-workspace .s2tor-page-head h2{font-size:26px;color:#fff;margin:6px 0}
#s2tor-workspace .s2tor-page-head p{color:#b5cede;font-size:13px;margin:0}
#s2tor-workspace .s2tor-card{padding:20px;border:1px solid #315b7a;background:#102e48;border-radius:13px;margin-bottom:16px;box-shadow:inset 0 1px #ffffff0c}
#s2tor-workspace .s2tor-card h3{font-size:17px;color:#eaf7ff;margin:0 0 14px}
#s2tor-workspace .s2tor-field{display:flex;flex-direction:column;gap:8px;margin:0 0 18px;color:#c6e6f7;font-size:13px;font-weight:600}
#s2tor-workspace .s2tor-field:last-child{margin-bottom:0}
#s2tor-workspace .s2tor-field textarea,#s2tor-workspace .s2tor-field input[type=text]{width:100%;border:1px solid #52718e;border-radius:9px;background:#071d32;color:#eaf8ff;padding:11px 12px;font:13px/1.6 Inter,'Sarabun',Arial,sans-serif;resize:vertical;min-width:0}
#s2tor-workspace .s2tor-field textarea:focus,#s2tor-workspace .s2tor-field input:focus{outline:2px solid #3acde6;outline-offset:1px}
#s2tor-workspace .s2tor-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
#s2tor-workspace .s2tor-metric{border:1px solid #37617e;border-radius:12px;background:linear-gradient(125deg,#103953,#13304d);padding:18px;display:flex;flex-direction:column;gap:6px}
#s2tor-workspace .s2tor-metric strong{font-size:29px;color:#55d9e0}
#s2tor-workspace .s2tor-metric span{font-size:12px;color:#a9cce0}
#s2tor-workspace .s2tor-muted{font-size:12px;color:#b8d2e2;margin:0 0 14px}
#s2tor-workspace .s2tor-table-wrap{overflow-x:auto}
#s2tor-workspace table{border-collapse:collapse;width:100%;min-width:640px;font-size:12px}
#s2tor-workspace th,#s2tor-workspace td{border:1px solid #345974;padding:10px;text-align:left;vertical-align:top;overflow-wrap:anywhere}
#s2tor-workspace th{background:#164762;color:#c5edff}
#s2tor-workspace tr:nth-child(even) td{background:#163a54}
#s2tor-workspace .s2tor-warning,#s2tor-workspace .s2tor-ok{padding:12px 14px;border-radius:9px;margin:10px 0;font-size:13px}
#s2tor-workspace .s2tor-warning{color:#ffe1a7;background:#47371e;border:1px solid #937044}
#s2tor-workspace .s2tor-ok{color:#aaf4d9;background:#11473c;border:1px solid #278873}
#s2tor-workspace .s2tor-kind{display:flex;gap:18px;flex-wrap:wrap}
#s2tor-workspace .s2tor-kind label{display:flex;align-items:center;gap:8px;color:#e8f3fa}
#s2tor-workspace .s2tor-exports{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:14px}
#s2tor-workspace .s2tor-exports .primary{background:#0e9294;border-color:#2cd6c9}
#s2tor-workspace .s2tor-footer{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:9px 18px;border-top:1px solid #2c5775;background:#082237;color:#9dcbdf;font-size:11px;min-height:35px}
#s2tor-workspace #s2tor-status[data-status=ok]{color:#85e5cf}#s2tor-workspace #s2tor-status[data-status=warn]{color:#ffd69c}
#s2tor-project-entry{width:100%;margin:6px 0;padding:10px;border-radius:9px;background:linear-gradient(95deg,#0b8797,#1b5578)!important;color:#fff!important;border:1px solid #32b4c0!important;font-weight:700!important;text-align:left}
#s2tor-workspace #s2d-language-switch{position:static!important;display:inline-flex!important;margin:0!important;visibility:visible!important}
@media(max-width:900px){#s2tor-workspace .s2tor-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}#s2tor-workspace .s2tor-body{grid-template-columns:190px minmax(0,1fr)}#s2tor-workspace .s2tor-content{padding:14px}}
@media(max-width:680px){#s2tor-workspace .s2tor-header{flex-wrap:wrap}#s2tor-workspace .s2tor-tools{margin-left:auto}#s2tor-workspace .s2tor-body{grid-template-columns:140px minmax(0,1fr)}#s2tor-workspace .s2tor-navbtn{font-size:11px;padding:10px 7px}#s2tor-workspace .s2tor-number{display:none}#s2tor-workspace .s2tor-content{padding:10px}#s2tor-workspace .s2tor-card{padding:12px}#s2tor-workspace .s2tor-page-head h2{font-size:20px}}
@media print{#s2tor-workspace{display:none!important}}

