:root {
  --brand: #2457d6;
  --ink: #172033;
  --muted: #697386;
  --line: #e4e8f0;
  --soft: #f4f6fa;
  --paper: #ffffff;
  --danger: #b42318;
  --shadow: 0 14px 40px rgba(32, 46, 78, .08);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: #f7f8fb;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: #f7f8fb; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
img { max-width: 100%; }

.topbar {
  position: sticky; top: 0; z-index: 30; height: 76px; padding: 0 clamp(20px, 4vw, 64px);
  display: flex; align-items: center; gap: 28px; background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(224,228,238,.9); backdrop-filter: blur(18px);
}
.brand-lockup { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.brand-lockup img, .login-brand img { width: 42px; height: 42px; object-fit: contain; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; display: inline-grid; place-items: center; color: #fff; font-weight: 800; font-size: 21px; background: var(--brand); box-shadow: 0 8px 18px color-mix(in srgb, var(--brand) 28%, transparent); }
.brand-lockup strong, .brand-lockup small, .login-brand strong, .login-brand small { display: block; }
.brand-lockup strong { font-size: 15px; letter-spacing: .01em; }
.brand-lockup small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.desktop-nav { display: flex; align-self: stretch; align-items: center; gap: 8px; margin-left: auto; }
.desktop-nav a { position: relative; padding: 10px 14px; color: #586174; font-size: 14px; font-weight: 650; border-radius: 10px; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, white); }
.account-menu { position: relative; margin-left: 8px; }
.account-menu summary { list-style: none; display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 12px; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu[open] summary, .account-menu summary:hover { background: var(--soft); }
.avatar { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, white); font-size: 13px; font-weight: 800; }
.account-name { max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; font-weight: 650; }
.account-popover { position: absolute; top: 52px; right: 0; width: 190px; padding: 8px; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.account-popover > a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.account-popover > a:hover { background: var(--soft); }
.language-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 7px; margin: 5px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.language-row a { padding: 6px; border-radius: 7px; text-align: center; font-size: 11px; }
.language-row a.selected { color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, white); font-weight: 800; }

.page-shell { width: min(1480px, calc(100% - clamp(28px, 6vw, 96px))); min-height: calc(100vh - 150px); margin: 0 auto; padding: 34px 0 64px; }
.footer { min-height: 74px; padding: 22px clamp(22px, 5vw, 72px); display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; color: #8790a2; border-top: 1px solid var(--line); background: white; font-size: 12px; }
.flash { position: fixed; z-index: 50; top: 88px; left: 50%; transform: translateX(-50%); max-width: min(520px, 90vw); padding: 12px 20px; color: #11633b; background: #eaf8f0; border: 1px solid #bfe8d0; border-radius: 12px; box-shadow: var(--shadow); font-size: 13px; }
.flash.error { color: #8a1c15; background: #fff1f0; border-color: #f5c2be; }

.hero { position: relative; min-height: 196px; padding: clamp(30px, 5vw, 52px); overflow: hidden; display: flex; align-items: center; justify-content: space-between; color: white; background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 90%, #17244c), var(--brand)); border-radius: 26px; box-shadow: 0 18px 50px color-mix(in srgb, var(--brand) 22%, transparent); }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 65% 20%, rgba(255,255,255,.2), transparent 32%); pointer-events: none; }
.hero h1 { position: relative; z-index: 2; margin: 10px 0 6px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.035em; }
.hero p { position: relative; z-index: 2; margin: 0; color: rgba(255,255,255,.73); font-size: 15px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 10px; font-weight: 800; opacity: .75; }
.hero-orb { position: relative; width: 170px; height: 110px; margin-right: 6%; }
.hero-orb span { position: absolute; width: 68px; height: 68px; border: 1px solid rgba(255,255,255,.5); border-radius: 22px; transform: rotate(35deg); backdrop-filter: blur(5px); }
.hero-orb span:nth-child(2) { left: 50px; top: 20px; background: rgba(255,255,255,.12); }
.hero-orb span:nth-child(3) { left: 100px; top: 42px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 30px; margin-top: 34px; align-items: start; }
.workspace-column { min-width: 0; }
.content-section { margin-bottom: 38px; }
.section-heading { min-height: 36px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.section-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.015em; }
.section-heading > span { min-width: 25px; height: 25px; padding: 0 7px; display: inline-grid; place-items: center; color: var(--muted); background: #e9ecf2; border-radius: 20px; font-size: 11px; }
.section-heading a { margin-left: auto; color: var(--brand); font-size: 12px; font-weight: 700; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.app-card { min-height: 276px; padding: 22px; display: flex; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 3px 12px rgba(33,45,73,.025); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.app-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); box-shadow: var(--shadow); }
.app-card[hidden] { display: none; }
.app-card-head { display: flex; justify-content: space-between; align-items: start; }
.app-icon { width: 52px; height: 52px; display: grid; place-items: center; overflow: hidden; color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, white); border-radius: 15px; font-size: 20px; font-weight: 800; }
.app-icon img, .mini-icon img { width: 100%; height: 100%; object-fit: contain; }
.favorite-form { margin: 0; }
.icon-button { width: 34px; height: 34px; border: 0; border-radius: 50%; color: #c1c6d0; background: transparent; font-size: 17px; }
.icon-button:hover { background: var(--soft); }
.icon-button.selected { color: #f0ad24; }
.app-copy { flex: 1; padding-top: 18px; }
.app-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: #8a92a2; font-size: 10px; }
.app-copy h3 { margin: 9px 0 8px; font-size: 17px; }
.app-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.status { display: inline-flex; align-items: center; width: max-content; padding: 4px 8px; border-radius: 20px; color: #216e48; background: #e9f8f0; font-size: 10px; font-weight: 750; white-space: nowrap; }
.status.maintenance { color: #9a5b13; background: #fff5e3; }
.status.preparing { color: #4d5d78; background: #edf0f5; }
.status.disabled { color: #9b302a; background: #fff0ef; }
.button { min-height: 40px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 11px; font-size: 12px; font-weight: 750; transition: filter .15s, transform .15s; }
.button:hover { filter: brightness(.97); transform: translateY(-1px); }
.button.primary { color: white; background: var(--brand); box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 20%, transparent); }
.button.secondary { color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, white); border: 1px solid color-mix(in srgb, var(--brand) 20%, white); }
.button.ghost { color: #626b7d; background: white; border: 1px solid var(--line); }
.button.large { min-height: 50px; width: 100%; font-size: 14px; }
.card-action { margin-top: 18px; justify-content: space-between; color: #33405a; background: #f5f6f9; }
.card-action:hover { color: white; background: var(--brand); }
.card-action.disabled { color: #98a0af; background: #f5f6f8; cursor: not-allowed; }
.category-filters { margin: -2px 0 17px; display: flex; gap: 7px; overflow-x: auto; padding-bottom: 3px; }
.filter-chip { padding: 8px 13px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); background: white; white-space: nowrap; font-size: 11px; }
.filter-chip.active { color: white; border-color: var(--brand); background: var(--brand); }
.recent-row { display: flex; gap: 10px; overflow-x: auto; }
.recent-row a { min-width: 160px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; background: white; border: 1px solid var(--line); border-radius: 13px; font-size: 12px; font-weight: 700; }
.mini-icon { flex: none; width: 32px; height: 32px; display: inline-grid; place-items: center; overflow: hidden; color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, white); border-radius: 10px; font-size: 12px; font-weight: 800; }
.announcement-panel { position: sticky; top: 106px; padding: 23px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.announcement-list article { padding: 17px 0; border-top: 1px solid var(--line); }
.announcement-list article:first-child { padding-top: 5px; border-top: 0; }
.announcement-list article > div { display: flex; align-items: center; gap: 7px; }
.announcement-list time, .feed-meta time { color: #969dab; font-size: 10px; }
.announcement-list h3 { margin: 8px 0 6px; font-size: 13px; }
.announcement-list p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pin { display: inline-flex; padding: 3px 7px; color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, white); border-radius: 20px; font-size: 9px; font-weight: 800; }
.empty-state { min-height: 230px; padding: 30px; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--muted); background: white; border: 1px dashed #ccd2dc; border-radius: var(--radius); text-align: center; }
.empty-state > span { font-size: 34px; color: #a9b0bd; }
.empty-state h3, .empty-state p { margin: 0; font-size: 14px; }
.empty-state.small { min-height: 120px; }

.page-heading { min-height: 86px; margin-bottom: 25px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.page-heading .eyebrow { color: var(--brand); }
.page-heading h1 { margin: 6px 0 0; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.04em; }
.announcement-feed { max-width: 900px; display: grid; gap: 16px; }
.announcement-feed article { padding: clamp(22px, 4vw, 34px); background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.feed-meta { display: flex; align-items: center; gap: 10px; }
.announcement-feed h2 { margin: 13px 0 12px; font-size: 20px; }
.announcement-feed p { margin: 0; color: #586174; line-height: 1.8; white-space: pre-line; }
.profile-card { max-width: 880px; padding: clamp(25px, 4vw, 42px); background: white; border: 1px solid var(--line); border-radius: 22px; }
.profile-identity { padding-bottom: 28px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.large-avatar { width: 64px; height: 64px; display: grid; place-items: center; color: white; background: var(--brand); border-radius: 20px; font-size: 24px; font-weight: 800; }
.profile-identity h2 { margin: 0 0 5px; }
.profile-identity p { margin: 0; color: var(--muted); font-size: 12px; }
.detail-list { margin: 0; }
.detail-list > div { padding: 17px 0; display: grid; grid-template-columns: 180px 1fr; gap: 20px; border-bottom: 1px solid var(--line); }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); font-size: 12px; }
.detail-list dd { margin: 0; font-size: 13px; word-break: break-word; }
.tag { display: inline-flex; margin: 2px; padding: 4px 8px; color: #59647a; background: #eef1f5; border-radius: 7px; font-size: 10px; font-weight: 700; }
.tag.accent { color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, white); }
.error-page { min-height: 55vh; display: grid; place-items: center; align-content: center; gap: 18px; text-align: center; }
.error-page > span { font-size: 70px; line-height: 1; font-weight: 850; color: color-mix(in srgb, var(--brand) 40%, #d9dce3); }
.error-page h1 { max-width: 500px; margin: 0; font-size: 22px; }

.admin-tabs { margin: -34px 0 26px; padding: 13px 0 0; display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.admin-tabs a { padding: 14px 12px 12px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-size: 11px; font-weight: 700; }
.admin-tabs a.active { color: var(--brand); border-bottom-color: var(--brand); }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.metric-grid a { position: relative; min-height: 150px; padding: 25px; display: flex; flex-direction: column; justify-content: space-between; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.metric-grid a:hover { border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); box-shadow: var(--shadow); }
.metric-grid span { font-size: 38px; font-weight: 800; letter-spacing: -.05em; }
.metric-grid strong { color: var(--muted); font-size: 12px; }
.metric-grid small { position: absolute; right: 22px; top: 22px; color: var(--brand); }
.admin-action-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.admin-action-grid a { padding: 18px 22px; display: flex; align-items: center; gap: 12px; color: white; background: #232c40; border-radius: 14px; }
.admin-action-grid span { color: color-mix(in srgb, var(--brand) 55%, white); font-size: 20px; }
.admin-action-grid strong { font-size: 12px; }
.table-card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 11px; }
th { color: #7d8698; background: #fafbfc; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfcfd; }
td code { font-size: 10px; color: #59647a; }
.table-app, .user-cell { display: flex; align-items: center; gap: 11px; min-width: 150px; }
.table-app strong, .table-app small { display: block; }
.table-app small { margin-top: 4px; color: #98a0af; font-size: 9px; }
.row-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.row-actions a { color: var(--brand); font-weight: 700; }
.row-actions form { margin: 0; }
.danger-link { padding: 0; color: var(--danger); background: none; border: 0; font-size: 11px; }
.reason { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }

.editor-form { max-width: 1040px; }
.editor-form.narrow { max-width: 780px; }
.form-section { margin-bottom: 20px; padding: clamp(22px, 4vw, 34px); background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.form-section-heading { margin-bottom: 27px; display: flex; align-items: center; gap: 13px; }
.form-section-heading > span { width: 32px; height: 32px; display: grid; place-items: center; color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, white); border-radius: 10px; font-size: 10px; font-weight: 800; }
.form-section-heading h2, .form-section-heading p { margin: 0; }
.form-section-heading h2 { font-size: 15px; }
.form-section-heading p { margin-top: 3px; color: var(--muted); font-size: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 21px; }
.form-grid > label:not(.check) { display: flex; flex-direction: column; gap: 8px; color: #424d63; font-size: 11px; font-weight: 700; }
.field-label { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.required-badge { padding: 2px 6px; color: #b42318; background: #fff0ef; border: 1px solid #f5c4c0; border-radius: 999px; font-size: 8px; font-weight: 800; line-height: 1.25; white-space: nowrap; }
.required-badge.conditional { color: #875a0a; background: #fff8e7; border-color: #ead89f; }
.form-grid .full { grid-column: 1 / -1; }
input, select, textarea { width: 100%; color: var(--ink); background: #fff; border: 1px solid #d9dee7; border-radius: 10px; outline: 0; }
input, select { min-height: 43px; padding: 0 12px; }
textarea { padding: 12px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 10%, transparent); }
.has-error input:not([type="checkbox"]), .has-error select, .has-error textarea { border-color: #dc6259; background: #fffafa; }
.has-error input:not([type="checkbox"]):focus, .has-error select:focus, .has-error textarea:focus { border-color: #c83f36; box-shadow: 0 0 0 3px rgba(200,63,54,.1); }
.field-error { display: block; color: #b42318 !important; font-size: 10px !important; font-weight: 700 !important; }
.file-reselect-hint { display: block; color: #8a5a12 !important; }
input[type="file"] { padding: 9px; height: auto; }
input[type="color"] { width: 70px; padding: 4px; }
label small { color: #8a93a4; font-size: 9px; font-weight: 500; line-height: 1.5; }
.check-stack { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.check { display: flex !important; flex-direction: row !important; align-items: center; gap: 9px; color: #424d63; font-size: 11px; font-weight: 650; }
.check input { width: 17px; min-height: 17px; accent-color: var(--brand); }
.check.nested { margin-top: 8px; }
.form-actions { position: sticky; bottom: 16px; z-index: 5; padding: 12px; display: flex; justify-content: flex-end; gap: 10px; background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 15px; backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.form-preview { width: 180px; max-height: 90px; padding: 8px; object-fit: contain; background: #f6f7f9; border: 1px solid var(--line); border-radius: 10px; }
.form-preview.small, .form-preview.favicon { width: 60px; height: 60px; }
.form-preview.background { width: 100%; max-height: 220px; object-fit: cover; }
.color-input { display: flex; align-items: center; gap: 10px; }
.color-input code { color: var(--muted); font-size: 11px; }
.log-tabs { margin-bottom: 14px; display: flex; gap: 5px; }
.log-tabs a { padding: 9px 14px; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 9px; font-size: 11px; font-weight: 700; }
.log-tabs a.active { color: white; border-color: var(--brand); background: var(--brand); }
.log-filters { margin: -2px 0 14px; display: flex; gap: 7px; overflow-x: auto; padding-bottom: 3px; }

.login-page { display: grid; grid-template-columns: minmax(420px, 1.2fr) minmax(420px, .8fr); background: white; }
.login-visual { position: relative; min-height: 100vh; padding: clamp(45px, 7vw, 95px); display: flex; align-items: flex-end; overflow: hidden; color: white; background-color: #172441; background-image: linear-gradient(150deg, color-mix(in srgb, var(--brand) 82%, #121a30), rgba(18,26,48,.7)), var(--login-bg, none); background-size: cover; background-position: center; }
.login-visual::before, .login-visual::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 42px; transform: rotate(35deg); }
.login-visual::before { width: 330px; height: 330px; right: -80px; top: 12%; }
.login-visual::after { width: 210px; height: 210px; right: 140px; top: 30%; }
.login-visual-content { position: relative; z-index: 2; max-width: 700px; }
.login-visual h1 { margin: 17px 0; max-width: 680px; font-size: clamp(38px, 6vw, 72px); line-height: 1.06; letter-spacing: -.055em; }
.login-visual p { color: rgba(255,255,255,.64); }
.login-panel { min-height: 100vh; padding: clamp(34px, 7vw, 90px); display: grid; place-items: center; }
.login-card { width: min(100%, 420px); }
.login-brand { margin-bottom: 38px; display: flex; align-items: center; gap: 13px; }
.login-brand strong { font-size: 16px; }
.login-brand small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.form-alert { margin-bottom: 18px; padding: 12px 14px; color: #8a1c15; background: #fff1f0; border: 1px solid #f5c2be; border-radius: 10px; font-size: 11px; line-height: 1.5; }
.form-summary { max-width: 1040px; }
.form-alert.neutral { color: #655218; background: #fff9e9; border-color: #efe0a6; }
.separator { margin: 26px 0 18px; display: flex; align-items: center; gap: 12px; color: #969dab; font-size: 9px; }
.separator::before, .separator::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.emergency summary { color: var(--muted); text-align: center; font-size: 10px; }
.emergency-title { margin: 20px 0 0; text-align: center; font-size: 13px; }
.stacked-form { margin-top: 16px; display: grid; gap: 14px; }
.stacked-form label { display: grid; gap: 7px; color: #515b6f; font-size: 10px; font-weight: 700; }
.login-language { margin-top: 28px; display: flex; justify-content: center; gap: 5px; }
.login-language a { padding: 6px 9px; color: #8a92a2; border-radius: 7px; font-size: 10px; }
.login-language a.active { color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, white); font-weight: 800; }
.support, .powered { margin: 18px 0 0; color: #9ba2af; text-align: center; font-size: 9px; }
.powered { margin-top: 8px; }

@media (max-width: 1120px) {
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 290px; }
  .login-page { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 840px) {
  .topbar { height: 68px; padding: 0 18px; }
  .brand-lockup { min-width: 0; margin-right: auto; }
  .brand-lockup small, .account-name { display: none; }
  .desktop-nav { display: none; }
  .page-shell { width: min(100% - 28px, 720px); padding-top: 22px; }
  .hero { min-height: 175px; padding: 28px; }
  .hero-orb { display: none; }
  .dashboard-grid { display: block; margin-top: 27px; }
  .announcement-panel { position: static; margin-top: 25px; }
  .metric-grid, .admin-action-grid { grid-template-columns: 1fr; }
  .metric-grid a { min-height: 115px; }
  .login-page { display: block; background: #f7f8fb; }
  .login-visual { min-height: 250px; padding: 35px 28px; align-items: center; }
  .login-visual h1 { font-size: 34px; }
  .login-panel { min-height: auto; padding: 38px 24px 60px; }
  .login-card { padding: 25px; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .detail-list > div { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 560px) {
  .app-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .app-card { min-height: 255px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading .button { width: 100%; }
  .form-section { padding: 20px; }
  .admin-tabs { margin-top: -22px; }
  .footer { gap: 10px; flex-direction: column; align-items: center; }
}
