@font-face {
  font-family: Sarabun; src: url("/assets/Sarabun-Regular.ttf") format("truetype");
  font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: Sarabun; src: url("/assets/Sarabun-Bold.ttf") format("truetype");
  font-style: normal; font-weight: 700; font-display: swap;
}
:root {
  color-scheme: light; font-family: Sarabun, sans-serif; color: #173455;
  background: #f3f7fc; --blue: #1558ab; --border: #d8e4f1; --muted: #506780;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.5; }
a { color: var(--blue); text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid #5ca5f4; outline-offset: 3px; }
.container { width: min(1152px, calc(100% - 48px)); margin-inline: auto; }
.masthead { background: #12386b; color: white; border-bottom: 3px solid #3b8ee0; }
.masthead-inner { min-height: 82px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.brand { color: white; display: inline-flex; align-items: center; gap: 13px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 20px; line-height: 1.25; }
.brand small { font-size: 13px; color: #d0e4ff; margin-top: 2px; }
.mark { width: 47px; height: 47px; border-radius: 13px; display: grid; place-items: center; background: #ddecff; color: #12386b; font-weight: 700; font-size: 20px; }
.breadcrumbs { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 7px 9px; align-items: center; overflow-wrap: anywhere; font-size: 14px; color: var(--muted); }
.breadcrumbs a:hover { text-decoration: underline; }
.heading { margin: 20px 0 24px; }
.heading h1 { margin: 0; font-size: clamp(26px, 4vw, 37px); line-height: 1.3; color: #122f50; overflow-wrap: anywhere; }
.heading p { color: var(--muted); margin: 7px 0 0; }
.controls, .actions { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.controls { justify-content: space-between; gap: 18px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 39px; font-weight: 700; border: 1px solid transparent; border-radius: 8px; padding: 7px 15px; white-space: nowrap; transition: background .15s; }
.primary { background: var(--blue); color: white; }
.primary:hover { background: #104584; }
.secondary { background: white; color: #174d86; border-color: #aac2de; }
.secondary:hover { background: #edf5ff; }
.compact { min-height: 31px; padding: 4px 10px; font-size: 13px; }
.header-button { border-color: #9fbde5; background: #ffffff0c; color: white; font-size: 14px; }
.header-button:hover { background: #ffffff25; }
.danger { background: #a82533; color: white; }
.danger:hover { background: #8b1c28; }
.danger-light { border-color: #efcbd0; color: #a0222f; background: #fff8f8; }
.danger-light:hover { background: #ffe7e9; }
.panel { background: white; border: 1px solid var(--border); border-radius: 13px; overflow: hidden; margin-bottom: 28px; }
.table-heading { display: flex; align-items: center; gap: 11px; padding: 15px 17px; flex-wrap: wrap; }
.table-heading span { color: var(--muted); font-size: 14px; }
.table-heading button { margin-left: auto; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 12px 17px; }
th { background: #e6f0fc; color: #163e6b; font-size: 14px; white-space: nowrap; }
td { border-top: 1px solid #e9f0f8; }
td:not(:first-child) { white-space: nowrap; }
tbody tr:nth-child(even) { background: #f8fbff; }
tbody tr:hover { background: #edf5ff; }
.filename { display: flex; align-items: center; min-width: 150px; gap: 11px; overflow-wrap: anywhere; font-weight: 700; }
a.filename:hover { text-decoration: underline; }
.file-icon, .folder-icon { width: 17px; height: 17px; flex: 0 0 17px; border: 2px solid #3a75b5; border-radius: 3px; background: #eaf4ff; }
.folder-icon { height: 13px; position: relative; background: #dcecfd; }
.folder-icon::before { content: ""; display: block; height: 4px; width: 7px; background: #3a75b5; border-radius: 2px 2px 0 0; position: absolute; left: -2px; top: -5px; }
.number { font-variant-numeric: tabular-nums; }
.row-actions { display: flex; gap: 6px; }
.empty { text-align: center; color: var(--muted); padding: 36px 15px; white-space: normal; }
.notice, .progress-box { border: 1px solid #acd8c3; background: #eaf7ef; color: #19583f; border-radius: 9px; padding: 10px 14px; margin-bottom: 13px; overflow-wrap: anywhere; }
.notice.error { border-color: #f0c4c9; background: #fff1f3; color: #961a2d; }
.progress-box { background: #eef5ff; color: #1c4f86; border-color: #c9ddf4; }
progress { display: block; width: 100%; margin-top: 7px; accent-color: var(--blue); }
dialog { width: min(435px, calc(100vw - 30px)); border: 1px solid var(--border); border-radius: 13px; padding: 23px; color: #173455; }
dialog::backdrop { background: #0d223d77; }
dialog h2 { margin: 0 0 9px; font-size: 23px; }
dialog p:empty { display: none; }
dialog .muted { color: var(--muted); overflow-wrap: anywhere; }
dialog label { display: grid; gap: 5px; }
dialog input { border: 1px solid #afc5e1; border-radius: 7px; padding: 9px; min-width: 0; }
.dialog-buttons { display: flex; gap: 9px; justify-content: end; margin-top: 19px; }
@media (max-width: 660px) {
  .container { width: calc(100% - 26px); }
  .masthead-inner { min-height: 70px; }
  th, td { padding: 10px 11px; }
  .heading { margin-bottom: 18px; }
  .button { font-size: 14px; }
}

