@font-face {
  font-family: Manrope;
  src: url("/media/erp-manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #172d27;
  --muted: #53655e;
  --green: #164e40;
  --green-hover: #0c3b30;
  --soft-green: #e8f1eb;
  --canvas: #f5f7f6;
  --line: #d8e1dc;
  --red: #94332b;
  --radius: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #fff; color: var(--ink); font: 500 15px/1.55 Manrope, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #588966; outline-offset: 3px; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { z-index: 10; top: 8px; left: 8px; width: auto; height: auto; clip-path: none; background: #fff; padding: 10px 18px; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; }
h1 { font-size: clamp(30px, 3.45vw, 49px); font-weight: 730; letter-spacing: -.055em; }
h2 { font-size: 22px; font-weight: 720; letter-spacing: -.04em; }
h3 { font-size: 17px; font-weight: 730; letter-spacing: -.025em; }
.icon { width: 19px; height: 19px; flex: none; pointer-events: none; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 31px; height: 40px; object-fit: contain; }
.brand span, .profile>div, .person>div { display: grid; min-width: 0; }
.brand strong { font-size: 17px; font-weight: 800; letter-spacing: -.045em; line-height: 1.25; }
.brand small { color: var(--muted); font-size: 11px; letter-spacing: .015em; }
.quiet-link, .back { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 650; font-size: 13px; text-decoration: none; }
.quiet-link:hover, .back:hover { color: var(--green); text-decoration: underline; }
.quiet-link .icon, .back .icon { width: 16px; height: 16px; }
.primary, .secondary, .danger { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 9px; font-size: 14px; font-weight: 730; line-height: 1.35; text-align: center; text-decoration: none; }
.primary { color: #fff; background: var(--green); }
.primary:hover { background: var(--green-hover); }
.secondary, .danger { color: var(--ink); background: white; border-color: #bdcbc3; }
.secondary:hover { background: var(--canvas); }
.danger { color: var(--red); border-color: #dbb7af; }
.danger:hover { background: #fff6f3; }
.primary .icon, .secondary .icon { width: 17px; height: 17px; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.intro { margin-top: 12px; max-width: 55ch; color: var(--muted); line-height: 1.7; }
.form { display: grid; gap: 20px; margin: 27px 0; }
.form>.primary { justify-self: start; }
.field { display: grid; gap: 7px; min-width: 0; align-items: start; }
label:not(.sr-only) { color: var(--ink); font-weight: 720; font-size: 13px; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.label-row a, .activate-line a, .help-line a { color: var(--green); font-size: 13px; font-weight: 720; }
.label-row a { text-decoration: none; }
.label-row a:hover { text-decoration: underline; }
input, select, textarea { width: 100%; min-width: 0; min-height: 46px; padding: 10px 13px; border: 1px solid #bdcbc3; border-radius: 9px; background: white; color: var(--ink); font-size: 15px; line-height: 1.5; }
input:hover, select:hover, textarea:hover { border-color: #879c90; }
input:focus, select:focus, textarea:focus { border-color: var(--green); }
input:disabled, select:disabled { background: #f0f3f1; }
input[readonly] { background: #f7f9f7; }
input[type="file"] { padding: 8px; }
input::file-selector-button { margin-right: 12px; border: 0; padding: 6px 12px; border-radius: 4px; color: var(--green); background: var(--soft-green); font: inherit; }
textarea { resize: vertical; }
input::placeholder { color: #697b73; }
.input-wrap { position: relative; min-width: 0; }
.input-wrap.with-icon>.icon { position: absolute; top: 50%; left: 14px; width: 18px; height: 18px; transform: translateY(-50%); color: #687c70; }
.input-wrap.with-icon input { padding-left: 43px; }
.password-wrap input { padding-right: 48px; }
.reveal { display: grid; place-items: center; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); }
.reveal:hover { background: var(--canvas); }
.reveal .icon { width: 17px; height: 17px; }
.reveal[aria-pressed="false"] .icon:last-child, .reveal[aria-pressed="true"] .icon:first-child { display: none; }
.hint, .optional { color: var(--muted); font-size: 12px; font-weight: 500; }
.optional { margin-left: 4px; }
.alert, .errorlist, .flash { overflow-wrap: anywhere; font-weight: 650; font-size: 14px; }
.alert, .errorlist { color: var(--red); }
.alert { margin: 17px 0; background: #fff4f0; border: 1px solid #efd5ce; border-radius: 8px; padding: 11px 14px; }
.errorlist { margin: 0; padding: 0; list-style: none; }
.flash { display: flex; align-items: center; gap: 9px; max-width: 100%; margin-bottom: 20px; background: var(--soft-green); color: var(--green); padding: 12px 15px; border-radius: 9px; }

.login-layout { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); padding: 14px; }
.login-side { display: flex; flex-direction: column; padding: clamp(20px,2.6vw,45px) clamp(28px,5.7vw,92px) 16px; min-width: 0; }
.login-mast { align-self: start; }
.login-form-wrap { width: min(100%,400px); margin: auto; padding: 65px 0; }
.login-form-wrap h1 { font-size: clamp(38px,3.5vw,54px); line-height: 1.08; }
.login-form-wrap .intro { max-width: 34ch; margin: 14px 0 0; font-size: 15px; }
.login-form { gap: 20px; margin: 29px 0 0; }
.login-form input { min-height: 50px; }
.login-form>.submit-login { position: relative; width: 100%; min-height: 49px; margin-top: 3px; }
.submit-login>.icon { position: absolute; right: 17px; }
.activate-line { margin-top: 23px; text-align: center; color: var(--muted); font-size: 13px; }
.activate-line a { margin-left: 3px; }
.login-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 18px 0 0; }
.login-footer .quiet-link { min-height: 32px; }
.campus-story { position: relative; display: flex; overflow: hidden; border-radius: 17px; background: #365444; }
.story-link { display: flex; position: relative; width: 100%; align-items: end; color: #fff; text-decoration: none; }
.story-link::before, .story-link::after { position: absolute; inset: 0; content: ""; }
.story-link::before { background: center 54% / cover no-repeat url("/media/studio.webp"); }
.story-link::after { background: linear-gradient(180deg, rgba(14,40,30,.06) 30%, rgba(10,39,29,.12) 54%, rgba(6,35,25,.87) 100%); }
.story-copy { z-index: 1; width: 100%; padding: clamp(28px,3.4vw,60px); color: #fff; }
.story-copy small, .eyebrow { font-size: 11px; font-weight: 770; letter-spacing: .11em; text-transform: uppercase; }
.story-copy>div { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 10px 0 7px; }
.story-copy h2 { color: #fff; font-size: clamp(29px,3.35vw,53px); line-height: 1.08; letter-spacing: -.058em; }
.story-copy p { color: #f1f5ec; font-size: 13px; }
.story-arrow { display: grid; place-items: center; width: 41px; height: 41px; flex: none; border: 1px solid #ffffff82; border-radius: 50%; }
.story-link:hover .story-arrow { background: #ffffff24; }
.story-link:focus-visible { outline-offset: -5px; outline-color: white; }

.guest-mast { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 19px clamp(18px,5vw,72px); border-bottom: 1px solid var(--line); }
.guest-sheet { width: min(100%,540px); margin: clamp(28px,7vh,80px) auto; }
.sheet { max-width: 680px; padding: clamp(22px,3.2vw,45px); background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.sheet h1 { font-size: clamp(28px,3vw,40px); }
.sheet .back { margin-bottom: 22px; }
.sheet>.secondary { margin-top: 18px; }
.assistance, .help-line { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.help-line, .assistance p, .format-help p { color: var(--muted); font-size: 14px; }
.assistance h2 { font-size: 20px; }
.assistance p, .format-help p { margin: 10px 0; }
.assistance .actions { margin-top: 16px; }
.format-help { margin-top: 18px; background: var(--canvas); border: 1px solid var(--line); border-radius: 9px; padding: 13px 16px; }
.format-help summary { color: var(--green); font-weight: 730; }
.format-help code { overflow-wrap: anywhere; }
.copy-row { display: flex; gap: 8px; }
.copy-row .copy { flex: none; }

.app { display: flex; min-height: 100vh; min-height: 100dvh; background: var(--canvas); }
.side { display: flex; flex-direction: column; width: clamp(220px,19vw,272px); flex: none; padding: 0 16px; background: #fff; border-right: 1px solid var(--line); }
.side-brand { display: flex; align-items: center; min-height: 82px; padding: 12px 7px; }
.side-brand .brand { gap: 9px; }
.side-brand .brand strong { font-size: 16px; }
.desk-nav { display: grid; gap: 5px; padding-top: 24px; }
.nav-link { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 43px; padding: 9px 12px; color: var(--muted); border: 0; border-radius: 8px; background: transparent; font-weight: 650; font-size: 14px; text-align: start; text-decoration: none; }
.nav-link .icon { width: 18px; height: 18px; }
.nav-link.current { color: var(--green); background: var(--soft-green); }
.nav-link:hover { background: var(--canvas); color: var(--green); }
.side-foot { margin-top: auto; padding: 42px 0 18px; }
.profile { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 16px 7px 9px; }
.avatar, .empty-icon, .tile-icon { display: grid; flex: none; place-items: center; background: var(--soft-green); color: var(--green); }
.avatar { width: 37px; height: 37px; border-radius: 50%; font-size: 15px; font-weight: 800; }
.profile strong, .person strong { font-size: 14px; overflow-wrap: anywhere; }
.profile small, .person small, .notice small { font-size: 12px; color: var(--muted); }
.app-body { flex: 1; min-width: 0; }
.app-bar { display: flex; min-height: 77px; align-items: center; justify-content: space-between; padding: 16px clamp(22px,4vw,70px); border-bottom: 1px solid var(--line); background: white; }
.desk-crumb, .today { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.app-brand, .mobile-nav { display: none; }
.app-main { width: min(100%,1450px); margin: auto; padding: clamp(26px,4vw,63px); }
.workspace-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-bottom: 26px; }
.eyebrow { margin-bottom: 9px; color: var(--green); }
.today { margin-bottom: 5px; }
.today .icon { width: 16px; height: 16px; }
.board-layout { display: grid; grid-template-columns: minmax(0,1.75fr) minmax(210px, .8fr); gap: clamp(14px,2vw,26px); align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.panel-title { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 22px clamp(18px,2vw,28px); border-bottom: 1px solid var(--line); }
.panel-title p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.notice { margin: 0 clamp(18px,2vw,28px); padding: 21px 0; }
.notice+.notice { border-top: 1px solid var(--line); }
.notice h3 { margin: 11px 0 6px; }
.notice-meta, .room-list { display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; }
.notice-meta time { font-size: 12px; color: var(--muted); }
.chip, .status { display: inline-flex; align-items: center; max-width: 100%; width: fit-content; border-radius: 6px; padding: 3px 8px; background: var(--soft-green); color: var(--green); font-size: 11px; font-weight: 730; overflow-wrap: anywhere; }
.body-copy { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 9px; }
.empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 45px 18px; }
.empty-icon, .tile-icon { width: 39px; height: 39px; border-radius: 11px; }
.empty-icon { margin-bottom: 5px; }
.empty p, .room-list p { color: var(--muted); font-size: 13px; max-width: 37ch; }
.board-aside { display: grid; gap: 14px; }
.compact { padding: 20px; }
.aside-title, .action-tile { display: flex; align-items: center; gap: 9px; }
.aside-title h2 { font-size: 16px; }
.aside-title>.icon { width: 18px; color: var(--green); }
.data-list { display: grid; gap: 11px; margin-top: 18px; }
.data-list div { display: grid; gap: 2px; }
.data-list dt { color: var(--muted); font-size: 12px; }
.data-list dd { font-size: 14px; font-weight: 680; overflow-wrap: anywhere; }
.room-list { margin-top: 16px; }
.action-tile { padding: 16px; color: var(--green); text-decoration: none; }
.action-tile>.icon { margin-left: auto; width: 16px; }
.action-tile:hover { border-color: #8eab99; }
.action-tile strong { font-size: 14px; }
.search { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 17px 20px; }
.search .input-wrap { flex: 1; max-width: 410px; }
.table-head, .account-row { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(94px,.78fr) minmax(110px,.75fr) 20px; gap: 12px; align-items: center; padding: 12px 20px; }
.table-head { color: var(--muted); background: var(--canvas); border-block: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.account-row { min-height: 66px; color: var(--ink); text-decoration: none; }
.account-row+.account-row { border-top: 1px solid var(--line); }
.account-row:hover { background: #f8faf8; }
.person { display: flex; gap: 10px; align-items: center; min-width: 0; }
.person small { overflow-wrap: anywhere; }
.account-role { font-size: 13px; color: var(--muted); }
.status.pending { background: #faf0d9; color: #78520e; }
.status.disabled { background: #f0f1ef; color: #545e57; }
.row-arrow .icon { width: 15px; height: 15px; color: var(--muted); }
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.pager a { font-weight: 720; }

@media (min-width:1650px) {
  .login-layout { width: min(100%,1900px); margin: auto; }
  .login-side { padding-inline: 7vw; }
}
@media (max-width:1050px) {
  .side { width: 205px; padding: 0 10px; }
  .side-brand .brand strong { font-size: 15px; }
  .app-main { padding: 27px 23px; }
  .board-layout { grid-template-columns: minmax(0,1.35fr) minmax(182px,.8fr); }
  .compact { padding: 16px; }
}
@media (max-width:800px) {
  .login-layout { grid-template-columns: minmax(0,1.16fr) minmax(0,.83fr); padding: 10px; }
  .login-side { padding: 19px 24px 8px; }
  .story-copy { padding: 20px; }
  .story-copy h2 { font-size: 29px; }
  .story-arrow { width: 31px; height: 31px; }
  .side, .desk-crumb, .site-link { display: none; }
  .app-bar { padding: 12px 20px; min-height: 66px; }
  .app-brand, .mobile-nav { display: block; }
  .mobile-nav summary { display: flex; align-items: center; min-height: 42px; gap: 6px; padding: 5px 8px; border-radius: 6px; color: var(--ink); list-style: none; font-size: 13px; font-weight: 710; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav nav { position: absolute; right: 16px; left: auto; z-index: 3; width: min(265px,calc(100vw - 32px)); padding: 10px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 28px #142e221a; }
  .mobile-nav nav>strong { display: block; padding: 9px 12px; overflow-wrap: anywhere; font-size: 13px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
}
@media (max-width:650px) {
  .login-layout { display: block; min-height: 100dvh; padding: 0; }
  .login-side { min-height: 100vh; min-height: 100dvh; padding: max(23px,env(safe-area-inset-top)) clamp(21px,7vw,45px) max(14px,env(safe-area-inset-bottom)); }
  .login-form-wrap { padding: clamp(42px,8vh,70px) 0; }
  .login-form-wrap h1 { font-size: 42px; }
  .login-form-wrap .intro { font-size: 14px; }
  .campus-story { display: none; }
  .login-footer { padding-top: 12px; }
  .guest-mast { padding: 13px 18px; }
  .guest-mast .brand, .app-brand .brand { gap: 8px; }
  .guest-mast .brand strong, .app-brand .brand strong { font-size: 15px; }
  .guest-mast .brand img, .app-brand .brand img { width: 25px; height: 33px; }
  .guest-sheet { width: min(100%,525px); border: none; margin: 0 auto; border-radius: 0; padding-top: 36px; }
  .app-main, .app-bar { padding-inline: 16px; }
  .app-main { padding-block: 25px; }
  .sheet { padding: 22px 18px; }
  .guest-sheet { padding: 35px 22px; }
  .board-layout { grid-template-columns: 1fr; }
  .board-aside { grid-template-columns: repeat(auto-fit,minmax(min(175px,100%),1fr)); }
  .workspace-head { align-items: start; margin-bottom: 19px; gap: 12px; }
  .today { font-size: 11px; align-self: end; }
  .table-head { display: none; }
  .account-row { grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "person status" "role status"; gap: 0 7px; padding: 13px 14px; }
  .person { grid-area: person; }
  .person>.avatar { display: none; }
  .account-role { grid-area: role; font-size: 11px; }
  .account-row .status { grid-area: status; }
  .row-arrow { display: none; }
  .search { padding: 13px; }
  input, select, textarea { font-size: 16px; }
}
@media (max-width:350px) {
  .login-side { padding-inline: 18px; }
  .guest-mast>.quiet-link { font-size: 11px; }
  .workspace-head .actions { align-items: stretch; }
  .copy-row { display: grid; }
}
