:root {
  --navy:#122e53;
  --cyan:#087b85;
  --ink:#243b53;
  --muted:#52667a;
  --line:#e5edf2;
  --bg:#f4f7fa;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:16px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
}
a {
  color:var(--cyan);
  text-decoration:none;
}
a:hover {
  text-decoration:underline;
}
h1,h2,h3 {
  color:var(--navy);
  line-height:1.35;
}
h1 {
  font-size:29px;
  font-weight:650;
  margin:12px 0;
}
h2 {
  font-size:19px;
  margin:0 0 18px;
}
h3 {
  font-size:16px;
}
p {
  margin:12px 0;
  color:#52667e;
}
small {
  display:block;
  color:var(--muted);
  font-size:13px;
  font-weight:400;
}
button,.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--cyan);
  color:#fff;
  border:1px solid transparent;
  border-radius:9px;
  min-height:43px;
  padding:10px 19px;
  cursor:pointer;
  font:inherit;
  font-weight:550;
  gap:8px;
  white-space:normal;
}
button:hover,.button:hover {
  background:#067c86;
  text-decoration:none;
}
button.secondary,.button.secondary {
  background:#f1f7f9;
  color:var(--navy);
  border-color:#dce7ee;
}
.danger {
  background:#ac4353;
}
input,select,textarea {
  font:inherit;
  width:100%;
  min-height:45px;
  background:#fff;
  border:1px solid #cfdbe5;
  border-radius:8px;
  padding:10px 12px;
  color:var(--ink);
  margin:6px 0 13px;
}
input:focus,select:focus,textarea:focus {
  outline:2px solid #65c8cc;
  outline-offset:1px;
}
textarea {
  min-height:100px;
  resize:vertical;
}
label {
  display:block;
  color:var(--ink);
  font-weight:500;
}
form p {
  margin:13px 0;
}
fieldset {
  border:1px solid var(--line);
  border-radius:8px;
  margin:15px 0;
}
.check {
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:6px 18px 6px 0;
}
.check input {
  width:18px;
  min-height:18px;
  margin:0;
}
.sidebar {
  width:224px;
  position:fixed;
  inset:0 auto 0 0;
  background:white;
  border-right:1px solid var(--line);
  padding:33px 24px;
  z-index:4;
}
.brand {
  font-size:27px;
  letter-spacing:2px;
  font-weight:800;
  color:var(--navy);
}
.brand span {
  font-size:13px;
  letter-spacing:1px;
  color:var(--cyan);
  margin-left:8px;
}
.workspace-label {
  font-size:12px;
  color:var(--muted);
  margin:6px 0 38px;
}
.sidebar nav {
  display:grid;
  gap:8px;
}
.sidebar nav a {
  padding:11px 13px;
  color:#52667e;
  border-radius:9px;
}
.sidebar nav a:hover {
  background:#edf8f9;
  text-decoration:none;
  color:var(--cyan);
}
.sidebar-bottom {
  position:absolute;
  bottom:28px;
  font-size:12px;
  color:var(--muted);
}
.shell {
  margin-left:224px;
}
header {
  height:77px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 44px;
  background:#fff;
  border-bottom:1px solid var(--line);
}
.header-brand {
  font-size:12px;
  color:var(--muted);
  letter-spacing:2px;
}
.header-right {
  display:flex;
  align-items:center;
  gap:22px;
}
.test-badge {
  font-size:11px;
  color:#688297;
  border:1px solid #dce9ee;
  padding:3px 8px;
  border-radius:20px;
}
.bell {
  font-size:14px;
  color:var(--navy);
}
.bell b {
  background:var(--cyan);
  color:white;
  padding:2px 6px;
  border-radius:10px;
  margin-left:5px;
  font-size:11px;
}
.avatar {
  background:#edf5f7;
  width:35px;
  height:35px;
  border-radius:50%;
  text-align:center;
  padding-top:3px;
  font-size:21px;
}
main {
  max-width:1240px;
  margin:auto;
  padding:34px 44px 60px;
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  margin-bottom:26px;
}
.page-heading p {
  margin:6px 0;
}
.eyebrow {
  font-size:12px;
  letter-spacing:2px;
  font-weight:650;
  color:#52667a;
}
.date {
  color:var(--muted);
  font-size:13px;
}
.card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:15px;
  padding:22px;
  margin:0 0 20px;
  box-shadow:0 4px 18px #20354f03;
}
.narrow {
  max-width:760px;
}
.hero {
  min-height:190px;
  background:linear-gradient(115deg,#132f54,#1c486b);
  border-radius:17px;
  color:#fff;
  padding:24px 30px;
  margin-bottom:22px;
  display:flex;
  justify-content:space-between;
  overflow:hidden;
}
.hero p,.hero small {
  color:#b7d2e1;
}
.hero strong {
  color:white;
}
.hero .eyebrow {
  color:#a9c8d9;
}
.metric {
  font-size:52px;
  line-height:1.3;
  font-weight:650;
  letter-spacing:-1px;
  margin:14px 0 5px;
}
.metric small {
  display:inline;
  font-size:19px;
}
.grid {
  display:grid;
  gap:22px;
  align-items:start;
}
.two {
  grid-template-columns:1fr 1fr;
}
.section-heading {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:15px;
}
.section-heading a,.section-heading>span {
  font-size:12px;
}
.count {
  font-size:12px;
  background:#e7f5f5;
  color:var(--cyan);
  padding:4px 8px;
  border-radius:6px;
  margin-left:5px;
}
.quick-links {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
.quick-links a {
  font-size:25px;
  color:var(--cyan);
  background:#f7fafc;
  padding:13px;
  border-radius:10px;
}
.quick-links span {
  display:block;
  font-size:14px;
  color:var(--navy);
  font-weight:550;
}
.quick-links small {
  font-size:13px;
}
.list-row {
  display:flex;
  gap:20px;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--line);
  padding:17px 0;
  color:var(--ink);
}
.list-row:last-child {
  border-bottom:0;
}
.list-row>div:last-child {
  text-align:right;
}
.list-row form {
  margin-top:8px;
}
.list-row strong {
  font-weight:550;
}
.empty {
  text-align:left;
  padding:14px 0;
  color:var(--muted);
}
.empty strong {
  color:var(--navy);
  font-size:16px;
}
.empty p {
  margin:8px 0 12px;
  max-width:55ch;
}
.empty small {
  margin-top:8px;
}
.attendance-link {
  display:flex;
  justify-content:space-between;
  border:1px solid var(--line);
  padding:18px 24px;
  border-radius:12px;
  background:#fff;
  color:var(--ink);
}
.attendance-link span {
  color:var(--muted);
  font-size:12px;
}
.actions {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  margin:15px 0;
}
.pill {
  display:inline-block;
  background:#e8f7f3;
  color:#2c7d66;
  padding:4px 10px;
  border-radius:6px;
  font-size:12px;
}
.pending {
  background:#fff6e5;
  color:#795415;
}
.back {
  font-size:13px;
  display:block;
  margin-bottom:17px;
}
.amount {
  font-size:27px;
  font-weight:650;
  color:var(--navy);
}
.workflow {
  display:flex;
  align-items:stretch;
  list-style:none;
  padding:0;
  margin:24px 0;
  gap:10px;
}
.workflow li {
  flex:1;
  background:#f2f7fa;
  border-radius:9px;
  padding:13px;
  font-size:13px;
}
.workflow li div {
  font-size:11px;
  margin-top:6px;
}
.stage {
  padding:16px 20px;
  border-left:3px solid var(--cyan);
  background:#f7fbfc;
  margin:20px 0;
}
.stage p {
  margin:5px 0;
}
.stage h3 {
  margin:0 0 7px;
}
.stage small {
  display:inline;
}
.contact-box {
  background:#f3f8fa;
  border-radius:8px;
  padding:15px;
  margin:15px 0;
  overflow-wrap:anywhere;
}
.flash {
  background:#e4f5ef;
  border:1px solid #b7dfcf;
  color:#227b5a;
  padding:13px 18px;
  border-radius:10px;
  margin:0 0 20px;
}
.error,.errorlist {
  color:#a63649;
}
.success {
  color:#217955;
}
.errorlist {
  list-style:none;
  padding:0;
}
.muted {
  color:var(--muted);
}
details summary {
  cursor:pointer;
  font-weight:550;
  color:var(--navy);
}
details[open] summary {
  margin-bottom:20px;
}
details form {
  margin:20px 0;
}
.announcement {
  border-top:1px solid var(--line);
  padding:16px 0;
  margin-top:20px;
}
.filters {
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:end;
}
.filters label {
  width:150px;
}
.filters input {
  margin-bottom:0;
}
.profile-card {
  text-align:center;
}
.big-avatar {
  font-size:55px;
}
dl {
  display:grid;
  grid-template-columns:150px 1fr;
  gap:10px;
  margin:20px 0;
}
dt {
  color:var(--muted);
}
dd {
  margin:0;
  overflow-wrap:anywhere;
}
small {
  overflow-wrap:anywhere;
}
.mobile-nav {
  display:none;
}
.shell.signed-out {
  margin:0;
}
.signed-out main {
  padding:0;
  max-width:none;
}
.login-layout {
  min-height:100vh;
  display:grid;
  grid-template-columns:33% 67%;
  background:white;
}
.login-story {
  background:transparent;
  color:#f4f9fc;
  border:0;
  padding:64px clamp(28px,4vw,64px);
  display:flex;
  flex-direction:column;
  position:relative;
}
.brand-note {
  font-size:16px;
  font-weight:400;
  line-height:1.8;
  margin-top:14px;
}
.brand-environment {
  margin-top:auto;
  padding-top:48px;
  color:var(--muted);
  font-size:14px;
}
.login-area {
  display:flex;
  align-items:center;
  justify-content:center;
  padding:48px 32px;
}
.login-card {
  max-width:440px;
  width:100%;
  margin:0;
  padding:0;
  font-size:16px;
  font-weight:400;
  line-height:1.65;
}
.login-card h1 {
  font-size:30px;
  margin-top:15px;
  margin-bottom:7px;
}
.welcome-sub {
  font-size:16px;
  font-weight:400;
  color:#456075;
  margin-bottom:20px;
}
.login-card form {
  margin-top:18px;
}
.login-card input {
  min-height:48px;
}
.login-help {
  margin-top:22px;
  border-top:1px solid var(--line);
  padding-top:14px;
}
.login-help p {
  font-size:15px;
  margin:0 0 4px;
}
.login-card button {
  margin:12px 0 10px;
}
.wide {
  width:100%;
}
input[type=file] {
  font-size:13px;
}
button:focus-visible,a:focus-visible {
  outline:3px solid #52bfc6;
  outline-offset:3px;
}
[hidden] {
  display:none!important;
}
@media(max-width:1000px) {
  .sidebar {
    width:190px;
    padding:30px 18px;
  }
  .shell {
    margin-left:190px;
  }
  main {
    padding:28px 26px;
  }
  header {
    padding:0 26px;
  }
  .two {
    gap:18px;
  }
  .card {
    padding:21px;
  }
  .workflow {
    flex-wrap:wrap;
  }
  .workflow li {
    min-width:110px;
  }
  .login-story {
    padding:48px 28px;
  }
}
@media(max-width:700px) {
  body {
    font-size:15px;
  }
  .sidebar {
    display:none;
  }
  .shell {
    margin:0;
  }
  header {
    height:62px;
    padding:0 20px;
  }
  .header-right {
    gap:13px;
  }
  .header-brand {
    font-size:14px;
    color:var(--navy);
    font-weight:700;
  }
  .test-badge {
    display:none;
  }
  main {
    padding:25px 18px 100px;
  }
  .page-heading {
    margin-bottom:20px;
    align-items:flex-start;
    gap:10px;
    flex-wrap:wrap;
  }
  .page-heading h1,h1 {
    font-size:25px;
  }
  .date {
    display:none;
  }
  .hero {
    padding:25px;
    min-height:200px;
  }
  .metric {
    font-size:47px;
  }
  .grid.two {
    grid-template-columns:1fr;
    gap:0;
  }
  .card {
    padding:20px;
    margin-bottom:18px;
    border-radius:13px;
  }
  .attendance-link {
    display:block;
    padding:15px 18px;
  }
  .attendance-link span {
    display:block;
    margin-top:5px;
  }
  .mobile-nav {
    display:flex;
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    background:#fff;
    border-top:1px solid var(--line);
    justify-content:space-around;
    padding:9px 0 max(9px,env(safe-area-inset-bottom));
    z-index:10;
  }
  .mobile-nav a {
    text-align:center;
    color:#52667a;
    font-size:22px;
    min-width:70px;
    line-height:1.2;
  }
  .mobile-nav span {
    display:block;
    font-size:11px;
    margin-top:5px;
  }
  .list-row {
    gap:12px;
  }
  .list-row .pill {
    font-size:10px;
  }
  .workflow {
    display:grid;
    grid-template-columns:1fr;
    gap:6px;
  }
  .workflow li {
    padding:10px 14px;
  }
  .workflow li div {
    display:inline-block;
    margin-right:15px;
  }
  .amount {
    font-size:24px;
  }
  dl {
    grid-template-columns:105px 1fr;
    font-size:13px;
  }
  .login-layout {
    display:block;
    min-height:100vh;
    background:linear-gradient(#edf6f8 0,#fff 42%);
    padding-top:0;
  }
  .login-story {
    display:none;
  }
  .login-area {
    min-height:100vh;
    padding:44px 26px;
  }
  .login-card {
    padding:0;
    max-width:408px;
  }
  .login-card h1 {
    font-size:30px;
  }
  .login-card form {
    margin-top:32px;
  }
  .login-card .eyebrow {
    font-size:14px;
  }
  .login-card .welcome-sub {
    font-size:13px;
  }
  .filters label {
    width:calc(50% - 8px);
  }
  .actions button,.actions .button {
    flex-grow:1;
  }
  .signed-out main {
    padding:0;
  }
  input,select,textarea {
    font-size:16px;
  }
  .quick-links {
    gap:15px;
  }
}
/* Compact, readable first-release workspace. */
.home-panels {
  grid-template-columns:1.15fr 1fr;
}
.quick-links {
  gap:12px;
}
.quick-links a {
  font-size:21px;
  padding:12px;
}
.quick-links small {
  font-size:13px;
}
.list-row small,.workflow li div {
  font-size:13px;
}
.workflow li {
  font-size:14px;
}
.section-heading {
  flex-wrap:wrap;
}
.section-heading a,.section-heading>span {
  font-size:13px;
}
.help-layout {
  max-width:940px;
}
.help-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  align-items:start;
}
.help-grid .card {
  margin:0;
}
.help-layout ol {
  padding-left:22px;
}
.help-layout li {
  margin:9px 0;
}
.help-intro {
  border-left:3px solid var(--cyan);
  padding:12px 16px;
  background:#eaf4f5;
  margin:18px 0 22px;
}
.help-links {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:16px 0 24px;
}
.help-links a {
  padding:7px 12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:7px;
}
.help-layout h2 {
  margin-bottom:12px;
}
.help-layout details {
  margin-top:18px;
}
.help-source {
  font-size:13px;
}
.attendance-page {
  max-width:900px;
}
.attendance-status {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}
.attendance-status h2 {
  margin:10px 0;
}
.attendance-status .actions {
  margin:0;
}
.attendance-page .card {
  padding:22px;
}
.attendance-page .empty {
  padding:8px 0;
}
.attendance-page .empty p {
  margin-bottom:6px;
}
.profile-card {
  max-width:760px;
}
.sidebar nav a {
  font-size:15px;
}
.test-badge {
  color:#52667a;
}
.welcome-sub {
  font-size:16px;
}
.sidebar-bottom {
  color:#52667a;
}
@media(max-width:700px) {
  .home-panels,.help-grid {
    grid-template-columns:1fr;
  }
  .help-grid {
    gap:16px;
  }
  .attendance-status .actions {
    width:100%;
  }
  .card {
    padding:19px;
  }
  .welcome-sub {
    font-size:14px;
  }
  .quick-links small {
    font-size:12px;
  }
  .hero {
    min-height:0;
  }
  .hero small {
    font-size:13px;
  }
  .mobile-nav span {
    font-size:12px;
  }
  .help-links {
    gap:8px;
  }
  .login-card .welcome-sub {
    font-size:14px;
  }
}
.help-windows {
  grid-column:1/-1;
}
code {
  overflow-wrap:anywhere;
  font-size:.92em;
}
section[id] {
  scroll-margin-top:20px;
}

/* One local artwork, blended into the form without a panel boundary. */
.login-layout {
  background:linear-gradient(90deg,#e7f1f3 25%,#f6fafb 42%,#fff 57%);
}
.login-story::before {
  content:"";
  position:absolute;
  inset:0;
  width:calc(100% + 120px);
  background-image:linear-gradient(180deg,rgba(4,16,27,.35),transparent 45%,rgba(4,16,27,.55)),url("login-cinematic.webp");
  background-size:cover;
  background-position:center;
  mask-image:linear-gradient(90deg,#000 48%,rgba(0,0,0,.94) 62%,rgba(0,0,0,.55) 80%,transparent 100%);
  pointer-events:none;
}
.login-story > * {
  position:relative;
}
.login-area {
  position:relative;
}
.login-story .brand { color:#fff; }
.login-story .brand span { color:#83e2ed; }
.login-story .brand-note, .login-story .brand-environment { color:#e0edf4; }
.login-story .brand-environment small { color:inherit; }
@media (min-width:701px) and (max-width:1100px) {
  .login-story::before {
    width:100%;
    mask-image:linear-gradient(90deg,#000 65%,transparent 100%);
  }
  .login-story .brand-note, .login-story .brand-environment {
    max-width:140px;
  }
}
@media (max-width:700px) {
  .login-layout {
    background:#fff;
  }
  .login-story {
    display:flex;
    height:clamp(140px,24svh,190px);
    padding:22px 26px;
  }
  .login-story::before {
    width:100%;
    background-image:linear-gradient(180deg,rgba(4,16,27,.7),rgba(4,16,27,.05) 65%),url("login-cinematic.webp");
    background-position:center 58%;
    mask-image:linear-gradient(180deg,#000 40%,rgba(0,0,0,.8) 63%,transparent 100%);
  }
  .login-story .brand {
    font-size:23px;
  }
  .login-story .brand-note, .login-story .brand-environment, .login-card .eyebrow {
    display:none;
  }
  .login-area {
    min-height:0;
    align-items:flex-start;
    padding:0 26px 24px;
  }
  .login-card h1 {
    margin:0 0 5px;
    font-size:28px;
  }
  .login-card .welcome-sub {
    margin-bottom:18px;
  }
  .login-card form {
    margin-top:20px;
  }
  .login-card input {
    font-size:16px;
  }
}

.login-card input:focus {
  outline-color:#087f8c;
}
.login-card button:focus-visible {
  outline:3px solid #122e53;
  outline-offset:3px;
}

/* Readable CJK form text without applying bold to the whole page. */
.login-card label {
  font-size:16px;
  font-weight:500;
  color:#223c57;
}
.login-card input {
  font-size:16px;
  font-weight:400;
}
.login-card input::placeholder {
  color:#637587;
  opacity:1;
}
.login-card .login-help {
  margin-top:18px;
  padding-top:12px;
  color:#384f65;
  font-weight:400;
}
.login-card .login-help small {
  font-size:14px;
  line-height:1.7;
  font-weight:400;
  color:#42596f;
}
@media (max-width:700px) {
  .login-card .welcome-sub {
    font-size:15px;
    margin-bottom:14px;
  }
  .login-card form {
    margin-top:16px;
  }
}
