/* ===== 株式会社システムコーディネイト ブランドカラー =====
   Navy  #172d79 (基調)   Cyan #3cb4c8 (アクセント)   Purple #7850dc   Light #ebf5fa */
:root {
  --navy: #172d79;
  --navy-dark: #0f1f5c;
  --navy-deep: #0a1440;
  --cyan: #3cb4c8;
  --cyan-dark: #2a94a6;
  --purple: #7850dc;
  --orange: #f0a050;
  --bg: #f3f6fa;
  --panel: #ffffff;
  --text: #1c2433;
  --muted: #6b7386;
  --line: #e2e7ef;
  --line-strong: #c9d2df;
  --danger: #c62828;
  --ok: #1f8a4c;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(23,45,121,.06), 0 6px 20px rgba(23,45,121,.06);
  --shadow-lg: 0 10px 40px rgba(10,20,64,.25);
  --font: "Noto Sans JP", "Yu Gothic UI", "YuGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", system-ui, sans-serif;
  --font-display: "Zen Kaku Gothic New", "Yu Gothic UI", "Hiragino Sans", "Meiryo", system-ui, sans-serif;
  --font-latin: "Montserrat", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0 0 .4em; font-family: var(--font-display); font-weight: 700; letter-spacing: .04em; color: var(--navy-deep); }
h1 { font-size: 1.65rem; font-weight: 900; line-height: 1.3; }
h2 { font-size: 1.05rem; letter-spacing: .06em; } h3 { font-size: .95rem; }
h2::before { content: ""; display: inline-block; width: 4px; height: .9em; background: linear-gradient(180deg, var(--cyan), var(--navy)); border-radius: 2px; margin-right: .55rem; vertical-align: -0.08em; }
/* 見出し下のアクセントライン */
.page-head h1::after { content: ""; display: block; width: 44px; height: 3px; margin-top: .5rem; border-radius: 2px; background: linear-gradient(90deg, var(--navy), var(--cyan)); }
/* 日付・数字は欧文書体でタイポグラフィを揃える */
.date, td.num, .stat .value, code { font-family: var(--font-latin); }
.date { font-weight: 600; letter-spacing: .08em; color: var(--navy); font-size: .92em; }
.event-meta { display: inline-flex; align-items: center; gap: .7rem; }
.event-meta .venue { color: var(--muted); position: relative; padding-left: .7rem; }
.event-meta .venue::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 1px; background: var(--line-strong); }
.muted { color: var(--muted); }
.small { font-size: .85em; }
.strong { font-weight: 600; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.err { color: var(--danger); }
code { font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: .88em; background: #f0f3f8; padding: .1rem .4rem; border-radius: 4px; }
code.url { word-break: break-all; }

/* ===== ヘッダー ===== */
.topbar {
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(23,45,121,.04);
  padding: 0 1.5rem; height: 60px; display: flex; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 20;
}
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: linear-gradient(90deg, var(--navy) 0 60%, var(--cyan)); }
.topbar .brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--navy-deep); }
.topbar .brand img { height: 30px; display: block; }
.topbar .brand .sys { border-left: 1px solid var(--line-strong); padding-left: 1rem; display: flex; flex-direction: column; gap: 4px; }
.topbar .brand .sys small { font-family: "Montserrat", var(--font); font-weight: 500; font-size: .6rem; color: var(--muted); letter-spacing: .22em; text-transform: uppercase; line-height: 1; padding-left: 1.1em; }

