:root {
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: #15203c;
  background: #f6f7fb;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
header {
  min-height: 52px;
  background: white;
  border-bottom: 1px solid #dfe3ee;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 7px 16px;
}
.brand { text-decoration: none; flex-shrink: 0; }
.brand img { display: block; width: 130px; height: auto; background: white; }
header span { color: #647086; }
header button { margin-left: auto; }
.workspace { display: grid; grid-template-columns: 186px minmax(0, 1fr); }
nav {
  padding: 10px 8px;
  display: flex;
  gap: 2px;
  flex-direction: column;
  align-self: start;
  position: sticky;
  top: 0;
}
nav button {
  background: transparent;
  color: #36425c;
  text-align: left;
  border: 0;
  font-weight: 500;
}
nav button[aria-current=page] { background: #e7e4fb; color: #5141be; }
main { padding: 16px; min-width: 0; }
h1 { margin: 0 0 12px; font-size: 22px; line-height: 1.3; }
h2 { margin: 0 0 10px; font-size: 15px; line-height: 1.4; }
h3 { margin: 0 0 8px; font-size: 14px; }
p { margin: 0 0 10px; }
.card {
  padding: 14px;
  margin-bottom: 12px;
  background: white;
  border: 1px solid #dfe3ee;
  border-radius: 10px;
  min-width: 0;
}
.card > :last-child { margin-bottom: 0; }
.narrow { max-width: 420px; margin: 28px auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.grid > * { min-width: 0; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.muted { color: #68738a; font-size: 12px; overflow-wrap: anywhere; }
.badge { padding: 3px 7px; border-radius: 5px; background: #edf0f7; font-size: 12px; }
.warning { background: #fff3d3; color: #744c00; padding: 10px; border-radius: 7px; }
.body { white-space: pre-wrap; overflow-wrap: anywhere; }
.reply { border-left: 3px solid #d8d3f4; padding: 6px 10px; margin: 10px 0; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; margin-bottom: 10px; min-width: 0; }
label.check { flex-direction: row; align-items: center; }
input, select, textarea {
  padding: 6px 8px;
  min-height: 32px;
  border: 1px solid #cdd3e1;
  border-radius: 6px;
  font: inherit;
  line-height: 18px;
  background: white;
  color: inherit;
  min-width: 0;
  max-width: 100%;
}
input[type=file] { padding: 4px 6px; }
input::file-selector-button { font: inherit; margin-right: 8px; }
textarea { min-height: 76px; resize: vertical; }
input[type=checkbox] { width: 16px; height: 16px; min-height: 16px; flex-shrink: 0; }
button {
  cursor: pointer;
  border: 1px solid transparent;
  background: #6150d3;
  color: white;
  border-radius: 6px;
  padding: 6px 10px;
  min-height: 32px;
  font: inherit;
  line-height: 18px;
  font-weight: 600;
}
button:hover { filter: brightness(.94); }
button.secondary { background: #edf0f7; color: #29364e; }
button:disabled { cursor: wait; opacity: .6; }
:is(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid #6150d3; outline-offset: 2px; }
a { color: #5141be; }
table { border-collapse: collapse; width: 100%; font-size: 12px; }
td, th { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e6e9f0; vertical-align: top; }
th { color: #647086; font-weight: 500; }
.scroll { overflow: auto; max-width: 100%; }
#notice:empty { display: none; }
#notice { padding: 8px 16px; background: #e9f6ed; color: #1a5c33; }
#notice.error { background: #ffeded; color: #9b2929; }
details > summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
details[open] > summary { margin-bottom: 8px; }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  header { gap: 10px; padding: 6px 12px; }
  header span { font-size: 11px; line-height: 1.25; }
  .brand img { width: 112px; }
  header button { padding: 6px 8px; }
  .workspace { display: block; }
  nav { position: static; flex-direction: row; overflow: auto; padding: 6px 12px; gap: 4px; }
  nav button { white-space: nowrap; }
  main { padding: 12px; }
  .card { padding: 12px; }
  .grid { gap: 10px; }
  h1 { font-size: 22px; }
  button, input, select { min-height: 44px; }
  label.check { min-height: 44px; }
  input[type=checkbox] { min-height: 18px; width: 18px; height: 18px; }
  details > summary { min-height: 44px; display: flex; align-items: center; }
}
