:root{color-scheme:light;--bg:#f4f1ea;--surface:#fffdf7;--ink:#1a1d22;--dim:#34383f;--muted:#5a5e66;--line:#d7d2c9;--green:#1f6e50;--green-hover:#185c42;--error:#8d2b20;--error-bg:#f8ebe7;--focus:#1f6e50}*{box-sizing:border-box}html{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display",system-ui,sans-serif;color:var(--ink);background:var(--bg)}body{margin:0;line-height:1.5}::selection{background:#c7e0d2;color:var(--ink)}a{color:inherit;text-underline-offset:.18em}button,input,select{font:inherit}button,a,input,select{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--focus)}.skip-link{position:absolute;top:-5rem;left:1rem;z-index:2;background:var(--surface);padding:.7rem}.skip-link:focus{top:1rem}.topbar{border-bottom:1px solid var(--line)}.topbar-inner{max-width:1152px;margin:auto;min-height:72px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{text-decoration:none;font-size:18px;font-weight:650;letter-spacing:-.02em}.brand span{font-size:14px;font-weight:400;color:var(--muted);margin-left:9px}.text-button{background:none;border:0;color:var(--dim);cursor:pointer;min-height:44px;padding:0 4px}.text-button:hover{text-decoration:underline}.container{max-width:1152px;margin:0 auto;padding:50px 24px 80px}.container-narrow{max-width:500px;padding-top:80px}.page-heading{margin-bottom:30px}.page-heading h1{font-size:clamp(28px,3vw,38px);line-height:1.15;letter-spacing:-.03em;font-weight:550;margin:0 0 9px;overflow-wrap:anywhere}.page-heading p{color:var(--muted);margin:0}.surface{background:var(--surface);border:1px solid var(--line);border-radius:14px}.login-form,.panel{padding:24px}.login-form,.panel form{display:flex;flex-direction:column;align-items:stretch;gap:9px}label{font-size:14px;font-weight:600}input,select{width:100%;min-height:46px;padding:9px 12px;border:1px solid #aaa69e;border-radius:8px;background:var(--surface);color:var(--ink)}.login-form input{margin-bottom:10px}.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 17px;border-radius:9px;border:1px solid transparent;text-decoration:none;font-size:14px;font-weight:650;cursor:pointer;text-align:center}.primary{background:var(--green);color:#fff}.primary:hover{background:var(--green-hover)}.secondary{background:var(--surface);border-color:var(--line);color:var(--ink)}.secondary:hover{background:#eeeae1}.button:disabled,.text-button:disabled{cursor:wait;opacity:.65}.notice{border-radius:10px;padding:14px 16px;margin:0 0 24px}.error{background:var(--error-bg);color:var(--error)}.filter{display:flex;align-items:center;gap:12px;margin-bottom:18px}.filter select{width:auto;min-width:190px}.ticket-list{padding:0;margin:0;list-style:none;overflow:hidden}.ticket-list li+li{border-top:1px solid var(--line)}.ticket-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 20px;text-decoration:none;min-height:80px}.ticket-row:hover{background:#f5f2eb}.ticket-main,.ticket-side{display:flex;flex-direction:column;gap:5px;min-width:0}.ticket-topic{font-weight:650;overflow-wrap:anywhere}.ticket-meta,.ticket-date{color:var(--muted);font-size:14px;overflow-wrap:anywhere}.ticket-side{align-items:flex-end;text-align:right;flex-shrink:0}.status{display:inline-block;background:#e6eee7;color:#23553d;border-radius:999px;padding:4px 10px;font-size:13px;font-weight:650;white-space:nowrap}.empty{padding:35px 24px}.empty h2,.panel h2,.message-panel h2{font-size:17px;margin:0 0 14px}.empty p{margin:0;color:var(--muted)}.pagination{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:20px;color:var(--muted);font-size:14px}.back-link{display:inline-block;margin-bottom:26px;color:var(--dim);min-height:44px;padding-top:10px}.detail-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.detail-heading .ticket-number{font-size:14px;margin:0 0 8px;color:var(--muted)}.detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;align-items:start;gap:20px}.message-panel{padding:26px;min-width:0}.message-text{white-space:pre-wrap;overflow-wrap:anywhere;max-width:75ch}.attachment{border-top:1px solid var(--line);margin-top:28px;padding-top:20px}.attachment h3{font-size:14px;margin:0 0 10px}.attachment img{display:block;max-width:100%;max-height:480px;object-fit:contain;object-position:left;margin-top:14px}.details-panel{display:grid;gap:16px}.panel dl{margin:0}.panel dt{color:var(--muted);font-size:13px;margin-top:14px}.panel dd{margin:3px 0 0;overflow-wrap:anywhere}.copy-button{margin-top:16px}.copy-feedback{font-size:13px;color:var(--dim);margin:8px 0 0;min-height:1.5em}.panel form .button{margin-top:8px}@media(max-width:650px){.topbar-inner{padding:0 18px}.container{padding:34px 18px 60px}.container-narrow{padding-top:48px}.detail-layout{grid-template-columns:1fr}.ticket-row{align-items:flex-start;flex-direction:column;gap:10px}.ticket-side{flex-direction:row;align-items:center;flex-wrap:wrap;text-align:left}.filter{flex-wrap:wrap}.filter label{width:100%}.filter select{flex:1;min-width:0}.detail-heading{flex-direction:column;gap:12px}.pagination{justify-content:center;flex-wrap:wrap}.message-panel,.login-form,.panel{padding:20px}}


/* Shared controls keep the same geometry across browser-native appearances. */
select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 42px;

}
.select-control { display: block; position: relative; }
.select-arrow { position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.filter .select-control { width: 190px; }
.filter select { width: 100%; min-width: 0; }
select:hover { border-color: var(--muted); }
.button { gap: 8px; line-height: 1.4; }
.text-button { min-width: 44px; padding-inline: 10px; }
.ticket-row { align-items: flex-start; }
.ticket-row:focus-visible { outline-offset: -4px; }
.ticket-main { flex: 1; }
.ticket-preview {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    max-height: 2.9em;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.45;
    color: var(--dim);
    margin-block: 2px;
}
.status.status-new { background: #e5f0e9; color: #20583e; }
.status.status-in-progress { background: #fff1d0; color: #735000; }
.status.status-closed, .status.status-unknown { background: #e9e6df; color: #51545a; }
.reply-button, .copy-button { width: 100%; }
.reply-button { margin-top: 18px; }
.reply-hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.copy-button { margin-top: 10px; }
@media (max-width: 650px) {
    .ticket-main { align-self: stretch; }
    .filter .select-control { flex: 1; width: auto; }
}
@media (forced-colors: active) {
    select { -webkit-appearance: auto; appearance: auto; }
    .select-arrow { display: none; }
    .status { outline: 1px solid CanvasText; }
}