/* ===== ワードマーク "PHOTO SHARE" ===== */
.wordmark { display: inline-flex; align-items: center; font-family: "Montserrat", "Segoe UI", var(--font); text-transform: uppercase; line-height: 1; font-size: 1.05rem; letter-spacing: .2em; white-space: nowrap; }
.wordmark::before { content: ""; width: 3px; height: 1.05em; background: linear-gradient(180deg, var(--cyan), var(--navy)); margin-right: .55em; border-radius: 2px; transform: skewX(-14deg); }
.wordmark .w-light { font-weight: 300; color: var(--navy-deep); }
.wordmark .w-bold { font-weight: 800; margin-left: .35em; background: linear-gradient(90deg, var(--navy) 0%, #2d4fb8 55%, var(--cyan) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark.lg { font-size: 1.9rem; letter-spacing: .22em; }
.wordmark.on-dark::before { background: linear-gradient(180deg, var(--cyan), rgba(255,255,255,.7)); }
.wordmark.on-dark .w-light { color: rgba(255,255,255,.72); }
.wordmark.on-dark .w-bold { background: linear-gradient(90deg, #ffffff 0%, #bfeaf2 60%, var(--cyan) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-family: "Montserrat", var(--font); font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--cyan-dark); font-weight: 500; }
.topbar .spacer { flex: 1; }
/* ログイン中の管理者（メールアドレス） */
.topbar .whoami { font-size: .78rem; color: var(--muted); max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.container { max-width: 1320px; margin: 0 auto; padding: 1.5rem 1.5rem 3rem; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: .2rem 0 1.2rem; flex-wrap: wrap; }
.page-head h1 { margin: .1rem 0 0; }
.page-head p { margin: .2rem 0 0; }
.crumbs { font-family: var(--font-display); font-size: .8rem; letter-spacing: .06em; color: var(--muted); display: flex; gap: .6rem; align-items: center; margin-bottom: .3rem; }
.crumbs a { text-decoration: none; color: var(--muted); font-weight: 500; } .crumbs a:hover { color: var(--navy); }
.crumbs > span:not(:last-child) { color: var(--cyan); font-family: var(--font-latin); }
.crumbs > span:last-child { color: var(--navy); font-weight: 500; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--shadow); margin-bottom: 1.2rem; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.grow { flex: 1; }
.sep { width: 1px; height: 22px; background: var(--line-strong); margin: 0 .2rem; }
.stack > * + * { margin-top: .7rem; }
.hint { font-size: .85rem; color: var(--muted); background: #f6f8fc; border-left: 3px solid var(--cyan); padding: .45rem .7rem; border-radius: 0 6px 6px 0; }
.hint code { background: #fff; }

/* ===== ボタン ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  padding: .5rem 1rem; border-radius: 7px; border: 1px solid var(--line-strong);
  background: #fff; color: var(--navy-deep); text-decoration: none; white-space: nowrap; font-weight: 500;
  font-family: var(--font-display); letter-spacing: .04em;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.btn:hover { background: #f4f7fb; border-color: #aeb9cb; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn.danger { color: var(--danger); border-color: #ecc4c0; }
.btn.danger:hover { background: #fdf1f0; }
.btn.small { padding: .28rem .65rem; font-size: .84em; border-radius: 6px; }
.btn.icon { padding: .2rem .45rem; }
.btn.block { width: 100%; }
.btn.toggle { border-style: dashed; color: var(--muted); }
.btn.toggle.on { border-style: solid; background: #e9f7ee; border-color: #b7dfc5; color: var(--ok); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
button.link { background: none; border: none; color: var(--cyan-dark); padding: 0 .3rem; font-size: .8em; text-decoration: underline; }

input[type=text], input[type=password], input[type=date], input[type=search], input[type=email], select, textarea {
  padding: .5rem .7rem; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; width: 100%; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(60,180,200,.2); }
textarea { resize: vertical; }
label.field { display: block; }
label.field > span { display: block; font-family: var(--font-display); font-size: .8rem; color: var(--muted); margin-bottom: .25rem; font-weight: 700; letter-spacing: .06em; }
.check { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: var(--navy); }
details summary { cursor: pointer; font-weight: 600; color: var(--navy); }

/* セグメント風ラジオ */
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 7px; overflow: hidden; flex-wrap: wrap; }
.seg label { display: flex; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { padding: .45rem .9rem; cursor: pointer; border-right: 1px solid var(--line-strong); font-size: .92em; }
.seg label:last-child span { border-right: none; }
.seg input:checked + span { background: var(--navy); color: #fff; }
.seg.small span { padding: .3rem .7rem; font-size: .84em; }

/* ===== テーブル ===== */
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-family: var(--font-display); font-size: .78rem; color: var(--muted); font-weight: 700; letter-spacing: .1em; background: #f8fafd; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
td.num, th.num { text-align: right; }
th.chk, td.chk { width: 32px; text-align: center; padding-left: .4rem; padding-right: .2rem; }
tr.disabled td { opacity: .5; }
tr.selected td { background: #eef6ff; }
table.list tbody tr:hover td { background: #f7f9fd; }
table.list tbody tr.selected:hover td { background: #e6f1fd; }
.table-wrap { overflow-x: auto; }
table.list td:not(.muted), table.dist td { white-space: nowrap; }
/* 操作列は横スクロールしても常に右端に見えるようにする */
table.list th:last-child, table.list td:last-child { position: sticky; right: 0; background: #fff; box-shadow: -8px 0 8px -8px rgba(23,45,121,.15); }
table.list th:last-child { background: #f8fafd; }
table.list tbody tr:hover td:last-child { background: #f7f9fd; }
table.list td.muted { min-width: 120px; }
.toolbar { margin: .6rem 0; }
.toolbar.bulk { background: #f6f8fc; border: 1px solid var(--line); border-radius: 8px; padding: .45rem .7rem; }
.toolbar.bulk.idle { background: transparent; border-color: transparent; padding-left: 0; }

/* ===== タブ ===== */
.tabs { display: flex; gap: .4rem; border-bottom: 1px solid var(--line-strong); margin-bottom: 1.2rem; }
.tabs a { font-family: var(--font-display); letter-spacing: .08em; font-size: .95rem; padding: .65rem 1.1rem; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; font-weight: 700; transition: color .15s; }
.tabs a b { font-family: var(--font-latin); font-weight: 600; background: #e9edf5; color: var(--navy); padding: 0 .5rem; border-radius: 999px; font-size: .78em; margin-left: .35rem; letter-spacing: 0; }
.tabs a:hover { color: var(--navy); }
.tabs a.active { color: var(--navy); border-bottom-color: var(--cyan); }
.tabs a.active b { background: var(--navy); color: #fff; }

/* ===== バッジ ===== */
.badge { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-family: var(--font-display); font-size: .74em; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.badge.all { background: #e3f1ff; color: #1b4b9e; }
.badge.restricted { background: #eee9fb; color: #5a35b8; }
.badge.none { background: #fde8e6; color: #9b2c2c; }
.badge.ok { background: #e6f5ec; color: var(--ok); }
.badge.pending { background: #fff3e0; color: #a35a00; }
.badge.cat-internal { background: var(--navy); color: #fff; }
.badge.cat-external { background: var(--orange); color: #fff; }
.badge.st-waiting { background: #eef0f4; color: var(--muted); }
.badge.st-uploading, .badge.st-processing { background: #e3f1ff; color: #1b4b9e; }
.badge.st-done { background: #e6f5ec; color: var(--ok); }
.badge.st-error { background: #fde8e6; color: #9b2c2c; }

.alert { padding: .6rem .9rem; border-radius: 8px; background: #fff7e6; border: 1px solid #f3d9a4; color: #7a4f01; }
.alert.error { background: #fdecea; border-color: #f2b8b1; color: #8a1f11; }

/* ===== 統計カード ===== */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; box-shadow: var(--shadow); }
.stat .label { font-family: var(--font-display); font-size: .78rem; color: var(--muted); font-weight: 700; letter-spacing: .1em; }
.stat .value { font-size: 1.7rem; font-weight: 700; color: var(--navy-deep); line-height: 1.2; margin-top: .1rem; }
.stat .value small { font-size: .8rem; color: var(--muted); font-weight: 500; margin-left: .3rem; }
.stat .value.warn { color: #b85c00; }
.stat .bar { height: 5px; background: #e9edf5; border-radius: 3px; margin-top: .5rem; overflow: hidden; }
.stat .bar i { display: block; height: 100%; background: var(--navy); border-radius: 3px; }
.stat .bar.cyan i { background: var(--cyan); }

/* ===== ドロップダウンメニュー ===== */
.menu { position: absolute; z-index: 60; background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: var(--shadow-lg); min-width: 220px; padding: .3rem; }
.menu button { display: block; width: 100%; text-align: left; background: none; border: none; padding: .5rem .8rem; border-radius: 6px; }
.menu button:hover { background: #f4f7fb; }
.menu button.danger { color: var(--danger); }

/* ===== グリッド ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .8rem; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(23,45,121,.14); }
.card.selected { outline: 3px solid var(--cyan); outline-offset: -1px; }
.thumb { position: relative; aspect-ratio: 4/3; background: #e9edf3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .placeholder { font-size: 2.2rem; color: #9aa5b8; }
.thumb .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.thumb .play span { width: 46px; height: 46px; border-radius: 50%; background: rgba(10,20,64,.65); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; padding-left: 4px; backdrop-filter: blur(2px); }
.card .meta { padding: .45rem .6rem; font-size: .82em; }
.card .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.card .sel { position: absolute; top: 8px; left: 8px; z-index: 2; width: 18px; height: 18px; }
.card .badge { position: absolute; top: 8px; right: 8px; z-index: 2; box-shadow: 0 1px 3px rgba(0,0,0,.2); }

/* ===== モーダル ===== */
.modal-bg { position: fixed; inset: 0; background: rgba(10,20,64,.55); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 1rem; backdrop-filter: blur(2px); }
.modal { background: #fff; border-radius: 12px; max-width: 760px; width: 100%; max-height: 95vh; overflow: auto; padding: 1.3rem 1.5rem; box-shadow: var(--shadow-lg); }
.modal.wide { max-width: 1200px; }
.modal .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; gap: 1rem; }
.modal .close { background: none; border: none; font-size: 1.5rem; line-height: 1; color: var(--muted); }
.modal .close:hover { color: var(--text); }
.detail { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.2rem; }
.detail .preview { background: #0a1440; border-radius: 8px; display: flex; align-items: center; justify-content: center; min-height: 300px; max-height: 70vh; }
.detail .preview img, .detail .preview video { max-width: 100%; max-height: 70vh; object-fit: contain; }
@media (max-width: 800px) { .detail { grid-template-columns: 1fr; } }
.plist-wrap { border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.plist-tools { padding: .4rem .6rem; background: #f8fafd; border-bottom: 1px solid var(--line); }
.plist-tools input { max-width: 240px; padding: .3rem .6rem; }
.plist { max-height: 300px; overflow: auto; padding: .4rem .7rem; }
.plist .company { font-size: .78rem; color: var(--navy); margin-top: .5rem; font-weight: 700; letter-spacing: .03em; }
.plist label { display: block; padding: .12rem 0; }

/* ===== アップロード ===== */
.drop { border: 2px dashed #b6c2d6; border-radius: var(--radius); padding: 1.4rem; text-align: center; color: var(--muted); background: #f8fafd; transition: all .15s; }
.drop.over { border-color: var(--cyan); background: #eaf7f9; }
.drop .drop-icon { font-size: 1.6rem; color: var(--cyan); line-height: 1; margin-bottom: .3rem; }
.progress { height: 5px; background: #e4e9f2; border-radius: 3px; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--navy), var(--cyan)); width: 0; transition: width .2s; }
.uplist { font-size: .85em; max-height: 200px; overflow: auto; }
.uplist .item { display: grid; grid-template-columns: 1fr 100px; gap: .5rem; align-items: center; padding: .25rem 0; }

/* ===== ログイン ===== */
.login { max-width: 440px; margin: 4rem auto; }
.login .panel { padding: 2rem 2.2rem; }
.login-brand img { height: 38px; display: block; margin-bottom: 1.4rem; }
.login-title { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .4rem; }

/* ===== 閲覧画面 ===== */
.viewer-head { background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #1d3a9a 100%); color: #fff; padding: 1.4rem 1.5rem 1.6rem; position: relative; overflow: hidden; }
.viewer-head::after { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(60,180,200,.35), transparent 65%); pointer-events: none; }
.viewer-head .inner { max-width: 1320px; margin: 0 auto; position: relative; }
.viewer-head .logo { height: 22px; display: block; opacity: .95; }
.viewer-head .top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.viewer-head .top .wordmark { font-size: .8rem; letter-spacing: .24em; }
.viewer-head h1 { font-size: 1.7rem; margin: 0 0 .3rem; color: #fff; }
.viewer-head .sub { opacity: .9; font-size: .92rem; display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.viewer-head .sub .date { color: #bfeaf2; }
.viewer-head .who { font-family: var(--font-display); letter-spacing: .04em; }
.viewer-head .expire { background: rgba(240,160,80,.25); border: 1px solid rgba(240,160,80,.6); padding: .05rem .5rem; border-radius: 4px; font-size: .85em; }
.badge.status-open { background: #e6f5ec; color: var(--ok); }
.badge.status-soon { background: #fff3e0; color: #a35a00; }
.badge.status-expired { background: #fde8e6; color: #9b2c2c; }
.badge.status-closed { background: #eef0f4; color: var(--muted); }
.badge.status-deleted { background: #2b2f3a; color: #fff; }
.banner { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid; }
.banner.open { background: #f2faf5; border-color: #bfe3cc; color: #1f5c38; }
.banner.soon { background: #fff8ec; border-color: #f3d9a4; color: #7a4f01; }
.banner.expired, .banner.closed { background: #f4f5f8; border-color: var(--line-strong); color: var(--text); }
.banner.deleted { background: #fdecea; border-color: #f2b8b1; color: #8a1f11; }
.banner .grow { flex: 1; }
.viewer-head .who { margin-top: .8rem; display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: .25rem .8rem; border-radius: 999px; font-size: .9rem; }
.viewer-head .note { white-space: pre-wrap; opacity: .92; margin-top: .9rem; font-size: .95em; max-width: 760px; }
.viewer-foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 2rem 1rem; }
.viewer-foot img { height: 26px; opacity: .55; display: block; margin: 0 auto .5rem; filter: grayscale(1); }
.lightbox { position: fixed; inset: 0; background: #000; z-index: 100; display: flex; flex-direction: column; }
.lightbox .stage { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; position: relative; }
.lightbox .stage img, .lightbox .stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox .bar { display: flex; align-items: center; gap: .6rem; padding: .6rem 1rem; color: #fff; background: rgba(10,20,64,.85); }
.lightbox .bar .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 80px; border: none; background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; border-radius: 8px; }
.lightbox .nav:hover { background: rgba(60,180,200,.5); }
.lightbox .nav.prev { left: 10px; } .lightbox .nav.next { right: 10px; }
.lightbox .btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; }
.lightbox .btn:hover { background: rgba(255,255,255,.22); }
.lock { max-width: 440px; margin: 2.5rem auto; }
.lock input[name=passcode] { font-size: 1.5rem; letter-spacing: .35em; text-align: center; font-family: Consolas, monospace; }
.toast { position: fixed; bottom: 1.4rem; left: 50%; transform: translateX(-50%); background: var(--navy-deep); color: #fff; padding: .6rem 1.1rem; border-radius: 8px; z-index: 200; box-shadow: var(--shadow-lg); font-size: .92rem; }

@media (max-width: 640px) {
  .container { padding: 1rem; }
  .topbar { padding: 0 1rem; }
  .topbar .brand .sys { display: none; }
  .panel { padding: 1rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
