* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
header { background: #fff; border-bottom: 1px solid var(--platform-line); }
.top, main { width: min(100% - 40px, 1000px); margin-inline: auto; }
.top, nav, .section-head, .card-head, .actions, .access-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.top, .section-head, .card-head, .access-row { justify-content: space-between; }
.top { min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; line-height: 1.2; }
.brand small, time, .hint, .identifier { color: var(--platform-muted); font-size: .85rem; }
.brand small { display: block; font-weight: 500; margin-top: 3px; }
main { padding-block: 28px 56px; }
nav { margin-bottom: 24px; gap: 6px; }
nav a, button { border-radius: 12px; min-height: 44px; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 700; color: var(--platform-ink); }
nav a { text-decoration: none; }
nav a[aria-current="page"] { background: var(--platform-soft); color: var(--platform-action); }
button { background: #fff; border: 1px solid var(--platform-depth); cursor: pointer; }
button.primary { color: #fff; background: var(--platform-action); border-color: var(--platform-action); }
button:disabled { opacity: .6; cursor: wait; }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.12; margin: 0; }
h2, h3 { font-size: 1.13rem; margin: 0; }
.section-head { margin: 12px 0 22px; }
.card { margin: 0 0 18px; padding: 24px; background: white; border: 1px solid var(--platform-line); border-radius: var(--platform-radius); box-shadow: 0 6px 20px rgb(25 54 51 / .06); overflow-wrap: anywhere; }
.login { max-width: 420px; margin: clamp(12px, 6vh, 72px) auto; }
.login h1 { font-size: 1.8rem; margin-bottom: 22px; }
label, .field { display: grid; gap: 5px; margin-block: 14px; font-weight: 700; }
input, textarea { width: 100%; border: 1px solid #77948d; border-radius: 10px; padding: 10px 12px; background: #fff; font: inherit; color: inherit; }
textarea { resize: vertical; }
form .hint { margin: -8px 0 14px; }
.changes { margin: 18px 0; }
.changes section { padding: 12px 0; border-block-start: 1px solid var(--platform-line); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 8px 0; }
.pair div { background: var(--platform-ground); border-radius: 10px; padding: 10px 14px; }
.pair div:last-child { background: var(--platform-soft); }
dt { color: var(--platform-muted); font-size: .83rem; }
dd { margin: 3px 0 0; }
.identifier { overflow-wrap: anywhere; }
.access-row { border-bottom: 1px solid var(--platform-line); padding: 16px 0; }
.access-row:last-child { border: 0; }
.access-row p { margin: 0; }
details { margin-top: 18px; }
summary { font-weight: 700; cursor: pointer; }
#notice:not(:empty), #error:not(:empty) { margin-bottom: 18px; padding: 12px 16px; border-radius: 12px; }
#notice:not(:empty) { background: var(--platform-soft); }
#error:not(:empty) { background: #fbece8; color: #7f291d; }
@media (max-width: 560px) {
  .top, main { width: calc(100% - 28px); }
  .card { padding: 16px; }
  nav { gap: 0; }
  nav a { padding-inline: 9px; }
  .pair { grid-template-columns: 1fr; gap: 4px; }
}
