:root {
  --bg: #f5f2ec;
  --surface: #ffffff;
  --surface-2: #f8f7f3;
  --line: #ded9cd;
  --line-2: #ebe7de;
  --ink: #182125;
  --muted: #67726f;
  --green: #2e6b4f;
  --green-dark: #245740;
  --green-soft: #e5eee7;
  --blue: #256a7d;
  --blue-soft: #e1edf0;
  --coral: #c25e3f;
  --coral-soft: #f6e4dd;
  --amber: #946a29;
  --amber-soft: #f3e9d2;
  --shadow-1: 0 8px 20px rgba(25, 34, 32, .06);
  --shadow-2: 0 18px 48px rgba(25, 34, 32, .10);
  --radius: 8px;
  --radius-lg: 12px;
  --header-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: light; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
::selection { background: #cfe0d3; color: #173024; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 1000;
  width: auto; padding: 10px 14px; background: var(--ink); color: #fff;
  border-radius: 6px; transform: translateY(-180%); transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h); background: rgba(245, 242, 236, .9);
  border-bottom: 1px solid rgba(222, 217, 205, .8);
  backdrop-filter: blur(16px) saturate(1.2);
}
.header-inner {
  width: min(1200px, 100%); height: 100%; margin: auto; padding: 0 28px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 750; flex: 0 0 auto; }
