@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;650;700;750;800&display=swap");

:root {
  color-scheme: light;
  --bg: #f7f8fc;
  --surface: #fff;
  --text: #1c2035;
  --sub: #626a81;
  --muted: #778098;
  --line: #e8eaf2;
  --brand: #654fda;
  --brand-strong: #5540c4;
  --brand-soft: #f0ecff;
  --nav-width: 236px;
  --radius: 15px;
  --shadow: 0 2px 5px #1d234308;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, summary, select { cursor: pointer; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; flex: none; }
h1, h2, h3, p { margin: 0; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #997eff; outline-offset: 3px;
}
.skip-link { position: fixed; z-index: 100; left: 12px; top: -80px; padding: 12px; border-radius: 8px; background: white; }
.skip-link:focus { top: 12px; }
.shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--nav-width); background: var(--surface);
  border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 24px 16px 16px;
  z-index: 10;
}
.brand {
  display: flex; align-items: center; gap: 10px; padding: 0 8px; width: max-content;
  font-size: 25px; font-weight: 800; letter-spacing: -.085em; line-height: 1;
}
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px;
  background: linear-gradient(145deg, #8065f3, #5d44d4); color: #fff; box-shadow: 0 3px 6px #654fda30;
}
.brand-word { padding-right: 2px; }
.workspace {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; margin: 31px 0 27px;
  padding: 10px 9px; min-height: 54px; border: 1px solid var(--line); border-radius: 11px; background: white;
}
.workspace:hover { border-color: #cbc3f2; }
.workspace-text { flex: 1; min-width: 0; }
.workspace-name { font-size: 12px; font-weight: 800; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-role { font-size: 11px; color: var(--sub); display: block; margin-top: 1px; }
.nav-label {
  font-size: 10px; font-weight: 800; color: #6d758e; letter-spacing: .095em;
  text-transform: uppercase; margin: 0 10px 9px;
}
.nav-group { display: grid; gap: 4px; margin-bottom: 25px; }
.nav-link {
  display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 0 11px;
  border-radius: 9px; color: #555e76; font-weight: 650; font-size: 13.5px;
}
.nav-link:hover { background: #f6f4fc; color: var(--brand-strong); }
.nav-link.active { color: var(--brand-strong); background: var(--brand-soft); font-weight: 800; }
.nav-link .nav-dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.side-bottom { margin-top: auto; }
.demo-card {
  padding: 12px 11px; border: 1px solid #ebe7f8; background: #faf8ff; border-radius: 11px;
  display: flex; align-items: start; gap: 9px;
}
.demo-card strong { font-size: 11.5px; display: block; margin-bottom: 2px; }
.demo-card small { display: block; font-size: 10.5px; color: var(--sub); line-height: 1.4; }
.switch-link { padding: 0; border: 0; background: none; color: var(--brand-strong); font-size: 11.5px; font-weight: 800; margin-top: 7px; }
.frame { margin-left: var(--nav-width); min-width: 0; }
.topbar {
  height: 65px; position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 32px; gap: 14px;
}
.breadcrumbs { display: flex; align-items: center; gap: 9px; color: var(--sub); font-size: 12.5px; min-width: 0; }
.breadcrumbs .current { color: var(--text); font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.divider { height: 27px; width: 1px; background: var(--line); }
.period-button, .profile-button {
  display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 5px; border-radius: 8px;
}
.period-button { color: var(--sub); font-size: 12px; font-weight: 700; }
.period-button:hover, .profile-button:hover { background: var(--bg); }
.profile-button { text-align: left; gap: 8px; padding-left: 2px; }
.profile-label { display: grid; gap: 1px; white-space: nowrap; }
.profile-label strong { font-size: 12px; line-height: 1.15; }
.profile-label small { color: var(--sub); font-size: 10.5px; }
.avatar {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font-size: 11px; font-weight: 800; flex: none; background: var(--brand-soft); color: var(--brand-strong);
}
.avatar.blue { background: #eaf2ff; color: #315ab2; }
.avatar.green { background: #e1f7ef; color: #146e57; }
.avatar.orange { background: #fff0df; color: #9b551b; }
.main {
  max-width: 1560px; padding: 27px 32px 38px; margin: 0 auto; min-height: calc(100vh - 65px);
}
.page-title {
  display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 0 0 21px;
}
.page-title h1 { font-size: clamp(25px, 2.6vw, 33px); font-weight: 800; letter-spacing: -.053em; line-height: 1.16; }
.page-title p { color: var(--sub); font-size: 13px; margin-top: 5px; line-height: 1.5; }
.title-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.eyebrow {
  color: var(--brand-strong); font-weight: 800; font-size: 10px; letter-spacing: .09em;
  text-transform: uppercase; display: block; margin-bottom: 5px;
}
.btn {
  border: 1px solid transparent; min-height: 38px; padding: 0 13px; display: inline-flex; align-items: center;
  justify-content: center; gap: 7px; border-radius: 9px; font-size: 12.5px; font-weight: 800; white-space: nowrap;
  background: white; line-height: 1.2;
}
.btn:hover { background: #f8f7fb; }
.btn.primary { background: var(--brand); color: white; box-shadow: 0 2px 3px #6651db27; }
.btn.primary:hover { background: var(--brand-strong); }
.btn.secondary { border-color: var(--line); }
.btn.secondary:hover { border-color: #cdc3ee; }
.btn.small { min-height: 32px; padding: 0 10px; font-size: 11.5px; }
.btn.danger { color: #ae304a; background: #fff4f6; border-color: #f5d5df; }
.btn.danger:hover { background: #ffe8ee; }
.icon-btn {
  display: inline-grid; place-items: center; min-width: 33px; height: 33px; border: 0; border-radius: 8px;
  background: transparent; color: var(--sub);
}
.icon-btn:hover { background: var(--brand-soft); color: var(--brand-strong); }
.text-link {
  display: inline-flex; align-items: center; gap: 5px; color: var(--brand-strong); font-weight: 800;
  font-size: 12px; width: fit-content; text-align: left; border: 0; padding: 0; background: transparent;
}
.text-link:hover { text-decoration: underline; }
.hero {
  position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: space-between;
  min-height: 226px; padding: 27px 33px; gap: 22px; color: white;
  border-radius: 18px; background: #181433;
  box-shadow: 0 5px 13px #20123e17;
}
.hero.with-photo::before {
  position: absolute; content: ""; inset: 0; z-index: -2;
  background-image: url("./event-forum.webp"); background-size: cover; background-position: center 57%;
}
.hero::after {
  position: absolute; content: ""; inset: 0; z-index: -1;
  background: linear-gradient(90deg, #181435 0%, #201942ed 36%, #2518495c 77%, #23183a62 100%);
}
.hero.simple::before {
  content: ""; position: absolute; z-index: -2; width: 660px; height: 660px; right: -140px; top: -215px; border-radius: 50%;
  border: 55px solid #46338c; box-shadow: 0 0 0 40px #7559d333, inset 0 0 0 34px #6749ca50; transform: scaleX(1.35);
}
.hero h2 { font-size: clamp(26px, 3vw, 37px); font-weight: 800; line-height: 1.1; letter-spacing: -.05em; margin: 9px 0 8px; }
.hero-copy { max-width: 670px; }
.hero-label {
  display: inline-flex; align-items: center; gap: 7px; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 99px; background: #b5a3fa26; border: 1px solid #b5a3fa36; padding: 5px 9px; color: #e4d9ff;
}
.hero-label i { width: 6px; height: 6px; border-radius: 50%; background: #c1aeff; }
.hero-meta { display: flex; gap: 14px; flex-wrap: wrap; color: #f0eafd; font-size: 12.5px; }
.hero-meta span { display: flex; align-items: center; gap: 6px; }
.hero .btn { margin-top: 18px; background: #fff; color: #342561; min-height: 35px; }
.hero .btn:hover { background: #eee8ff; }
.countdown {
  flex: 0 0 132px; min-height: 117px; display: grid; justify-items: center; align-content: center; padding: 13px;
  border: 1px solid #ffffff4a; border-radius: 14px; background: #20163482; backdrop-filter: blur(8px);
  text-align: center; box-shadow: inset 0 1px 0 #ffffff1a;
}
.countdown strong { font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -.07em; }
.countdown strong.word { font-size: 22px; letter-spacing: -.03em; }
.countdown span { color: #f1eaff; margin-top: 6px; font-size: 11.5px; line-height: 1.25; font-weight: 650; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 17px 0; }
.stat {
  border: 1px solid var(--line); background: white; border-radius: 13px; padding: 13px; min-height: 103px;
  box-shadow: var(--shadow); display: flex; align-items: start; gap: 11px;
}
a.stat:hover { border-color: #cfc6f8; box-shadow: 0 3px 10px #39297712; }
.icon-tile {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: none;
  color: #6049d0; background: #f0ebff;
}
.icon-tile.small { width: 30px; height: 30px; border-radius: 8px; }
.icon-tile.blue { color: #3867c8; background: #eaf1ff; }
.icon-tile.green { color: #12836b; background: #e6f8f1; }
.icon-tile.orange { color: #a96521; background: #fff0df; }
.icon-tile.gray { color: #616c86; background: #f0f2f7; }
.stat-label { display: block; font-size: 11.5px; font-weight: 750; color: #5e6780; margin-bottom: 3px; }
.stat strong { display: block; font-size: clamp(19px, 2vw, 24px); font-weight: 800; letter-spacing: -.048em; line-height: 1.13; }
.stat small { display: block; color: var(--sub); font-size: 10.5px; margin-top: 4px; line-height: 1.3; }
.dashboard-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-bottom: 16px; }
.panel {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  min-width: 0;
}
.panel + .panel.stack { margin-top: 15px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 17px 11px; }
.panel-head h2, .panel-head h3 { font-size: 16px; font-weight: 800; letter-spacing: -.025em; line-height: 1.3; }
.panel-head p { color: var(--sub); font-size: 11.5px; margin-top: 2px; }
.panel-body { padding: 5px 17px 15px; }
.division-row { display: grid; grid-template-columns: minmax(112px, 1fr) minmax(62px, 1.25fr) 42px; align-items: center; gap: 10px; min-height: 43px; }
.division-row + .division-row, .activity-row + .activity-row { border-top: 1px solid #eff0f5; }
.division-name { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 750; min-width: 0; }
.division-name span:last-child { overflow-wrap: anywhere; }
.division-row > strong { font-size: 11.5px; font-weight: 800; color: var(--sub); text-align: right; }
.progress { height: 7px; background: #eeedf5; border-radius: 999px; overflow: hidden; width: 100%; }
.progress > span { display: block; height: 100%; background: #8064e9; border-radius: inherit; }
.progress.blue > span { background: #6490e6; }
.progress.orange > span { background: #d99448; }
.progress.green > span { background: #47ad8b; }
.activity-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; min-height: 45px; }
.activity-text { min-width: 0; flex: 1; }
.activity-text strong { display: block; font-weight: 750; font-size: 11.5px; line-height: 1.3; overflow-wrap: anywhere; }
.activity-text small { color: var(--sub); font-size: 10.5px; display: block; margin-top: 1px; }
.activity-date { white-space: nowrap; color: var(--sub); font-size: 10px; }
.module-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.module-link { display: flex; align-items: center; gap: 10px; padding: 12px; min-height: 64px; }
.module-link:hover { border-color: #cbc1f4; }
.module-link > span:nth-child(2) { flex: 1; font-weight: 800; font-size: 12px; }
.module-link > svg { color: var(--muted); }
.event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.event-card { overflow: hidden; }
.event-cover { min-height: 120px; background: linear-gradient(125deg,#20153e,#6343b4); color: white; display: flex; align-items: start; justify-content: space-between; padding: 16px; }
.event-cover.with-photo { background: linear-gradient(90deg,#20153fba,#20153f3a), url("./event-forum.webp") center 56% / cover; }
.date-chip { display: grid; text-align: center; min-width: 51px; padding: 7px 8px; border: 1px solid #ffffff56; border-radius: 9px; background: #2515449e; }
.date-chip strong { font-size: 20px; line-height: 1; }
.date-chip small { font-size: 10px; margin-top: 3px; }
.event-body { padding: 15px 17px 17px; }
.event-body h2 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.event-body p { color: var(--sub); line-height: 1.5; font-size: 12px; margin-bottom: 11px; }
.toolbar { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin: 0 0 15px; }
.toolbar .field { max-width: 250px; min-width: 145px; }
.tabbar { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; border-bottom: 1px solid var(--line); margin-bottom: 17px; }
.tab {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px 11px; border-bottom: 2px solid transparent; margin-bottom: -1px;
  color: var(--sub); font-weight: 750; font-size: 12.5px;
}
.tab:hover { color: var(--brand-strong); }
.tab.active { color: var(--brand-strong); border-color: var(--brand); }
.badge {
  display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 4px 8px; color: #4f566a;
  background: #eff1f6; font-size: 10.5px; font-weight: 800; white-space: nowrap;
}
.badge.purple { color: #5741bf; background: #eee9ff; }
.badge.blue { color: #2f5db4; background: #eaf2ff; }
.badge.green { color: #176d54; background: #e4f7ee; }
.badge.orange { color: #8d501d; background: #fff0df; }
.badge.red { color: #9f3047; background: #feecef; }
.badge.dark { color: #fff; background: #292043a6; border: 1px solid #ffffff35; }
.muted { color: var(--sub); }
.hint { color: var(--sub); font-size: 12px; line-height: 1.5; }
.notice { color: #654519; background: #fff6e9; border: 1px solid #f5dfbd; border-radius: 10px; padding: 10px 12px; line-height: 1.5; margin-bottom: 14px; font-size: 12px; }
.empty { text-align: center; padding: 38px 20px; }
.empty .icon-tile { margin: 0 auto 10px; }
.empty h2 { font-size: 17px; margin-bottom: 4px; }
.empty p { max-width: 430px; margin: 0 auto; color: var(--sub); line-height: 1.5; font-size: 12.5px; }
.empty .btn { margin-top: 13px; }
.empty.compact { padding: 20px 9px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 12.5px; text-align: left; }
th { color: var(--sub); font-size: 10.5px; font-weight: 800; letter-spacing: .035em; background: #f8f9fc; }
td, th { padding: 11px 14px; border-top: 1px solid #eff0f5; vertical-align: middle; }
td strong { font-weight: 800; }
td > small { color: var(--sub); display: block; font-size: 10.5px; margin-top: 2px; }
.numeric { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.stack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; align-items: start; }
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; align-items: start; }
.kanban-column { background: #eff1f8; padding: 11px; border-radius: 13px; min-height: 160px; border: 1px solid #e9ebf4; }
.kanban-column.over { background: var(--brand-soft); border-color: #a88df4; }
.kanban-head { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; margin-bottom: 9px; }
.kanban-head .badge { margin-left: auto; background: white; }
.task-card { background: white; border: 1px solid var(--line); border-radius: 9px; padding: 10px; margin-bottom: 8px; box-shadow: var(--shadow); }
.task-card[draggable="true"] { cursor: grab; }
.task-card h3 { font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; margin-bottom: 5px; }
.task-card h3 a:hover { color: var(--brand-strong); }
.task-card footer { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--sub); font-size: 10px; }
.task-card .avatar { width: 23px; height: 23px; font-size: 8.5px; }
.task-card .task-owner { overflow-wrap: anywhere; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 11px 0 13px; }
.detail-grid small { color: var(--sub); display: block; font-size: 10.5px; margin-bottom: 2px; }
.detail-grid strong { font-size: 12.5px; }
.note-summary { color: var(--sub); line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.item-list { margin-top: 10px; }
.item-row { display: flex; align-items: center; justify-content: space-between; gap: 11px; padding: 9px 0; border-top: 1px solid var(--line); }
.item-row span { overflow-wrap: anywhere; font-size: 12.5px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 4px; }
.field { display: grid; gap: 5px; min-width: 0; }
.field > span { font-size: 12px; font-weight: 800; }
input, select, textarea {
  min-height: 38px; width: 100%; border: 1px solid #dfe2ee; border-radius: 8px; background: white; color: var(--text);
  padding: 7px 9px; font-size: 13px;
}
input[readonly] { background: #f5f6fa; color: var(--sub); }
textarea { resize: vertical; min-height: 70px; }
input::placeholder, textarea::placeholder { color: #777f94; }
input[type=file] { padding: 5px; }
input[type=file]::file-selector-button { border: 0; color: var(--brand-strong); border-radius: 6px; padding: 6px 8px; background: var(--brand-soft); margin-right: 6px; font-weight: 750; }
.field small { color: var(--sub); font-size: 11px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid [hidden], [hidden] { display: none !important; }
dialog {
  max-width: min(540px, calc(100vw - 22px)); width: 100%; max-height: calc(100dvh - 22px); padding: 0;
  border: 1px solid #dcd8ed; border-radius: 15px; color: var(--text); box-shadow: 0 14px 66px #1f1c454d;
}
dialog::backdrop { background: #19152c80; backdrop-filter: blur(2px); }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; padding: 15px 18px 12px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 18px; letter-spacing: -.03em; margin: 3px 0; }
.dialog-head p { color: var(--sub); font-size: 12px; }
.dialog-body { padding: 15px 18px; }
.dialog-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.form-error { padding: 8px 10px; border-radius: 7px; background: #fff1f4; color: #a63049; margin-top: 10px; font-size: 12px; }
.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.role-option {
  display: flex; align-items: center; gap: 8px; min-width: 0; border: 1px solid var(--line); border-radius: 9px;
  padding: 8px; background: white; text-align: left;
}
.role-option:hover { border-color: #baabe9; background: #faf8ff; }
.role-option strong { display: block; font-size: 11.5px; }
.role-option small { display: block; color: var(--sub); font-size: 10.5px; }
.period-list { display: grid; gap: 7px; }
.period-option { justify-content: space-between; min-height: 42px; }
.asset-preview { background: #f7f8fc; border: 1px solid var(--line); border-radius: 9px; padding: 16px; min-height: 90px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.asset-preview img, .asset-preview iframe { display: block; width: 100%; border: 0; border-radius: 6px; }
.asset-preview iframe { min-height: 310px; }
#toast {
  position: fixed; z-index: 21; bottom: 20px; right: 20px; padding: 10px 13px; background: #25223b; color: white; border-radius: 9px;
  display: none; gap: 8px; align-items: center; box-shadow: 0 3px 20px #25223b36; font-size: 12.5px; max-width: calc(100vw - 40px);
}
#toast.visible { display: flex; }
.mobile-trigger, .mobile-close, .nav-overlay { display: none; }
.login-shell { min-height: 100dvh; display: grid; grid-template-columns: minmax(300px,.78fr) 1.22fr; }
.login-cover { display: flex; flex-direction: column; justify-content: space-between; color: white; background: linear-gradient(155deg,#1c133da6,#20163ce8), url("./event-forum.webp") 55% center / cover; padding: clamp(24px,4vw,55px); min-height: 390px; }
.login-cover .brand { padding: 0; }
.login-cover h1 { font-size: clamp(30px, 4.5vw, 53px); line-height: 1.03; letter-spacing: -.06em; margin-bottom: 12px; }
.login-cover p { color: #e9e1fb; max-width: 400px; line-height: 1.55; }
.login-main { display: grid; align-content: center; justify-items: center; padding: 24px; }
.login-panel { max-width: 530px; width: 100%; padding: clamp(19px, 3vw, 31px); }
.login-panel h2 { font-size: 24px; margin-bottom: 5px; letter-spacing: -.045em; }
.login-panel .role-grid { margin-top: 15px; }

@media (max-width: 1130px) {
  :root { --nav-width: 207px; }
  .main, .topbar { padding-left: 23px; padding-right: 23px; }
  .sidebar { padding-left: 13px; padding-right: 13px; }
  .stats { gap: 10px; }
  .stat { gap: 7px; padding: 11px; }
  .stat .icon-tile { width: 31px; height: 31px; }
}
@media (max-width: 930px) {
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; gap: 12px; }
  .stat { min-height: 80px; }
  .module-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .frame { margin-left: 0; }
  .sidebar { width: min(280px, 85vw); transform: translateX(-102%); transition: transform .18s ease-out; }
  .shell.mobile-open .sidebar { transform: translateX(0); }
  .shell.mobile-open .nav-overlay { display: block; position: fixed; inset: 0; z-index: 9; border: 0; background: #20193955; }
  .mobile-trigger, .mobile-close { display: inline-grid; }
  .mobile-close { position: absolute; top: 23px; right: 12px; }
  .topbar { height: 56px; padding: 0 14px; }
  .top-actions { gap: 5px; }
  .breadcrumbs { gap: 6px; }
  .breadcrumbs .root, .breadcrumbs .crumb-arrow { display: none; }
  .main { padding: 20px 15px 28px; }
  .hero { padding: 22px; min-height: 194px; }
  .kanban { grid-template-columns: repeat(3, minmax(190px, 1fr)); overflow-x: auto; padding-bottom: 8px; }
  .profile-label { display: none; }
  .stack-grid { grid-template-columns: 1fr; }
}
@media (max-width: 490px) {
  .page-title { align-items: start; flex-direction: column; gap: 10px; margin-bottom: 15px; }
  .page-title p { font-size: 12px; }
  .title-actions { justify-content: flex-start; }
  .hero { padding: 16px; gap: 8px; min-height: 190px; border-radius: 14px; }
  .hero h2 { font-size: 25px; margin: 7px 0; }
  .hero-meta { gap: 5px; display: grid; }
  .hero-meta span { font-size: 10.5px; }
  .hero .btn { margin-top: 10px; min-height: 30px; font-size: 11px; }
  .hero-label { font-size: 8.5px; }
  .countdown { flex-basis: 78px; padding: 7px 4px; min-height: 82px; border-radius: 10px; }
  .countdown strong { font-size: 31px; }
  .countdown strong.word { font-size: 15px; }
  .countdown span { font-size: 9px; }
  .stat { padding: 9px; min-height: 74px; }
  .stat .icon-tile { width: 27px; height: 27px; border-radius: 7px; }
  .stat .icon-tile svg { width: 15px; height: 15px; }
  .stat strong { font-size: 18px; }
  .stat small { font-size: 10px; }
  .stat-label { font-size: 10.5px; }
  .event-grid, .form-grid { grid-template-columns: 1fr; }
  .role-grid { grid-template-columns: 1fr; }
  .login-shell { grid-template-columns: 1fr; }
  .login-cover { min-height: 210px; padding: 18px; }
  .login-cover p { font-size: 12px; }
  .login-main { padding: 15px; }
  .detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .toolbar .field { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
