:root{font-family:Arial,"Noto Sans Thai",sans-serif;letter-spacing:0;color:#202a25;background:#f5f7f6}*{box-sizing:border-box}body{margin:0}main{max-width:1760px;margin:auto;padding:24px}header,.toolbar,.summary,.filters,.actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}header{padding-bottom:20px;border-bottom:1px solid #d3dcd6;margin-bottom:20px}h1{font-size:27px;flex:1;margin:0}h2{font-size:21px;margin:0 0 14px;overflow-wrap:anywhere}button,input,select,textarea{font:inherit;letter-spacing:0}.button,.segments button{border:1px solid #b8c8be;background:white;color:#244932;border-radius:5px;padding:10px 14px;min-height:42px;text-decoration:none;cursor:pointer}.primary{background:#17623e;color:white;border-color:#17623e}button:disabled{opacity:.5;cursor:not-allowed}.segments{display:flex;max-width:100%}.segments button{border-radius:0}.segments button:first-child{border-radius:5px 0 0 5px}.segments button:last-child{border-radius:0 5px 5px 0}.segments [aria-pressed=true]{background:#263d30;color:white}.toolbar{margin-bottom:16px}.summary{padding:14px 0;border-block:1px solid #d8e1db;font-size:14px}.summary span{color:#626b65}#message{min-height:38px;padding:10px 0;color:#77540b;font-size:14px}.filters{margin:8px 0 18px}.filters label:first-child{flex:1;min-width:220px}label{display:flex;flex-direction:column;gap:6px;font-size:14px}input,select,textarea{padding:10px;border:1px solid #b8c8be;border-radius:4px;background:white;min-width:0;max-width:100%}.table-scroll{overflow-x:auto;background:white;border-block:1px solid #d3dcd6}table{width:100%;border-collapse:collapse;font-size:14px}caption{text-align:left;padding:12px;color:#57675d;font-size:13px;background:#edf2ef}th,td{text-align:left;padding:12px;vertical-align:top;border-bottom:1px solid #e1e7e3}th{background:#edf2ef;font-size:13px;color:#495d51}td:first-child{min-width:230px;max-width:360px;overflow-wrap:anywhere}td small{display:block;color:#68766d;line-height:1.6;margin-top:4px}.prices{display:grid;grid-template-columns:repeat(3,30px);gap:4px;font-variant-numeric:tabular-nums;text-align:center}.prices span{border-bottom:2px solid #b7cfc0;padding:5px 0}.value{font-weight:bold;font-variant-numeric:tabular-nums}.tag{display:inline-block;font-size:12px;color:#775716;background:#fff2d3;padding:4px 6px;border-radius:3px;margin-bottom:7px}.tag.ok{background:#e6f2ea;color:#29643f}td .button{font-size:13px;min-height:34px;padding:7px 10px}dialog{border:1px solid #bbcbbf;border-radius:8px;max-width:700px;width:calc(100% - 28px);padding:24px;max-height:92dvh;overflow:auto}dialog::backdrop{background:#13251c88}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.wide{grid-column:1/-1}.actions{margin-top:18px}#auth input{width:100%}.matrix{font-variant-numeric:tabular-nums}.matrix td:not(:first-child),.matrix th:not(:first-child){text-align:center}.matrix-wrap{overflow-x:auto}.matrix td,.matrix th{padding:10px 7px}.matrix .missing{background:#fff3d4;color:#8a4800}#coverage,#edit-default,#edit-updated,#edit-impact,#edit-scope{font-size:13px;line-height:1.6;color:#586b60}#coverage{color:#865611}#edit-error,#auth-error{color:#a82c39;font-size:14px}:focus-visible{outline:3px solid #dca02b;outline-offset:3px}[hidden]{display:none!important}@media(max-width:760px){main{padding:14px}h1{font-size:22px;flex-basis:55%}header .button{font-size:13px}.toolbar>.button{flex:1;font-size:13px}.segments{width:100%}.segments button{flex:1;padding:9px 6px;font-size:13px}.summary{align-items:flex-start;gap:6px;flex-direction:column}.filters label{flex:1;min-width:110px}.filters label:first-child{flex-basis:100%}.table-scroll{background:transparent;overflow:visible;border:0}#rows{display:block}table>thead{display:none}caption{display:block;line-height:1.6}#rows tr{display:grid;grid-template-columns:1fr 1fr;gap:10px;border-block-end:1px solid #cddbd2;padding:16px 0;background:white}#rows td{border:0;padding:0 10px;min-width:0;max-width:none}#rows td:first-child{grid-column:1/-1}#rows td::before{content:attr(data-label);display:block;font-size:12px;color:#65786b;margin-bottom:4px}#rows td:first-child::before{display:none}#rows td:nth-child(5),#rows td:nth-child(6),#rows td:nth-child(7){grid-column:1/-1;display:flex;justify-content:space-between;align-items:center}.prices{grid-template-columns:repeat(3,40px)}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}dialog{padding:18px}.matrix thead{display:table-header-group}.matrix th{font-size:12px}.matrix td{font-size:14px}.actions .button{flex:1;min-width:110px}}
table.matrix{table-layout:fixed;width:100%}table.matrix td:first-child,table.matrix th:first-child{min-width:0;max-width:none;width:37%;overflow-wrap:anywhere}table.matrix caption{display:table-caption}table.matrix th{overflow-wrap:anywhere}

/* Match Class Rate's dark surfaces and readable selected/secondary states. */
html:root{background:var(--hh-bg,#101010)}
body :is(.summary span,caption,#empty,#edit-default,#edit-updated,#edit-impact,#edit-scope){color:#c2c2c2}
body :is(.table-scroll,caption){background:var(--hh-panel,#1d1d1d);border-color:#555}
body :is(header,.summary,.prices span){border-color:#555}
body .segments button[aria-pressed=true]{background:var(--hh-orange,#f48b03)!important;color:#121212!important;border-color:var(--hh-orange,#f48b03)!important}
body .segments button[aria-pressed=true]:hover{background:#ffad3b!important;color:#121212!important}
body input::placeholder,body textarea::placeholder{color:#c2c2c2;opacity:1}
body :is(#message,#coverage){color:#ffd494}
body :is(#edit-error,#auth-error){color:#ffb7b7}
body .tag{background:#382a19;color:#ffd494}
body .tag.ok{background:#203c2f;color:#a5e3bb}
body .matrix .missing{background:#382a19!important;color:#ffd494!important}
body #rows td::before{color:#c2c2c2}
body #rows tr{background:var(--hh-panel,#1d1d1d);border-color:#555}