.brand small { display: block; margin-top: 1px; font-size: 10px; font-weight: 500; letter-spacing: .08em; color: var(--muted); }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px;
  background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(46, 107, 79, .18);
  transition: transform .2s ease;
}
.brand:hover .brand-mark { transform: translateY(-1px) rotate(-2deg); }
.site-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.site-nav a {
  position: relative; padding: 8px 12px; border-radius: 6px; font-size: 14px; color: #47534f;
  transition: color .18s ease, background-color .18s ease;
}
.site-nav a:hover { color: var(--ink); background: rgba(46, 107, 79, .07); }
.site-nav a.active { color: var(--green-dark); font-weight: 650; }
.site-nav a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--green); border-radius: 1px;
}
.nav-toggle { display: none; }
.header-action {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 8px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.header-action:hover { background: #283234; transform: translateY(-1px); box-shadow: var(--shadow-1); }
.header-action i { font-size: 15px; }

.site-main { width: min(1200px, 100%); margin: auto; padding: 0 28px 48px; }

.home-hero {
  position: relative;
  width: 100vw; margin: 0 calc(50% - 50vw); padding: 62px max(28px, calc(50vw - 600px)) 58px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, 500px);
  align-items: center; gap: clamp(28px, 6vw, 72px);
  background: #e8eee7; border-bottom: 1px solid #d8e0d5;
}
.home-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 76% 32%, rgba(46, 107, 79, .08), transparent 28%);
}
.hero-copy { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green);
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(46,107,79,.12); }
.home-hero h1, .page-intro h1, .mail-intro h1, .login-story h1 {
  font-size: clamp(38px, 6vw, 66px); line-height: 1.06; letter-spacing: -.03em; font-weight: 800;
}
.hero-emphasis { color: var(--green); }
.hero-description { max-width: 520px; margin-top: 20px; font-size: 17px; color: var(--muted); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 22px; border-radius: 8px; font-weight: 650; font-size: 15px;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.button.primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(46, 107, 79, .16); }
.button.primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.button.secondary { background: transparent; color: var(--green-dark); border: 1px solid var(--green); }
.button.secondary:hover { background: var(--green); color: #fff; }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(25,34,32,.08)); }
.art-caption { margin-top: 8px; display: block; text-align: right; font-size: 10px; letter-spacing: .18em; color: #75837c; }

.services {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  margin: 34px 0 56px;
}
.service-tile {
  position: relative; overflow: hidden; min-height: 148px; padding: 22px;
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-tile:hover { transform: translateY(-3px); border-color: #c9d2c6; box-shadow: var(--shadow-1); }
.service-tile::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--green);
  transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.service-tile:hover::after { transform: scaleX(1); }
.service-icon {
  display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 8px;
  background: var(--surface-2); color: var(--green); font-size: 18px;
}
.service-copy { min-width: 0; }
.service-copy small { display: block; font-size: 9px; letter-spacing: .14em; color: var(--muted); margin-bottom: 8px; }
.service-copy h2 { font-size: 19px; line-height: 1.25; margin-bottom: 7px; }
.service-copy p { font-size: 13px; color: var(--muted); }
.service-arrow { position: absolute; right: 18px; top: 18px; color: var(--muted); transition: transform .2s ease; }
.service-tile:hover .service-arrow { transform: translate(2px, -2px); }
.service-green { background: #26493a; border-color: #26493a; color: #f4f7f1; }
.service-green .service-copy small, .service-green .service-copy p, .service-green .service-arrow { color: #bfd2c5; }
.service-green .service-icon { background: rgba(255,255,255,.12); color: #fff; }
.service-peach { background: #f7e9e2; border-color: #e7cdc2; }
.service-peach .service-icon { color: var(--coral); background: rgba(194,94,63,.1); }
.mail-dot {
  position: absolute; right: 18px; bottom: 18px; min-width: 20px; height: 20px; padding: 0 6px;
  display: inline-grid; place-items: center; border-radius: 999px; background: var(--coral);
  color: #fff; font-size: 11px; font-weight: 700; transform: scale(0); transition: transform .2s ease;
}
.mail-dot.show { transform: scale(1); }

.home-section { padding: 54px 0; border-top: 1px solid var(--line-2); scroll-margin-top: 90px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-heading h2, .closing-note h2 { font-size: clamp(25px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -.02em; }
.section-heading p { max-width: 620px; margin-top: 8px; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--green-dark); font-weight: 650; padding-bottom: 2px; }
.text-link span { transition: transform .18s ease; }
.text-link:hover span { transform: translate(2px, -2px); }
.muted { color: var(--muted); font-size: 13px; }

.lost-panel, .content-panel, .team-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(25,34,32,.03); overflow: hidden;
}
.lost-panel { margin-bottom: 20px; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.list-caption { font-weight: 700; white-space: nowrap; }
.count-pill { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 8px; margin-left: 6px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); font-size: 12px; font-weight: 700; }
.search-field { position: relative; width: min(420px, 100%); color: var(--muted); }
.search-field i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); z-index: 1; }
.search-field input {
  width: 100%; height: 42px; padding: 0 14px 0 39px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface-2); transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.search-field input:focus { outline: none; background: #fff; border-color: #8aa794; box-shadow: 0 0 0 3px rgba(46,107,79,.08); }
.lost-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; padding: 20px; max-height: 620px; overflow: auto; }
.lost-item {
  display: grid; grid-template-columns: 62px 1fr; gap: 13px; padding: 14px; min-height: 134px;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.lost-item:hover { transform: translateY(-2px); border-color: #c9d2c6; box-shadow: var(--shadow-1); }
.lost-photo {
  width: 62px; height: 68px; overflow: hidden; border-radius: 8px; background: var(--surface-2);
  display: grid; place-items: center; color: #7f8c82;
}
.lost-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.lost-item:hover .lost-photo img { transform: scale(1.05); }
.lost-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lost-name { font-weight: 700; overflow-wrap: anywhere; }
.lost-desc, .lost-place { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; display: flex; align-items: center; gap: 5px; }
.lost-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lost-tag { justify-self: start; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; background: var(--green-soft); color: var(--green-dark); }
.lost-arrow { position: absolute; right: 14px; top: 14px; opacity: 0; transform: translate(-3px, 3px); transition: .18s ease; color: var(--green); }
.lost-item:hover .lost-arrow { opacity: 1; transform: translate(0,0); }
.empty-msg { grid-column: 1 / -1; min-height: 180px; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 28px; text-align: center; color: var(--muted); }
.empty-msg i { font-size: 28px; color: #a9b5aa; margin-bottom: 5px; }
.empty-msg strong { font-size: 18px; color: var(--ink); }
.empty-msg small { max-width: 420px; }
.empty-msg a { color: var(--green-dark); font-weight: 650; }
.panel-footnote { padding: 14px 20px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }

.campus-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.content-panel { min-height: 310px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.panel-title h3 { display: flex; align-items: center; gap: 9px; font-size: 18px; }
.panel-title i { color: var(--green); }
.scroll-container { max-height: 300px; overflow: auto; padding: 12px 14px; }
.activity-item, .style-item {
  display: grid; grid-template-columns: 50px 1fr 16px; gap: 13px; align-items: center; padding: 12px;
  border-radius: var(--radius); transition: background-color .16s ease, transform .16s ease;
}
.activity-item:hover, .style-item:hover { background: var(--surface-2); transform: translateX(2px); }
.activity-item + .activity-item, .style-item + .style-item { margin-top: 6px; }
.act-icon, .sty-icon { width: 50px; height: 50px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--green-soft); color: var(--green-dark); }
.act-icon img, .sty-icon img { width: 100%; height: 100%; object-fit: cover; }
.act-info, .sty-info { min-width: 0; }
.act-title, .sty-title { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-meta, .sty-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.act-meta span, .sty-meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.act-arrow, .sty-arrow { color: #a8b3a8; }

.team-panel { padding: 18px 20px; }
.dept-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.dept-tab {
  flex: 0 0 auto; height: 36px; padding: 0 14px; border-radius: 8px; background: var(--surface-2);
  color: var(--muted); font-size: 13px; transition: .18s ease;
}
.dept-tab:hover { color: var(--ink); background: #efece4; transform: translateY(-1px); }
.dept-tab.active { background: var(--ink); color: #fff; font-weight: 650; }
.member-scroll { min-height: 180px; max-height: 520px; overflow: auto; margin-top: 16px; }
.member-group-label { margin: 10px 0 8px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); font-size: 12px; font-weight: 750; color: #4a5a52; }
.member-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.member-card {
  display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; padding: 11px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius);
  transition: transform .18s ease, border-color .18s ease;
}
.member-card:hover { transform: translateY(-2px); border-color: #c9d2c6; }
.avatar { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--green-soft); color: var(--green-dark); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.mname { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.mrole { grid-column: 2; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }

.closing-note {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  margin-top: 24px; padding: 38px 36px; background: #243630; color: #f4f7f2; border-radius: var(--radius-lg);
}
.closing-note i { font-size: 28px; color: #a7c3b0; margin-right: 20px; }
.closing-note > div { display: flex; align-items: center; gap: 20px; flex: 1; }
.closing-note p { margin-top: 7px; color: #b9c8bd; }
.closing-note .button.secondary { border-color: #a7c3b0; color: #fff; }
.closing-note .button.secondary:hover { background: #fff; border-color: #fff; color: #243630; }

.site-footer {
  width: min(1200px,100%); margin: 0 auto; padding: 28px; display: flex; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
.site-footer a:hover { color: var(--green-dark); }

.split-layout { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 56px; align-items: start; padding: 44px 0; }
.breadcrumb { display: inline-flex; align-items: center; gap: 7px; margin-top: 24px; color: var(--muted); font-size: 14px; transition: color .16s ease, transform .16s ease; }
.breadcrumb:hover { color: var(--green-dark); transform: translateX(-2px); }
.page-intro { position: sticky; top: 96px; }
.page-intro p { margin-top: 16px; max-width: 420px; color: var(--muted); }
.steps { margin-top: 28px; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.steps li > span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #b9c6bb; color: var(--green-dark); border-radius: 8px; font-size: 11px; font-weight: 750; background: #fff; }
.steps strong { display: block; font-size: 15px; }
.steps p { margin-top: 3px; font-size: 13px; }
.gentle-note { display: flex; gap: 11px; margin-top: 30px; padding: 16px; border-left: 3px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0; background: var(--green-soft); color: #335443; font-size: 13px; }
.paper-form {
  padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 2px 10px rgba(25,34,32,.04);
}
.form-heading h2 { font-size: 28px; letter-spacing: -.02em; }
.form-heading p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.form-group { margin-top: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.required { color: var(--coral); }
.optional { margin-left: 6px; color: var(--muted); font-size: 12px; font-weight: 500; }
input, select, textarea {
  width: 100%; min-height: 44px; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2); transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #8aa794; background: #fff; box-shadow: 0 0 0 3px rgba(46,107,79,.08); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.upload-area {
  display: grid; justify-items: center; gap: 8px; padding: 30px 20px; text-align: center;
  border: 1px dashed #b9c6bb; border-radius: var(--radius); background: var(--surface-2); color: var(--muted);
  transition: border-color .18s ease, background-color .18s ease;
}
.upload-area:hover { border-color: var(--green); background: #fff; }
.upload-area i { font-size: 28px; color: var(--green); }
.upload-area input { width: auto; margin-top: 8px; }
.preview-img { display: none; width: min(320px,100%); max-height: 220px; object-fit: contain; margin-top: 10px; border-radius: var(--radius); }
.form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 13px; }
.form-bottom .btn { padding: 13px 24px; background: var(--green); color: #fff; border-radius: var(--radius); font-weight: 650; transition: .18s ease; }
.form-bottom .btn:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow-1); }
.message { display: none; margin-top: 16px; padding: 12px 14px; border-radius: var(--radius); font-size: 14px; }
.message.success, .message.info { display: block; background: var(--green-soft); color: #2c5b43; }
.message.error { display: block; background: var(--coral-soft); color: #8c3d27; }
.loading-spinner { display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }

.mail-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 38px 0 28px; }
.mail-intro p { max-width: 620px; margin-top: 12px; color: var(--muted); }
.mail-intro-icon { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 8px; background: var(--green-soft); color: var(--green-dark); font-size: 32px; }
.mail-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 18px; align-items: start; padding-bottom: 40px; }
.compose-panel { padding: 28px; }
.char-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.char-count { font-size: 12px; color: var(--muted); }
.char-count.err { color: var(--coral); font-weight: 700; }
.send-button, #sendBtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; background: var(--green); color: #fff; border-radius: var(--radius); font-weight: 650; transition: .18s ease; }
#sendBtn:hover { background: var(--green-dark); transform: translateY(-1px); }
.inbox-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: 0 2px 8px rgba(25,34,32,.03); }
.inbox-panel h2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.unread-count { display: none; padding: 3px 9px; border-radius: 999px; background: var(--coral-soft); color: var(--coral); font-size: 11px; font-weight: 700; }
.unread-count.show { display: inline-block; }
.inbox-description { margin-top: 6px; font-size: 13px; color: var(--muted); }
.letter-list, #letterList { display: grid; gap: 10px; margin-top: 18px; max-height: 620px; overflow: auto; }
.letter { padding: 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); transition: border-color .18s ease, background-color .18s ease; }
.letter:hover { border-color: #c9d2c6; background: var(--surface-2); }
.row1 { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.row1 strong { color: var(--ink); }
.badge { padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 750; }
.badge.new { background: var(--amber-soft); color: var(--amber); }
.badge.replied { background: var(--green-soft); color: var(--green-dark); }
.date { margin-left: auto; white-space: nowrap; }
.snippet { margin-top: 8px; color: #4a5551; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.detail { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.detail.show { display: block; }
.msg-block { padding: 12px; margin-bottom: 8px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; }
.msg-block.user { background: var(--blue-soft); border-color: #c9dce1; }
.msg-block.admin { background: var(--green-soft); border-color: #cfded2; }
.who { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 11px; color: var(--muted); }
.admin-label { color: var(--green-dark); font-weight: 700; }
.text { font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.empty-state { padding: 34px 18px; text-align: center; color: var(--muted); }
.empty-state i { display: block; margin: 0 auto 8px; font-size: 24px; color: #a9b5aa; }

.detail-main { padding-top: 28px; }
.detail-main .container { width: min(760px, 100%); margin: auto; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 2px 10px rgba(25,34,32,.04); }
.back-btn { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--muted); transition: .16s ease; }
.back-btn:hover { color: var(--green-dark); transform: translateX(-2px); }
.detail-main h1 { display: flex; align-items: center; gap: 10px; font-size: 30px; letter-spacing: -.02em; }
.detail-main h1 i { color: var(--green); }
.sub { display: flex; justify-content: space-between; gap: 12px; margin: 10px 0 20px; color: var(--muted); font-size: 13px; }
.edit-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); font-size: 11px; font-weight: 700; }
.detail-item { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.detail-label { color: var(--muted); font-size: 13px; font-weight: 700; }
.detail-value { min-width: 0; overflow-wrap: anywhere; }
.detail-value .readonly-text { display: block; padding: 2px 0; }
.photo-preview { width: min(260px,100%); max-height: 240px; object-fit: contain; margin-top: 8px; border: 1px solid var(--line-2); border-radius: var(--radius); }
.status-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-badge.pending { background: var(--amber-soft); color: var(--amber); }
.status-badge.approved { background: var(--green-soft); color: var(--green-dark); }
.status-badge.claimed { background: var(--blue-soft); color: var(--blue); }
.status-desc { margin-top: 6px; font-size: 12px; color: var(--muted); }
.detail-main .btn-claim, .detail-main .btn-save, .detail-main .btn-edit-toggle {
  width: 100%; min-height: 46px; margin-top: 16px; border-radius: var(--radius); font-weight: 700;
  transition: .18s ease;
}
.detail-main .btn-claim { background: var(--green); color: #fff; }
.detail-main .btn-claim:hover { background: var(--green-dark); transform: translateY(-1px); }
.detail-main .btn-claim.claimed { background: #8d9791; }
.detail-main .btn-save, .detail-main .btn-edit-toggle { background: transparent; color: var(--amber); border: 1px solid #cba868; }
.detail-main .btn-save:hover, .detail-main .btn-edit-toggle:hover { background: var(--amber-soft); transform: translateY(-1px); }
.loading { padding: 50px; text-align: center; color: var(--muted); }
.loading i { margin-bottom: 10px; font-size: 28px; }
.not-found { padding: 34px; text-align: center; color: #8c3d27; }

.login-layout {
  width: min(1120px,100%); margin: 34px auto; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr);
  background: transparent; align-items: center; gap: 48px;
}
.login-story { padding: 20px; }
.login-story p:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: 16px; }
.login-story img { width: 100%; margin-top: 34px; filter: drop-shadow(0 18px 30px rgba(25,34,32,.08)); }
.login-story span { display: block; margin-top: 10px; text-align: right; font-size: 10px; letter-spacing: .18em; color: #75837c; }
.login-container { padding: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
.login-container h2 { font-size: 30px; letter-spacing: -.02em; }
.login-description { margin-top: 8px; color: var(--muted); font-size: 14px; }
.login-container .form-group { margin-top: 22px; }
.login-container .btn { width: 100%; min-height: 48px; margin-top: 24px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--green); color: #fff; border-radius: var(--radius); font-weight: 700; transition: .18s ease; }
.login-container .btn:hover:not(:disabled) { background: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow-1); }
.login-return { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; color: var(--muted); font-size: 14px; }
.login-return:hover { color: var(--green-dark); }
.privacy-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 8px; }

.admin-page { display: grid; grid-template-columns: 250px minmax(0,1fr); background: #f2f4ee; }
.admin-sidebar {
  position: sticky; top: 0; height: 100vh; padding: 26px 18px;
  display: flex; flex-direction: column; background: #1d2b26; color: #d8e2db; border-right: 1px solid #334540;
}
.admin-sidebar .brand { color: #fff; padding-left: 8px; }
.admin-sidebar .brand small { color: #93a89c; }
.admin-sidebar .brand-mark { background: #f4f7f2; color: var(--green-dark); box-shadow: none; }
.rail-label { margin: 40px 0 12px 12px; font-size: 9px; letter-spacing: .18em; color: #88998f; }
.admin-sidebar nav { display: grid; gap: 5px; }
.admin-sidebar nav a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 8px; color: #b7c6bd; font-size: 13px; transition: .16s ease; }
.admin-sidebar nav a:hover { background: rgba(255,255,255,.07); color: #fff; transform: translateX(2px); }
.admin-sidebar nav a.active { background: #f4f7f2; color: #20342c; font-weight: 700; }
.admin-sidebar nav i { width: 18px; text-align: center; }
.rail-bottom { margin-top: auto; padding: 20px 10px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 11px; color: #93a89c; }
.rail-bottom p { margin-bottom: 8px; }
.rail-bottom a { display: flex; justify-content: space-between; color: #d8e2db; }
.rail-bottom a:hover { color: #fff; }
.admin-main { padding: 28px clamp(20px, 4vw, 48px) 56px; }
.admin-topline { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 26px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #74837b; }
.admin-page .container, .admin-page .admin-container { width: 100%; max-width: none; margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.admin-header, .header-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 8px rgba(25,34,32,.03); }
.admin-header h1, .header-bar h1 { display: flex; align-items: center; gap: 10px; font-size: clamp(24px,3vw,32px); letter-spacing: -.02em; }
.admin-header i, .header-bar i { color: var(--green); }
.admin-page .admin-header h1 i, .admin-page .header-bar h1 i, .admin-page .form-card h3 i { color: var(--green); }
.admin-header .back-btn, .header-bar .back-btn, .admin-header .logout-btn, .header-bar .logout-btn, .header-bar a, .header-bar button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 8px;
  background: #fff; border: 1px solid var(--line); color: #48534e; font-size: 13px; font-weight: 600; transition: .18s ease;
}
.admin-header .logout-btn, .header-bar .logout-btn { color: #96492f; background: #f8ece7; border-color: #e8cfc5; }
.admin-header .back-btn:hover, .header-bar .back-btn:hover, .header-bar a:hover, .header-bar button:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btns { display: flex; align-items: center; gap: 8px; }
.welcome-text { margin-bottom: 26px; padding: 28px 30px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: var(--radius); }
.welcome-text h2 { font-size: 27px; letter-spacing: -.02em; }
.welcome-text p { margin-top: 6px; color: var(--muted); }
.grid-4col { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.menu-card { position: relative; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 8px rgba(25,34,32,.03); transition: .18s ease; }
.menu-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); border-color: #c6d0c5; }
.menu-card h3 { margin-top: 16px; font-size: 17px; }
.menu-card p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.icon-circle { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; font-size: 18px; background: var(--green-soft); color: var(--green-dark); }
.admin-page .menu-card .icon-circle, .admin-page .menu-card .icon-circle.orange, .admin-page .menu-card .icon-circle.blue,
.admin-page .menu-card .icon-circle.green, .admin-page .menu-card .icon-circle.purple, .admin-page .menu-card .icon-circle.red {
  width: 42px; height: 42px; margin: 0; border-radius: 8px; background: var(--green-soft); color: var(--green-dark); font-size: 18px;
}
.icon-circle.orange, .icon-circle.red { background: var(--coral-soft); color: var(--coral); }
.icon-circle.blue { background: var(--blue-soft); color: var(--blue); }
.icon-circle.purple { background: #eee6f1; color: #715785; }
.admin-page .menu-card .icon-circle.blue, .admin-page .menu-card .icon-circle.green, .admin-page .menu-card .icon-circle.purple,
.admin-page .menu-card .icon-circle.orange, .admin-page .menu-card .icon-circle.red { background: var(--green-soft); color: var(--green-dark); }
.admin-page .menu-card h3, .admin-page .welcome-text h2 { color: var(--ink); }
.admin-page .menu-card p, .admin-page .welcome-text p { color: var(--muted); }
.form-card, .list-card, .list-container, .filter-bar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 8px rgba(25,34,32,.03); }
.form-card, .list-card, .list-container { padding: 22px; margin-bottom: 20px; }
.form-card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 18px; }
.form-card h3 i { color: var(--green); }
.edit-mode-indicator { margin-bottom: 18px; padding: 10px 12px; border-left: 3px solid var(--amber); border-radius: 0 6px 6px 0; background: var(--amber-soft); color: var(--amber); font-size: 13px; }
.admin-page .form-group { margin-bottom: 18px; }
.admin-page .form-group label { font-size: 12px; font-weight: 700; }
.admin-page .form-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.admin-page .form-group input, .admin-page .form-group textarea, .filter-bar select, .filter-bar input {
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); box-shadow: none;
}
.admin-page .form-group input:focus, .admin-page .form-group textarea:focus { border-color: rgba(46,107,79,.45); box-shadow: 0 0 0 3px rgba(46,107,79,.08); }
.file-input-wrapper { display: grid; gap: 10px; align-items: start; }
.admin-page .btn, .admin-page .btn-primary, .admin-page .btn-cancel, .btn-refresh, .admin-page .primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 8px; background: var(--green); color: #fff; font-size: 13px; font-weight: 650; transition: .18s ease;
}
.admin-page .btn-primary:hover, .admin-page .btn:hover, .btn-refresh:hover, .admin-page .primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.admin-page .btn-cancel { background: #fff; color: var(--muted); border: 1px solid var(--line); }
.admin-page .btn-sm, .item-actions button { min-height: 30px; padding: 0 10px; border-radius: 6px; font-size: 11px; font-weight: 700; transition: .16s ease; }
.btn-warning, .btn-edit { background: var(--amber-soft); color: var(--amber); }
.btn-danger, .btn-delete, .btn-del { background: var(--coral-soft); color: #8c3d27; }
.btn-approve, .btn-claim { background: var(--green-soft); color: var(--green-dark); }
.btn-undo { background: var(--blue-soft); color: var(--blue); }
.btn-sm:hover, .item-actions button:hover { transform: translateY(-1px); filter: brightness(.97); }
.filter-bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 18px; }
.filter-label { color: var(--muted); font-size: 13px; }
.filter-bar select, .filter-bar input { width: auto; min-width: 140px; min-height: 38px; background: var(--surface-2); }
.filter-bar input { flex: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.admin-page .stat-card, .admin-page .stat-card.pending, .admin-page .stat-card.approved,
.admin-page .stat-card.claimed, .admin-page .stat-card.total {
  border: 1px solid var(--line); border-top-width: 3px; border-left: 1px solid var(--line); border-radius: var(--radius);
}
.stat-card.pending { border-top: 3px solid #c7a259; }
.stat-card.approved, .stat-card.replied { border-top: 3px solid var(--green); }
.stat-card.claimed { border-top: 3px solid var(--blue); }
.admin-page .stat-card.total { border-top: 3px solid #8a9691; }
.stat-number, .num { font-size: 32px; font-weight: 800; line-height: 1.2; color: var(--green-dark); }
.stat-label, .label { margin-top: 2px; color: var(--muted); font-size: 12px; }
.list-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); font-size: 12px; }
.list-item { display: grid; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line-2); transition: background-color .14s ease; }
.admin-page .list-item { grid-template-columns: 56px minmax(0,1.5fr) minmax(0,1fr) minmax(0,.9fr) minmax(0,.9fr) minmax(140px,auto); }
.list-item:last-child { border-bottom: 0; }
.list-item:hover { background: #fbfbf8; }
.item-id { font-size: 11px; color: var(--muted); white-space: nowrap; }
.item-name, .item-title { min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.item-title { display: flex; align-items: center; gap: 10px; }
.item-title img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; }
.item-desc, .item-location { min-width: 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.item-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.current-img { width: 46px; height: 46px; border-radius: 6px; object-fit: cover; }
.current-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.admin-page .letter { margin-bottom: 14px; padding: 18px; background: #fff; }
.admin-page .full-text { margin-top: 12px; padding: 15px; background: var(--surface-2); border-radius: var(--radius); white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-page .replies { margin-top: 12px; display: grid; gap: 8px; }
.reply-block { padding: 12px; background: var(--green-soft); border-radius: var(--radius); }
.reply-block .who { margin-bottom: 4px; }
.reply-box { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.reply-box textarea { min-height: 88px; background: var(--surface-2); }
.reply-box .row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 999; max-width: min(380px, calc(100vw - 40px));
  padding: 14px 16px; background: #202b28; color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-2);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: .22s ease;
}
.admin-page .toast { border-radius: var(--radius); }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #7f3b28; }
.toast.warning { background: #856523; }
.id-tag { font-size: 11px; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s cubic-bezier(.2,.65,.25,1), transform .55s cubic-bezier(.2,.65,.25,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

i[class*="fa-"] { display: inline-block; width: 1em; height: 1em; vertical-align: -.13em; font-style: normal; line-height: 1; }
i[class*="fa-"]::before { content: ""; display: block; width: 100%; height: 100%; background: currentColor; -webkit-mask: var(--icon) center/contain no-repeat; mask: var(--icon) center/contain no-repeat; }
.fa-shield-alt, .fa-shield-hawk, .fa-shield-heart { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4.5 6v5c0 5 7.5 10 7.5 10S19.5 16 19.5 11V6Z'/%3E%3Cpath d='m8.5 12 2.3 2.3 4.7-5'/%3E%3C/svg%3E"); }
.fa-search, .fa-magnifying-glass { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E"); }
.fa-box, .fa-box-open, .fa-inbox { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 9 5-9 5-9-5 9-5Z'/%3E%3Cpath d='M3 8v9l9 5 9-5V8M12 13v9'/%3E%3C/svg%3E"); }
.fa-envelope, .fa-envelope-open, .fa-comment, .fa-comment-dots { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='3' y='6' width='18' height='14' rx='2'/%3E%3Cpath d='m3 6 9 7 9-7'/%3E%3C/svg%3E"); }
.fa-calendar-check, .fa-calendar-alt, .fa-calendar-plus { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M7 3v4m10-4v4M3 10h18m-14 5 3 3 3-3'/%3E%3C/svg%3E"); }
.fa-star { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='m12 3 3 6 6 .9-4.3 4.2 1 6.1L12 17l-5.4 2.9 1-6.1L3.3 9.9 9 9l3-6Z'/%3E%3C/svg%3E"); }
.fa-users, .fa-user, .fa-user-plus, .fa-user-edit, .fa-user-slash, .fa-user-graduate, .fa-graduation-cap, .fa-address-card { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3 21v-2a6 6 0 0 1 12 0v2M16 5a3 3 0 1 1 0 6m2 5a5 5 0 0 1 3 5'/%3E%3C/svg%3E"); }
.fa-arrow-right, .fa-sign-in-alt, .fa-sign-out-alt, .fa-chevron-right { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4 12h16m-6-6 6 6-6 6'/%3E%3C/svg%3E"); }
.fa-arrow-left { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M20 12H4m6 6-6-6 6-6'/%3E%3C/svg%3E"); }
.fa-plus-circle { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 4v16M4 12h16'/%3E%3C/svg%3E"); }
.fa-image, .fa-images { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8' cy='8' r='1.5'/%3E%3Cpath d='m3 17 5-5 4 4 4-6 5 7'/%3E%3C/svg%3E"); }
.fa-lock { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='5' y='10' width='14' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3m-4 4v3'/%3E%3C/svg%3E"); }
.fa-clock { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l4 2'/%3E%3C/svg%3E"); }
.fa-map-pin { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M19 10c0 6-7 11-7 11S5 16 5 16a7 7 0 1 1 14-6Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.fa-pen { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='m15 4 5 5M4 20l5-1L21 7l-4-4L5 15Z'/%3E%3C/svg%3E"); }
.fa-check, .fa-handshake { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12 5 5L20 6'/%3E%3C/svg%3E"); }
.fa-times { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m5 5 14 14M19 5 5 19'/%3E%3C/svg%3E"); }
.fa-trash { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M3 6h18M9 6V3h6v3M6 6l1 15h10l1-15M10 10v7m4-7v7'/%3E%3C/svg%3E"); }
.fa-sync, .fa-spinner, .fa-rotate-left, .fa-undo { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M20 8a8 8 0 1 0-14-3L3 8m0-5v5h5'/%3E%3C/svg%3E"); }
.fa-cog { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='m9 3-1 3-3 1-2 4 2 2 2 1 4 3 1 2 3 4-1 1-3 3-1 2-4-2-2-1-4-3-1-2-3-4 1-2 3-3 1-2 4 2 2 1 4 3 1 2 3 4-1 1-3 3-1 2 4-2 2-1 4-3 1-2 3-4-1-2-3-3-1-2-3Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.fa-info-circle, .fa-exclamation-triangle, .fa-eye { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6m0-11v1'/%3E%3C/svg%3E"); }
.fa-paper-plane, .fa-upload { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='m3 11 18-8-8 18-3-8-7-2Z'/%3E%3Cpath d='m10 13 11-10'/%3E%3C/svg%3E"); }
.fa-list, .fa-file-alt, .fa-filter, .fa-chevron-down { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M8 5h13M8 12h13M8 19h13M3 5h1m-1 7h1m-1 7h1'/%3E%3C/svg%3E"); }
.fa-save { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M5 3h12l4 4v14H3V3Z'/%3E%3Cpath d='M7 3v6h10V3M7 21v-8h10v8'/%3E%3C/svg%3E"); }
.fa-spin { animation: spin 1s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .home-hero { grid-template-columns: 1fr; padding-top: 44px; gap: 24px; }
  .hero-art { max-width: 520px; margin: 0 auto; }
  .services, .campus-grid { grid-template-columns: 1fr; }
  .split-layout, .mail-layout, .login-layout { grid-template-columns: 1fr; gap: 28px; }
  .page-intro { position: static; }
  .admin-page { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; padding: 18px 22px; border-right: 0; border-bottom: 1px solid #334540; }
  .rail-label, .rail-bottom { display: none; }
  .admin-sidebar nav { grid-template-columns: repeat(2,1fr); margin-top: 16px; }
  .admin-main { padding: 24px 20px 44px; }
  .grid-4col { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .member-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 700px) {
  :root { --header-h: 60px; }
  .header-inner { padding: 0 16px; gap: 10px; }
  .site-nav { position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 99; display: grid; gap: 0; padding: 10px 12px 14px; background: rgba(245,242,236,.98); border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .24s ease; box-shadow: var(--shadow-1); }
  .site-nav a { width: 100%; padding: 12px; font-size: 15px; }
  .site-nav::before { content: ""; }
  body.nav-open .site-nav { transform: translateY(0); }
  .nav-toggle {
    display: grid; place-items: center; width: 42px; height: 42px; margin-left: auto;
    border-radius: 8px; color: var(--ink); background: rgba(46, 107, 79, .07);
  }
  .nav-toggle::before, .nav-toggle::after {
    content: ""; display: block; width: 18px; height: 2px; margin: 2px 0;
    background: currentColor; border-radius: 1px;
    transition: transform .2s ease;
  }
  body.nav-open .nav-toggle::before { transform: translateY(3px) rotate(45deg); }
  body.nav-open .nav-toggle::after { transform: translateY(-3px) rotate(-45deg); }
  .header-action { margin-left: auto; padding: 9px 12px; font-size: 13px; }
  .header-action span, .header-action { white-space: nowrap; }
  .home-hero, .site-main { padding-left: 18px; padding-right: 18px; }
  .home-hero { margin: 0; width: 100%; padding: 36px 18px; }
  .services, .lost-grid, .member-grid { grid-template-columns: 1fr; }
  .section-heading, .closing-note, .form-bottom { align-items: stretch; flex-direction: column; }
  .closing-note > div { align-items: flex-start; flex-direction: column; gap: 12px; }
  .paper-form, .login-container, .compose-panel, .detail-main .container { padding: 22px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .admin-sidebar nav { grid-template-columns: 1fr; }
  .grid-4col, .stats-grid, .filter-bar { grid-template-columns: 1fr; display: grid; }
  .filter-bar { display: grid; }
  .filter-bar select, .filter-bar input, .filter-bar button { width: 100%; }
  .list-item { grid-template-columns: 1fr; }
  .admin-page .list-item { grid-template-columns: 1fr; }
  .item-actions { justify-content: flex-start; }
  .detail-item { grid-template-columns: 1fr; gap: 5px; }
  .admin-topline { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
