:root{font-family:Arial,"Noto Sans Thai",sans-serif;letter-spacing:0;color:#232a2d;background:#f6f7f8}*{box-sizing:border-box}body{margin:0}main{max-width:1380px;margin:auto;padding:20px 24px}header,.status-line,.filters,.list-head,.dialog-heading,.actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}header{padding-bottom:16px;border-bottom:1px solid #d9dfe2}h1{font-size:26px;margin:0;flex:1}h2{font-size:20px;margin:0;overflow-wrap:anywhere}button,input,select{font:inherit;letter-spacing:0}.button{display:inline-flex;justify-content:center;align-items:center;min-height:40px;border:1px solid #c9d1d5;background:#fff;color:#293b35;border-radius:4px;padding:8px 12px;text-decoration:none;cursor:pointer}.icon{width:40px;flex:0 0 40px;font-size:21px;padding:5px}.primary{background:#226348;border-color:#226348;color:#fff}button:disabled{opacity:.48;cursor:not-allowed}.status-line{padding:12px 0;font-size:12px;color:#657077}.status-line #access{margin-left:auto}.draft{font-size:12px;color:#626e76;line-height:1.6}.filters{margin:10px 0 16px;align-items:flex-end}label{display:flex;flex-direction:column;gap:6px;font-size:13px;min-width:0}.search{flex:1;min-width:160px}.filters select{min-width:180px}input,select{min-width:0;max-width:100%;min-height:42px;border:1px solid #c7d0d6;border-radius:4px;padding:9px 10px;background:#fff;color:inherit}input:read-only{background:#f0f2f4;color:#69767e}.periods{display:flex;gap:4px;border-bottom:1px solid #d2d9de}.periods button{border:0;border-bottom:3px solid transparent;background:transparent;padding:10px 18px;min-height:42px;color:#657179;cursor:pointer}.periods [aria-pressed=true]{color:#245e48;border-bottom-color:#245e48;font-weight:bold}.list-head{justify-content:space-between;padding:16px 0 4px;font-size:13px}.list-head span{color:#6b7880;font-size:12px}#message{font-size:13px;line-height:1.6;color:#835919;min-height:20px;margin:6px 0}.table-wrap{background:white;border-block:1px solid #d7dee3}table{border-collapse:collapse;width:100%;font-size:14px}th{font-size:12px;font-weight:normal;color:#68767e;background:#f1f4f5;text-align:left}th,td{padding:12px 14px;border-bottom:1px solid #e5e9ec}td:first-child{min-width:150px;max-width:380px;overflow-wrap:anywhere}td small{display:block;color:#8a611c;font-size:11px;margin-top:5px}.number{font-weight:bold;font-variant-numeric:tabular-nums}.zone{font-size:11px;background:#eef2f5;padding:4px 6px;border-radius:3px;display:inline-block}.zone[data-zone=SS]{background:#f6e9ee;color:#844359}.muted{color:#77858b}.table-wrap td:last-child{text-align:right;white-space:nowrap}.table-wrap .button{font-size:12px;min-height:34px;padding:6px 10px}.empty{padding:44px 12px;text-align:center;color:#697982}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}dialog{border:1px solid #c4cdd3;border-radius:6px;padding:22px;max-width:560px;width:calc(100% - 24px);max-height:92dvh;overflow:auto}dialog::backdrop{background:#16232a88}.dialog-heading h2{flex:1}.dialog-heading{flex-wrap:nowrap}#edit-context{font-size:13px;line-height:1.6;color:#65767d;overflow-wrap:anywhere}.price-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0}.price-fields input{font-size:20px;font-weight:bold;width:100%}.price-fields small{font-size:11px;color:#78858b}fieldset{border:0;padding:0;margin:18px 0;min-width:0}legend{font-size:13px;margin-bottom:10px}.people-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.people-fields input{width:100%}.preview-wrap{border-block:1px solid #d9e0e4;margin:20px 0}.preview{table-layout:fixed;font-variant-numeric:tabular-nums}.preview th,.preview td{padding:10px 5px;text-align:center;font-size:12px;overflow-wrap:anywhere}.preview th:first-child,.preview td:first-child{text-align:left;width:40%}.preview caption{text-align:left;font-size:12px;color:#6c7c84;padding:8px 0}.confirmation{display:flex;flex-direction:row;align-items:flex-start;gap:8px;line-height:1.6}.confirmation input{min-height:20px;flex:0 0 18px;width:18px;margin:0}.warning{font-size:12px;color:#885b14;background:#fff5dd;padding:10px;line-height:1.6;border-radius:3px}#variants{font-size:12px;color:#68767b;line-height:1.8}#edit-error,#auth-error{color:#ad343b;font-size:13px;line-height:1.6}.actions{justify-content:flex-end;margin-top:18px}.actions .button{min-width:100px}#auth input{width:100%}:focus-visible{outline:3px solid #cf9f3a;outline-offset:3px}[hidden]{display:none!important}@media(max-width:760px){main{padding:14px}header{gap:8px}h1{font-size:23px}header>.button:not(.icon){font-size:12px;min-height:38px;padding:7px 9px}#unlock{margin-left:auto}.status-line{gap:5px 10px}.status-line .draft{flex-basis:100%}.filters{gap:8px}.filters select{min-width:0;width:100%}.filters>label:not(.search){flex:1}.search{flex-basis:100%}.periods button{flex:1;min-width:0;padding:10px 4px;font-size:12px}.table-wrap thead{display:none}.table-wrap table,.table-wrap tbody{display:block}.table-wrap tr{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px 12px;padding:14px 0;border-bottom:1px solid #dde4e8}.table-wrap td{border:0;padding:0 8px;min-width:0;max-width:none;font-size:13px}.table-wrap td:first-child{grid-column:1/3;min-width:0}.table-wrap td:nth-child(2){grid-column:3;grid-row:1}.table-wrap td:nth-child(3){grid-column:1;grid-row:2;color:#6c7a82;font-size:12px}.table-wrap td:nth-child(4){grid-column:2;grid-row:2}.table-wrap td:nth-child(5){grid-column:3;grid-row:2}.table-wrap td:nth-child(4)::before,.table-wrap td:nth-child(5)::before{content:attr(data-label);font-size:11px;display:block;color:#78858c;margin-bottom:4px}.table-wrap td:nth-child(6){grid-column:1/3;grid-row:3;font-size:11px;color:#75828b;align-self:center}.table-wrap td:last-child{grid-column:3;grid-row:3}.table-wrap .button{font-size:12px;min-height:36px}dialog{padding:16px}.price-fields{gap:10px}.people-fields{gap:6px}.people-fields label{font-size:12px}.people-fields input{padding:8px 5px}.actions{gap:8px}.actions .button{flex:1;min-width:0}}
:root .price-fields{grid-template-columns:minmax(0,1fr)}
#subject-label{margin-top:12px}
@media(max-width:480px){#editor .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}#editor .actions .button{width:100%;font-size:13px;min-height:42px}}

/* Readable dark-theme pairs, matching Class Credit without changing form state. */
body :is(.status-line,.draft,.list-head span,#edit-context,#variants,.preview caption,.empty){color:#c2c2c2}
body :is(#message,td small){color:#ffd494}
body :is(#edit-error,#auth-error){color:#ffb7b7}
body .table-wrap{background:var(--hh-panel,#1d1d1d);border-color:#555}
body :is(header,.periods,.preview-wrap){border-color:#555}
body .periods button[aria-pressed=true]{background:var(--hh-orange,#f48b03)!important;color:#121212!important;border-color:var(--hh-orange,#f48b03)!important}
body .periods button[aria-pressed=true]:hover{background:#ffad3b!important;color:#121212!important}
body input::placeholder{color:#c2c2c2;opacity:1}
body .zone[data-zone]{background:#203c2f;color:#a5e3bb}
body .zone[data-zone=PM]{background:#1e3548;color:#9ed4ff}
body .zone[data-zone=EVN]{background:#422638;color:#ffc2d7}
body .zone[data-zone=SS]{background:#382b49;color:#dcc5ff}
body .warning{background:#382a19;color:#ffd494;border:1px solid #b17e38}
body :is(input,select):disabled{opacity:1;color:#c2c2c2!important;-webkit-text-fill-color:#c2c2c2}
body .table-wrap td::before{color:#c2c2c2!important}
