:root { --primary: #67532f; --secondary: #493b24; --accent: #f6e5b6; }
body, input, select, textarea, button { font-family: Tahoma, 'Segoe UI', sans-serif; }
body { line-height: 1.7; }
.dashboard #content { width: auto; }
.work-dashboard { margin-bottom: 28px; }
.work-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 14px; }
.work-card { display: grid; gap: 10px; padding: 22px; border: 1px solid var(--hairline-color); border-radius: 14px; background: var(--body-bg); text-decoration: none !important; }
.work-card:hover { border-color: #b39760; background: var(--darkened-bg); }
.work-card strong { font-size: 28px; color: var(--body-fg); }
.work-card span { color: var(--body-fg); font-size: 13px; }
.admin-operation { max-width: 900px; }
.admin-operation form { padding: 24px; background: var(--darkened-bg); border-radius: 14px; }
.admin-operation label { display: block; font-weight: bold; margin-bottom: 8px; }
.admin-operation textarea { width: min(100%, 600px); }
.admin-operation input:not([type=hidden]), .admin-operation select, .admin-operation textarea { max-width: 100%; box-sizing: border-box; }
.admin-operation details { margin-block: 24px; }
.operation-review { overflow-x: auto; margin-block: 20px; }
.operation-review table { width: 100%; }
.operation-links { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.operation-links a { padding: 10px 14px; background: var(--darkened-bg); border: 1px solid var(--hairline-color); border-radius: 8px; }
.admin-copy { padding: 5px 10px; margin-inline: 6px; border: 1px solid var(--hairline-color); background: var(--darkened-bg); color: var(--body-fg); cursor: pointer; border-radius: 6px; }
#changelist table thead th { white-space: nowrap; }
#changelist td time { white-space: nowrap; }
#changelist-form .results, .inline-group .tabular { max-width: 100%; overflow-x: auto; }
#result_list, .inline-group .tabular table { min-width: max-content; }
@media(max-width:767px) {
  .work-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .work-card { padding: 16px; }
  .admin-operation form { padding: 14px; }
  #content { padding: 12px; }
  .submit-row { position: sticky; bottom: 0; z-index: 5; }
}
