:root { --ink: #3d3a48; --soft: #8a8496; --line: #e6e1ec; --paper: #fbf8f4; --accent: #e9826f; }
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.45 system-ui, sans-serif; color: var(--ink); background: var(--paper); }
header { display: flex; align-items: center; gap: 1rem; padding: .6rem 1.2rem; border-bottom: 1px solid var(--line); background: #fff; }
header h1 { font-size: 1rem; margin: 0; flex: 1; }
#who { color: var(--soft); }
main { padding: 1rem 1.2rem; }
#desk { display: grid; grid-template-columns: minmax(420px, 1fr) minmax(420px, 1.1fr); gap: 1.2rem; align-items: start; }
@media (max-width: 1000px) { #desk { grid-template-columns: 1fr; } }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--soft); font-weight: 500; }
tbody tr { cursor: pointer; }
tbody tr:hover, tbody tr.on { background: #f6eee8; }
td.note { max-width: 22rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { display: inline-block; padding: 0 .45rem; border-radius: .6rem; font-size: 12px; background: var(--line); }
.status.open { background: #f8d9cf; } .status.in_progress { background: #f7efcc; } .status.waiting { background: #dde9ef; }
.status.resolved { background: #e3eedf; } .status.closed { background: #eceaf0; color: var(--soft); }
.filters { display: flex; gap: .6rem; margin-bottom: .6rem; align-items: center; }
#detail { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.2rem; }
#detail h2 { margin: 0 0 .3rem; font-size: 1.1rem; }
.meta { color: var(--soft); margin-bottom: .6rem; }
.note { white-space: pre-wrap; font-size: 15px; }
#d-shot { max-width: 100%; border-radius: 6px; border: 1px solid var(--line); }
.place { margin: .6rem 0; display: grid; gap: .3rem; }
pre { background: var(--paper); padding: .6rem; overflow: auto; max-height: 20rem; font-size: 12px; }
ol#d-thread { list-style: none; padding: 0; display: grid; gap: .5rem; }
ol#d-thread li { padding: .45rem .6rem; border-radius: 6px; background: var(--paper); white-space: pre-wrap; }
ol#d-thread li.support { background: #eef3f7; margin-left: 2rem; }
ol#d-thread li.status { background: none; color: var(--soft); font-style: italic; padding: 0 .6rem; }
ol#d-thread .by { display: block; color: var(--soft); font-size: 12px; }
textarea { width: 100%; font: inherit; padding: .5rem; border: 1px solid var(--line); border-radius: 6px; }
.actions { display: flex; justify-content: space-between; margin-top: .4rem; }
button { font: inherit; padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }
button[type=submit], #signin-btn { background: var(--accent); color: #fff; border-color: var(--accent); }
.error { color: #b5483a; }
code { background: var(--paper); padding: 0 .3rem; border-radius: 4px; }
