@charset "UTF-8";
:root {
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color:#243e31;
  background:#f6f7f2;
  font-synthesis:none;
  font-size:14px;
  --green:#284d3a;
  --muted:#7b847c;
  --line:#e4e8de
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
button,input {
  font:inherit
}
button,a,input {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer
}
button:disabled {
  cursor:wait;
  opacity:.6
}
button:focus-visible,a:focus-visible {
  outline:3px solid #a8bd82;
  outline-offset:4px
}
a {
  color:inherit;
  text-decoration:none
}
[hidden] {
  display:none!important
}
h1,h2,p {
  margin:0
}
h1,h2 {
  font-weight:600
}
h2 {
  font-size:20px;
  letter-spacing:-.5px
}
.muted {
  color:var(--muted);
  line-height:1.8
}
.eyebrow {
  font-size:10px;
  letter-spacing:2px;
  font-weight:600;
  color:var(--muted)
}
.brand {
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:19px;
  font-weight:650;
  white-space:nowrap
}
.brand-mark {
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  background:var(--green);
  color:#e1ebc8;
  border-radius:12px;
  font-size:28px;
  line-height:1
}
.brand-tag {
  font-size:9px;
  letter-spacing:1.5px;
  font-weight:500;
  color:var(--muted);
  border:1px solid var(--line);
  border-radius:5px;
  padding:4px 6px;
  margin-left:5px
}
.initial {
  display:grid;
  place-items:center;
  min-height:100vh;
  color:var(--muted)
}
.primary,.secondary {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:46px;
  border-radius:9px;
  padding:0 18px;
  font-weight:500
}
.primary {
  background:var(--green);
  color:white;
  border:1px solid var(--green)
}
.primary:hover {
  background:#1c392a
}
.secondary {
  background:#fff;
  color:var(--green);
  border:1px solid #dce2d5
}
.secondary:hover {
  background:#eef2e8
}
.secondary span {
  font-size:21px
}
.text-button {
  border:0;
  background:transparent;
  color:var(--muted);
  padding:8px 0
}
.text-button:hover {
  color:var(--green)
}
.error {
  color:#a54137;
  font-size:13px;
  line-height:1.6
}
.error:empty {
  display:none
}
.login-layout {
  min-height:100vh;
  display:grid;
  grid-template-columns:1fr 1fr;
  padding:22px;
  gap:22px
}
.login-story {
  border-radius:20px;
  background:#e8eddf;
  display:flex;
  flex-direction:column;
  padding:36px 40px;
  overflow:hidden;
  position:relative
}
.story-content {
  margin:auto 0;
  padding:70px 0 180px;
  position:relative
}
.story-content h1 {
  font-size:clamp(38px,4.6vw,64px);
  line-height:1.3;
  letter-spacing:-2px;
  margin:22px 0
}
.story-content>p:last-of-type {
  color:#63735e;
  font-size:15px
}
.story-footer {
  font-size:9px;
  letter-spacing:2px;
  color:#7c8874;
  z-index:1
}
.garden-art {
  position:absolute;
  right:-95px;
  bottom:-30px;
  width:340px;
  height:240px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:13px;
  transform:rotate(-24deg)
}
.garden-art i {
  border-radius:22px;
  background:#d5dec7;
  position:relative
}
.garden-art i:nth-child(3n) {
  background:#dae4bf
}
.garden-art i:nth-child(2n):before,.garden-art i:nth-child(2n):after {
  content:"";
  position:absolute;
  background:#718c5e;
  width:30px;
  height:43px;
  border-radius:2px 26px 2px 26px;
  left:31%;
  top:16%;
  transform:rotate(-20deg)
}
.garden-art i:nth-child(2n):after {
  left:49%;
  transform:scaleX(-1) rotate(-20deg);
  background:#99ac71
}
.login-panel {
  display:grid;
  place-items:center;
  padding:50px 30px
}
.login-form {
  width:100%;
  max-width:340px
}
.login-form h2 {
  font-size:28px;
  margin:15px 0 10px
}
.login-form>.muted {
  margin-bottom:38px
}
.login-form label {
  display:block;
  margin:22px 0 10px;
  font-size:13px
}
.login-form input {
  width:100%;
  height:49px;
  border:1px solid #dce2d5;
  border-radius:8px;
  background:#fff;
  padding:0 14px;
  outline:none;
  color:#243e31
}
.login-form input::placeholder {
  color:#a3aaa1;
  font-size:13px
}
.login-form input:focus {
  border-color:#738a61;
  box-shadow:0 0 0 3px #dde6d0
}
.login-form .error {
  margin-top:18px
}
.login-form .primary {
  margin-top:26px;
  width:100%;
  justify-content:space-between
}
.login-note {
  text-align:center;
  font-size:11px;
  color:#929b8c;
  margin-top:24px
}
.topbar {
  height:86px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 max(32px,calc((100vw - 1160px)/2));
  background:#fbfcf8
}
.account {
  display:flex;
  align-items:center;
  gap:20px;
  font-size:12px
}
.separator {
  height:14px;
  width:1px;
  background:#dce2d5
}
.dashboard {
  max-width:1224px;
  margin:auto;
  padding:45px 32px 25px
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:34px;
  gap:20px
}
.page-heading .eyebrow {
  display:flex;
  align-items:center;
  gap:12px
}
.heading-line {
  width:23px;
  height:1px;
  background:#b8c1af
}
.page-heading h1 {
  font-size:32px;
  letter-spacing:-1.2px;
  margin:14px 0 10px
}
.title-dot {
  color:#9bb872;
  margin-left:3px
}
.page-heading .muted {
  font-size:12px
}
.metric-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px
}
.metric-card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:13px;
  padding:23px;
  min-height:157px;
  position:relative
}
.metric-card:first-child {
  background:#294c3a;
  color:#f5f8ec;
  border-color:#294c3a
}
.metric-card:first-child .metric-label,.metric-card:first-child .metric-note {
  color:#c0cfb9
}
.metric-card:first-child .metric-icon {
  background:#41614c;
  color:#dbe9c4
}
.metric-label {
  font-size:12px;
  color:#727e71;
  margin-bottom:20px
}
.metric-value {
  font-size:35px;
  line-height:1;
  font-weight:550;
  letter-spacing:-1.4px;
  font-variant-numeric:tabular-nums
}
.metric-note {
  font-size:10px;
  color:#929a8d;
  margin-top:14px;
  line-height:1.5
}
.metric-icon {
  position:absolute;
  top:17px;
  right:17px;
  font-size:13px;
  background:#f0f4e8;
  color:#718855;
  border-radius:8px;
  width:27px;
  height:27px;
  display:grid;
  place-items:center
}
.detail-grid {
  display:grid;
  grid-template-columns:minmax(0,2.2fr) minmax(240px,1fr);
  gap:20px;
  margin-top:26px
}
.panel {
  background:#fff;
  border:1px solid var(--line);
  border-radius:13px;
  padding:26px
}
.panel-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:24px
}
.panel h2 {
  margin-top:10px
}
.pill {
  border-radius:20px;
  padding:7px 11px;
  background:#f1f4e9;
  color:#718065;
  font-size:10px
}
.table-scroll {
  overflow-x:auto
}
table {
  width:100%;
  border-collapse:collapse;
  font-size:12px;
  white-space:nowrap;
  font-variant-numeric:tabular-nums
}
th {
  text-align:right;
  font-weight:500;
  color:#939b8d;
  padding:0 10px 15px;
  border-bottom:1px solid var(--line);
  font-size:11px
}
td {
  text-align:right;
  padding:13px 10px;
  border-bottom:1px solid #f0f2eb
}
th:first-child,td:first-child {
  text-align:left;
  padding-left:0
}
tr:last-child td {
  border-bottom:0
}
.current-day td {
  color:#345a36;
  font-weight:600
}
.today-tag {
  margin-left:9px;
  font-size:9px;
  color:#849870
}
.daily-panel {
  display:flex;
  flex-direction:column;
  background:#eef2e6
}
.daily-number {
  font-size:68px;
  font-weight:500;
  letter-spacing:-3px;
  margin:34px 0 0;
  font-variant-numeric:tabular-nums
}
.daily-panel>.muted {
  font-size:12px
}
.schedule-state {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  border-top:1px solid #dce3d2;
  padding-top:21px;
  margin-top:30px
}
.status-dot {
  width:7px;
  height:7px;
  border-radius:50%;
  background:#b78948
}
.status-dot.ready {
  background:#6f8f48
}
.daily-note {
  font-size:11px;
  line-height:1.9;
  color:#8b9680;
  margin-top:auto;
  padding-top:26px
}
.dashboard-footer {
  display:flex;
  justify-content:space-between;
  margin-top:30px;
  color:#939b8c;
  font-size:10px;
  gap:20px
}
.banner {
  padding:12px 16px;
  border:1px solid #e7cfc5;
  border-radius:9px;
  background:#fff5ef;
  margin-bottom:20px
}
@media(min-width:1440px) {
  .login-layout {
    max-width:1600px;
    margin:auto
  }
  .login-story {
    min-height:calc(100vh - 44px)
  }
}
@media(max-width:900px) {
  .metric-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .login-story {
    padding:30px
  }
  .garden-art {
    right:-160px
  }
  .detail-grid {
    grid-template-columns:minmax(0,1fr) 240px
  }
  .topbar {
    padding:0 24px
  }
}
@media(max-width:640px) {
  .login-layout {
    display:block;
    padding:0;
    min-height:100vh
  }
  .login-story {
    border-radius:0;
    padding:24px;
    background:transparent
  }
  .story-content,.story-footer {
    display:none
  }
  .login-panel {
    padding:50px 28px
  }
  .topbar {
    height:72px;
    padding:0 20px
  }
  .brand {
    font-size:17px;
    gap:7px
  }
  .brand-tag {
    font-size:8px;
    margin-left:0
  }
  .account {
    gap:12px
  }
  .account #account-name {
    display:none
  }
  .account .separator {
    display:none
  }
  .dashboard {
    padding:30px 18px 22px
  }
  .page-heading {
    align-items:flex-end;
    gap:10px;
    margin-bottom:25px
  }
  .page-heading h1 {
    font-size:25px
  }
  .page-heading .eyebrow {
    font-size:8px;
    gap:8px;
    letter-spacing:1.3px
  }
  .secondary {
    font-size:11px;
    padding:0 12px;
    min-height:38px;
    gap:7px
  }
  .metric-grid {
    gap:10px
  }
  .metric-card {
    padding:19px 16px;
    min-height:145px
  }
  .metric-value {
    font-size:31px
  }
  .metric-icon {
    right:12px;
    top:13px;
    width:24px;
    height:24px
  }
  .metric-note {
    font-size:9px;
    max-width:150px
  }
  .metric-label {
    font-size:11px
  }
  .detail-grid {
    grid-template-columns:1fr;
    gap:16px;
    margin-top:18px
  }
  .panel {
    padding:22px 18px
  }
  .daily-number {
    margin-top:20px;
    font-size:50px
  }
  .daily-panel {
    position:relative
  }
  .daily-panel .schedule-state {
    margin-top:18px
  }
  .daily-note {
    padding-top:18px
  }
  .dashboard-footer {
    font-size:9px;
    line-height:1.8
  }
}

