:root {
  font-family: "Segoe UI", "Malgun Gothic", sans-serif;
  color: #1e2c28;
  background: #f3f6f4;
  --green: #195e4b;
  --border: #d9e4df;
  --muted: #536860;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--green); }
button, input, select { font: inherit; }
button, .action {
  background: #fff; color: var(--green); border: 1px solid var(--border);
  text-decoration: none; border-radius: .65rem; padding: .58rem .82rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
button:hover, .action:hover { background: #e9f3ee; }
button:disabled { cursor: wait; opacity: .65; }
.primary { background: var(--green); color: #fff; border-color: var(--green); }
.primary:hover { background: #0f4d3c; }
.quiet { border-color: transparent; background: transparent; }
input:not([type=checkbox]):not([type=file]) {
  width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: .65rem;
  padding: .7rem .8rem; background: #fff; color: inherit;
}
.top {
  height: 4.3rem; display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2.4rem); background: #fff; border-bottom: 1px solid var(--border);
}
.brand { font-weight: 740; font-size: 1.25rem; text-decoration: none; display: flex; align-items: center; gap: .65rem; }
.brand-icon {
  display: block; width: 2.25rem; height: 2.25rem;
  object-fit: contain;
}
.layout { max-width: 1440px; margin: auto; display: grid; grid-template-columns: 13rem minmax(0,1fr); }
.rail { padding: 1.6rem 1rem; }
.nav { display: grid; gap: .35rem; }
.nav button { justify-content: flex-start; background: transparent; border-color: transparent; }
.nav button[aria-current=page] { background: #dcece3; font-weight: 700; }
.capacity { margin: 2rem .7rem 0; font-size: .87rem; color: var(--muted); }
.capacity-button { margin: .5rem .7rem 0; }
.content { padding: 1.9rem clamp(1rem,3vw,2.75rem) 3rem; min-width: 0; }
.topline { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; }
.crumbs { display: flex; gap: .3rem; flex-wrap: wrap; font-size: .86rem; color: var(--muted); }
.crumbs button { border: 0; background: transparent; padding: .1rem .22rem; }
h1, h2, p { margin: 0; }
h1 { margin-top: .33rem; font-size: clamp(1.5rem,4vw,2.25rem); overflow-wrap: anywhere; }
h2 { font-size: 1.2rem; }
.search { width: min(20rem,45%); }
.tools { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.card { background: #fff; border: 1px solid var(--border); border-radius: .95rem; }
.notice { color: var(--muted); margin-bottom: .65rem; }
.notice:empty, .global-status:empty { display: none; }
.notice.error, .global-status.error { color: #aa3434; }
.transfer { padding: .75rem 1rem; margin-bottom: .75rem; }
.transfer-top { display: flex; gap: .5rem; align-items: center; justify-content: space-between; }
progress { width: 100%; accent-color: var(--green); }
.drop { padding: .85rem; border-bottom: 1px dashed var(--border); text-align: center; color: var(--muted); }
.drop.over { background: #e0f0e8; color: var(--green); }
.empty { padding: 2.4rem 1rem; text-align: center; color: var(--muted); }
.empty:empty { display: none; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .91rem; }
td, th { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid #edf2ef; }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-size: .81rem; }
td:first-child { width: 48%; min-width: 10rem; overflow-wrap: anywhere; }
.name-button { border: 0; background: transparent; padding: .2rem; text-align: left; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: .3rem; }
.actions button, .actions .action { padding: .38rem .55rem; }
.entry { display: grid; place-items: start center; padding: 12vh 1rem 2rem; }
.login { width: min(100%,25rem); padding: 1.7rem; display: grid; gap: .8rem; }
.login p { color: var(--muted); }
.global-status { text-align: center; padding: .5rem 1rem 1rem; }
dialog { width: min(32rem, 94vw); max-height: 86vh; padding: 1.2rem; color: inherit; }
dialog::backdrop { background: #071f1866; }
.dialog-head { display:flex; align-items:center; justify-content:space-between; gap:.7rem; margin-bottom:1rem; }
.dialog-form { display: grid; gap: .7rem; }
.dialog-form label { display: grid; gap: .25rem; }
.dialog-form .check { display:flex; align-items:center; gap:.5rem; }
.dialog-form select { width: 100%; padding:.55rem; border:1px solid var(--border); border-radius:.5rem; }
.dialog-form img, .dialog-form video, .dialog-form audio { max-width: 100%; max-height: 55vh; }
.dialog-help { color: var(--muted); font-size: .9rem; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path: inset(50%); }
@media (max-width: 700px) {
  .layout { grid-template-columns: 1fr; }
  .rail { padding: .6rem 1rem 0; }
  .nav { display: flex; flex-wrap: wrap; }
  .capacity { margin: .6rem .5rem 0; }
  .content { padding-top: 1.1rem; }
  .topline { align-items: start; flex-direction: column; }
  .search { width: 100%; }
}
