* { box-sizing: border-box; }
:root { color-scheme: light; font: 16px/1.55 system-ui, sans-serif; color: #182d28; background: #f4f7f4; }
body { margin: 0; }
a { color: #135b43; text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #268360; outline-offset: 3px; }
.shell { width: min(1080px, calc(100% - 36px)); margin-inline: auto; }
.masthead { background: #fff; border-bottom: 1px solid #dce5de; }
.bar, .account, .foot, .event-line, .paging { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bar { min-height: 66px; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #182d28; text-decoration: none; font-weight: 750; }
.mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: #124a38; color: #fff; }
.account, small, .foot { color: #4d665d; font-size: .875rem; }
button, select, textarea { font: inherit; }
button { cursor: pointer; }
.quiet { background: #fff; border: 1px solid #c9d7ce; border-radius: 8px; padding: 5px 12px; color: #182d28; }
main { padding-block: clamp(32px, 7vw, 75px); min-height: 72vh; }
.eyebrow { color: #3c6354; letter-spacing: .08em; font-size: .75rem; text-transform: uppercase; font-weight: 750; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; letter-spacing: -.04em; margin: .28em 0 .32em; overflow-wrap: anywhere; }
h2 { font-size: 1.2rem; margin: 0 0 12px; }
.intro { color: #4d665d; max-width: 58ch; margin: 0 0 30px; }
.welcome { max-width: 690px; margin: clamp(12px, 6vw, 70px) auto; padding: clamp(24px, 6vw, 62px); background: #fff; border: 1px solid #dce5de; border-radius: 22px; }
.primary { display: inline-block; background: #15533e; color: white; border: 0; border-radius: 9px; padding: 10px 16px; text-decoration: none; font-weight: 700; }
.primary:hover { background: #0f4231; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 14px; }
.filters a { border: 1px solid #c9d7ce; background: #fff; padding: 5px 12px; border-radius: 99px; text-decoration: none; color: #274b3d; }
.filters a[aria-current] { background: #15533e; border-color: #15533e; color: #fff; }
.panel { background: #fff; border: 1px solid #dce5de; border-radius: 14px; padding: clamp(14px, 3vw, 24px); min-width: 0; overflow-wrap: anywhere; }
.empty { color: #4d665d; padding-block: 36px; text-align: center; }
.table-scroll { overflow-x: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 14px 16px; border-bottom: 1px solid #e5ebe6; vertical-align: top; }
th { background: #edf3ee; font-size: .875rem; }
tr:last-child td { border-bottom: none; }
td small { display: block; }
td:first-child a { font-weight: 700; }
.status { display: inline-block; font-size: .8rem; font-weight: 720; border-radius: 99px; padding: 4px 10px; background: #e8efea; color: #324a3f; }
.status.new { background: #e8eff9; color: #244a78; }
.status.active { background: #e7eefc; color: #2f4782; }
.status.waiting { background: #fff2d5; color: #73501d; }
.status.done { background: #e0f4e7; color: #1c5e3b; }
.status.closed { background: #f5e9e6; color: #763a33; }
.back { display: inline-block; margin-bottom: 18px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; margin-block: 24px 16px; }
.message { white-space: pre-wrap; }
dl { margin: 0; }
dt { color: #4d665d; font-size: .875rem; }
dd { margin: 0 0 9px; }
.edit { display: grid; gap: 8px; }
.edit label { font-weight: 650; }
.edit select, .edit textarea { width: 100%; border: 1px solid #b5c8be; border-radius: 8px; padding: 8px; background: #fff; color: inherit; }
.edit button { justify-self: start; margin-top: 5px; }
.error { color: #8d3026; }
.history ol { list-style: none; margin: 0; padding: 0; }
.history li { border-top: 1px solid #e5ebe6; padding: 12px 0; }
.history p { margin: 4px 0; }
.paging, .foot { margin-block: 16px; }
.foot { border-top: 1px solid #dce5de; padding-block: 18px; }
@media (max-width: 680px) { .detail-grid { grid-template-columns: 1fr; } }