.admin-layout { display:flex; min-height:100vh }
.sidebar { width:224px; flex-shrink:0; background:#fbfcf8; border-right:1px solid var(--line); padding:28px 20px; position:sticky; top:0; height:100vh; display:flex; flex-direction:column }
.nav-label { margin:48px 12px 16px }
.nav-item { display:flex; align-items:center; gap:12px; padding:14px 16px; border-radius:9px; margin-bottom:7px; color:#74806e }
.nav-item:hover { background:#eef2e8 }
.nav-item[aria-current="page"] { background:#e6eddb; color:var(--green); font-weight:600 }
.nav-item span { font-size:20px }
.sidebar-footer { margin-top:auto; color:var(--muted); font-size:11px; padding:16px 12px }
.workspace { min-width:0; flex:1 }
.workspace .topbar { height:76px; padding:0 32px; font-size:13px }
.workspace .dashboard { max-width:1440px }
.search-bar { display:flex; gap:10px; margin-bottom:28px }
.search-bar input, #nickname-input { min-width:0; border:1px solid #dce2d5; border-radius:8px; padding:12px 14px; color:var(--green); background:white }
.search-bar input { width:340px; flex:1 }
.search-bar button { flex-shrink:0; white-space:nowrap }
.users-table th,.users-table td { text-align:left; padding:16px 14px; max-width:320px; white-space:normal; overflow-wrap:anywhere; min-width:130px }
.users-table th:first-child,.users-table td:first-child { min-width:70px }
.users-table th small { display:block; font-size:10px; margin-top:6px; font-weight:400 }
.users-table th:nth-child(5),.users-table th:nth-child(6) { min-width:190px }
.users-table th:nth-child(2) { min-width:220px }
.edit-button { border:0; background:#f0f4e8; border-radius:6px; padding:8px 12px; color:var(--green); white-space:nowrap }
.pagination,.pagination>div { display:flex; align-items:center; justify-content:space-between; gap:16px }
.pagination { margin-top:24px; color:var(--muted); font-size:12px }
.pagination .secondary { min-height:36px; font-size:12px }
.empty-state { text-align:center; color:var(--muted); padding:40px }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%) }
dialog { width:min(440px,calc(100vw - 32px)); border:1px solid var(--line); border-radius:16px; padding:30px; color:var(--green); box-shadow:0 20px 80px #243e3126 }
dialog::backdrop { background:#18291f66 }
dialog .muted { margin:12px 0 24px }
dialog label { display:block; margin-bottom:10px }
#nickname-input { width:100% }
dialog .error { margin-top:12px }
.dialog-actions { display:flex; justify-content:flex-end; gap:12px; margin-top:28px }
@media(max-width:1100px) { .sidebar { width:188px; padding:28px 14px } .detail-grid { grid-template-columns:1fr } }
@media(max-width:640px) {
  .sidebar { width:72px; padding:24px 8px }
  .sidebar .brand { font-size:0; justify-content:center }
  .nav-label,.sidebar-footer { display:none }
  #navigation { margin-top:32px }
  .nav-item { padding:12px 4px; justify-content:center; flex-direction:column; font-size:10px; gap:6px }
  .workspace .topbar { height:72px; padding:0 18px }
  .workspace .page-heading { align-items:flex-start; flex-wrap:wrap }
  .metric-grid { grid-template-columns:1fr }
  .search-bar { flex-wrap:wrap }
  .search-bar input { width:100% }
  .pagination { align-items:flex-start; flex-direction:column }
  .pagination>div { gap:8px }
  .pagination .secondary { padding:0 9px }
}
.user-row { cursor:pointer }
.user-row:hover,.user-row:focus-visible { background:#f1f5eb }
.user-row:focus-visible { outline:2px solid #a8bd82; outline-offset:-2px }
#user-stats-dialog { width:min(1120px,calc(100vw - 32px)); max-height:85vh; overflow-y:auto }
.stats-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:20px }
.stats-heading .muted { margin:10px 0 24px }
.stats-section { border-top:1px solid var(--line); padding:22px 0 }
.stats-section h3 { margin:0 0 18px; font-size:16px }
.stats-section .muted { margin:10px 0; font-size:12px }
.stats-section th,.stats-section td { text-align:left; padding:12px; max-width:300px }
.stats-note { font-size:12px }
#user-stats-failure .secondary { margin-top:16px }
.storage-table th:nth-child(2),.storage-table td:nth-child(2) { text-align:left; white-space:normal; min-width:220px; line-height:1.7 }
.storage-table td:first-child { font-family:monospace }
.storage-note { font-size:12px; margin-top:18px }
.storage-total { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:24px; border-top:1px solid var(--line); margin-top:24px; padding-top:24px }
.storage-total .metric-value { margin-top:12px }
.storage-total>.muted { font-size:12px }
