:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --text: #172033;
  --muted: #65708a;
  --line: rgba(83, 95, 122, 0.18);
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --blue: #3478f6;
  --green: #2fb875;
  --orange: #f59f32;
  --red: #ef5b63;
  --violet: #8e6cff;
  --shadow: 0 18px 50px rgba(35, 52, 91, 0.14);
  --shadow-strong: 0 28px 80px rgba(35, 52, 91, 0.22);
  --radius: 22px;
}

body.dark {
  color-scheme: dark;
  --bg: #111827;
  --text: #f5f7fb;
  --muted: #b6bfd0;
  --line: rgba(255, 255, 255, 0.16);
  --glass: rgba(30, 38, 55, 0.66);
  --glass-strong: rgba(34, 44, 64, 0.84);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 18% 5%, rgba(52, 120, 246, 0.22), transparent 28rem),
    radial-gradient(circle at 83% 14%, rgba(47, 184, 117, 0.22), transparent 22rem),
    radial-gradient(circle at 50% 100%, rgba(245, 159, 50, 0.18), transparent 24rem),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  backdrop-filter: blur(0.2px);
}

.ambient::before,
.ambient::after {
  content: "";
  position: absolute;
  width: 38vmax;
  height: 38vmax;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.42;
  animation: drift 14s ease-in-out infinite alternate;
}

.ambient::before {
  left: -12vmax;
  top: 4vmax;
  background: rgba(52, 120, 246, 0.32);
}

.ambient::after {
  right: -10vmax;
  top: 18vmax;
  background: rgba(47, 184, 117, 0.28);
  animation-delay: -5s;
}

.app-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px 14px calc(122px + env(safe-area-inset-bottom));
}

.boot-screen {
  display: none;
}

body.auth-checking {
  min-height: 100vh;
  overflow: hidden;
}

body.auth-checking .app-shell,
body.auth-checking .toast {
  visibility: hidden;
  pointer-events: none;
}

body.auth-checking .boot-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--muted);
  background:
    radial-gradient(circle at 20% 10%, rgba(52, 120, 246, 0.18), transparent 36%),
    radial-gradient(circle at 85% 75%, rgba(47, 184, 117, 0.16), transparent 34%),
    var(--bg);
}

.boot-screen p {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}

.boot-mark {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(52, 120, 246, 0.16);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: bootSpin 0.75s linear infinite;
}

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

.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 4px 12px;
  backdrop-filter: blur(18px);
}

.brand-subtitle {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(24px, 5vw, 42px);
  line-height: 1.05;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 17px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.grid.six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.25);
  transform: translateY(0) scale(1);
  transition: transform 0.28s cubic-bezier(.2,.8,.2,1), box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.card:hover,
.panel:hover,
.member-card:hover,
.quick-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-strong);
  border-color: rgba(52, 120, 246, 0.28);
}

.member-admin-card:hover,
.member-list-metrics .metric:hover,
.member-card-metrics .metric:hover {
  transform: none;
}

#app {
  animation: pageIn 0.42s cubic-bezier(.2,.8,.2,1);
}

#app[data-view] {
  animation: pageIn 0.46s cubic-bezier(.16,1,.3,1);
}

.site-record-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 22px 16px 8px;
  text-align: center;
}

.site-record-footer a {
  color: #8b95a7;
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-record-footer a:hover {
  color: var(--blue);
}

.section > .panel,
.section > .card,
.stack > .card,
.stack > article {
  animation: cardRise 0.46s cubic-bezier(.16,1,.3,1) both;
}

.stack > .card:nth-child(2),
.stack > article:nth-child(2) { animation-delay: 0.035s; }
.stack > .card:nth-child(3),
.stack > article:nth-child(3) { animation-delay: 0.07s; }
.stack > .card:nth-child(4),
.stack > article:nth-child(4) { animation-delay: 0.105s; }

.card {
  padding: 16px;
}

.panel {
  padding: 18px;
}

.metric {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric span,
.muted {
  color: var(--muted);
}

.metric strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.compact-metrics {
  gap: 10px;
}

.compact-metrics .metric {
  min-height: 78px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "title value"
    "sub value";
  align-items: center;
  column-gap: 12px;
}

.compact-metrics .metric span {
  grid-area: title;
  font-size: 13px;
  font-weight: 700;
}

.compact-metrics .metric strong {
  grid-area: value;
  font-size: 28px;
}

.compact-metrics .metric small {
  grid-area: sub;
  font-size: 12px;
}

.import-confirm-metrics {
  margin: 12px 0;
  gap: 8px;
}

.import-confirm-metrics .metric {
  min-height: 54px;
  padding: 8px 10px;
  border-radius: 16px;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "title value"
    "sub sub";
  column-gap: 8px;
}

.import-confirm-metrics .metric span {
  font-size: 11px;
}

.import-confirm-metrics .metric strong {
  justify-self: end;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
}

.import-confirm-metrics .metric small {
  font-size: 10px;
}

.week-picker {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px 6px 12px;
  background: var(--glass-strong);
  color: var(--muted);
  font-size: 13px;
  box-shadow: 0 10px 24px rgba(35, 52, 91, 0.08);
}

.week-picker select {
  width: auto;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 0 4px;
  color: var(--text);
  background: transparent;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wrap {
  flex-wrap: wrap;
}

.stack {
  display: grid;
  gap: 10px;
}

.section {
  margin: 16px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
}

body.dark .pill {
  background: rgba(255, 255, 255, 0.08);
}

.pill.green {
  color: var(--green);
}

.pill.orange {
  color: var(--orange);
}

.pill.red {
  color: var(--red);
}

.button,
.ghost,
.danger {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 14px;
  color: white;
  background: var(--blue);
  box-shadow: 0 12px 26px rgba(52, 120, 246, 0.22);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.button:hover,
.ghost:hover,
.danger:hover,
.icon-button:hover {
  transform: translateY(-2px);
  filter: saturate(1.12);
}

.button:active,
.ghost:active,
.danger:active,
.icon-button:active,
.tabbar button:active,
.quick-card:active,
.member-card:active {
  transform: scale(0.97);
}

.ghost {
  color: var(--text);
  background: var(--glass-strong);
  border-color: var(--line);
  box-shadow: none;
}

.ghost.active {
  color: #fff;
  border-color: rgba(52, 120, 246, 0.28);
  background: linear-gradient(145deg, rgba(52, 120, 246, 0.92), rgba(80, 145, 255, 0.72));
  box-shadow: 0 10px 24px rgba(52, 120, 246, 0.18);
}

.danger {
  background: var(--red);
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: var(--glass-strong);
  box-shadow: var(--shadow);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.top-message-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.top-message-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  color: #fff;
  background: #ff3b30;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(255, 59, 48, 0.28);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

body.dark .top-message-badge {
  border-color: rgba(24, 31, 44, 0.96);
}

.text-link {
  border: 0;
  padding: 0;
  color: var(--blue);
  background: transparent;
  font-weight: 650;
  text-align: left;
}

.module-title {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(92, 105, 132, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47,184,117,0.12), transparent 42%),
    linear-gradient(145deg, rgba(255,255,255,0.74), rgba(255,255,255,0.44));
  box-shadow: 0 14px 38px rgba(35,52,91,0.1);
  backdrop-filter: blur(24px) saturate(1.25);
}

.module-title h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 4.8vw, 42px);
  line-height: 1.05;
}

.module-crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.module-crumbs span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(116,128,154,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.42);
}

.module-crumbs i {
  color: rgba(101,112,138,0.68);
  font-style: normal;
  font-weight: 950;
}

.back-button {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--text);
  background: rgba(255,255,255,0.42);
  box-shadow: 0 10px 24px rgba(35,52,91,0.08);
  transition: transform 0.18s ease, background 0.18s ease;
}

body.dark .back-button {
  background: rgba(255,255,255,0.08);
}

body.dark .module-title {
  border-color: rgba(255,255,255,0.12);
  background:
    radial-gradient(circle at 100% 0%, rgba(47,184,117,0.15), transparent 42%),
    linear-gradient(145deg, rgba(34,44,64,0.72), rgba(20,28,44,0.42));
}

body.dark .module-crumbs span {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
}

.back-button:hover {
  transform: translateX(-2px);
  background: var(--glass-strong);
}

.back-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 20;
  transform: translateX(-50%);
  --active-index: 0;
  --tab-count: 3;
  --tab-height: 66px;
  --tab-width: min(500px, calc(100% - 126px));
  --tab-compact-width: min(286px, calc(100% - 150px));
  --bottom-control-size: 78px;
  --search-dock-width: min(620px, calc(100% - 28px));
  width: var(--tab-width);
  display: grid;
  grid-template-columns: repeat(var(--tab-count), 1fr);
  gap: 0;
  padding: 6px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 34px;
  background:
    radial-gradient(circle at 16% 8%, rgba(255,255,255,0.5), transparent 40%),
    radial-gradient(circle at 82% 16%, rgba(255,255,255,0.34), transparent 36%),
    linear-gradient(90deg, rgba(255,255,255,0.24), rgba(255,255,255,0.42) 52%, rgba(255,255,255,0.2));
  box-shadow:
    0 22px 46px rgba(35, 52, 91, 0.16),
    0 4px 10px rgba(35, 52, 91, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.58),
    inset 0 -22px 38px rgba(116,128,154,0.035);
  backdrop-filter: blur(46px) saturate(2.05);
  transition:
    width 0.62s cubic-bezier(.16, 1, .3, 1),
    padding 0.62s cubic-bezier(.16, 1, .3, 1),
    border-radius 0.62s ease,
    transform 0.62s cubic-bezier(.16, 1, .3, 1);
}

.tabbar.compact {
  width: var(--tab-compact-width);
  padding: 6px;
  border-radius: 32px;
}

body.dark .tabbar {
  border-color: rgba(255,255,255,0.1);
  background:
    radial-gradient(circle at 24% 0%, rgba(255,255,255,0.1), transparent 52%),
    linear-gradient(180deg, rgba(34,44,64,0.38), rgba(18,25,38,0.24));
  box-shadow:
    0 10px 30px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -18px 34px rgba(0,0,0,0.05);
}

.tabbar-drop {
  position: absolute;
  left: var(--tab-pad, 6px);
  top: var(--tab-pad, 6px);
  z-index: 0;
  width: calc((100% - (var(--tab-pad, 6px) * 2)) / var(--tab-count));
  height: calc(100% - (var(--tab-pad, 6px) * 2));
  border-radius: 999px;
  background:
    radial-gradient(circle at 14% 28%, rgba(113,246,195,0.7), rgba(113,246,195,0.2) 27%, transparent 50%),
    radial-gradient(circle at 82% 18%, rgba(255,255,255,0.62), rgba(255,255,255,0.18) 38%, transparent 64%),
    radial-gradient(circle at 72% 78%, rgba(52,120,246,0.12), transparent 44%),
    linear-gradient(135deg, rgba(255,255,255,0.36), rgba(255,255,255,0.12));
  border: 1px solid rgba(255,255,255,0.54);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.62),
    inset 16px 0 26px rgba(255,255,255,0.12),
    inset -18px -12px 28px rgba(52,120,246,0.08),
    0 14px 26px rgba(45,210,165,0.1),
    0 4px 14px rgba(255,255,255,0.2);
  backdrop-filter: blur(28px) saturate(1.8);
  transform: translateX(calc(var(--active-index) * 100%));
  transform-origin: center;
  transition:
    transform 0.52s cubic-bezier(.22, .72, .18, 1),
    box-shadow 0.34s ease,
    background 0.34s ease;
}

.tabbar.liquid-moving .tabbar-drop {
  animation: none;
}

.tabbar[data-direction="right"].liquid-moving .tabbar-drop::before {
  animation: liquidTailRight 0.48s cubic-bezier(.22, .72, .18, 1);
}

.tabbar[data-direction="left"].liquid-moving .tabbar-drop::before {
  animation: liquidTailLeft 0.48s cubic-bezier(.22, .72, .18, 1);
}

.tabbar.liquid-moving .tabbar-drop::after {
  animation: liquidGlint 0.48s ease;
}

.tabbar-drop::after {
  content: "";
  position: absolute;
  right: 12%;
  top: 13%;
  width: 38%;
  height: 24%;
  border-radius: 999px;
  background: rgba(255,255,255,0.46);
  filter: blur(0.4px);
}

.tabbar-drop::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  width: 44%;
  height: 76%;
  border-radius: 999px 46% 46% 999px;
  background: linear-gradient(145deg, rgba(105,239,190,0.78), rgba(105,239,190,0.14));
  filter: blur(1px);
}

.tabbar button {
  position: relative;
  z-index: 1;
  min-height: var(--tab-height);
  border: 0;
  border-radius: 28px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 900;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  transition: color 0.28s ease, transform 0.28s ease, min-height 0.62s ease;
}

.tabbar button[hidden] {
  display: none !important;
}

.tabbar.compact button {
  min-height: 50px;
}

.tabbar svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
  transition: transform 0.4s cubic-bezier(.16, 1, .3, 1), filter 0.3s ease;
}

.tabbar span {
  line-height: 1;
  transition: opacity 0.42s ease, transform 0.5s ease, max-height 0.5s ease;
}

.tabbar.compact span:not(.tabbar-drop) {
  max-height: 0;
  opacity: 0;
  transform: translateY(4px) scale(0.92);
  overflow: hidden;
}

.tabbar button.active {
  color: var(--blue);
  background: transparent;
  box-shadow: none;
}

.tabbar button.active svg {
  transform: translateY(-2px) scale(1.12);
  filter: drop-shadow(0 7px 12px rgba(52,120,246,0.28));
}

.tab-search-button {
  position: fixed;
  left: calc(50% + min(500px, calc(100% - 126px)) / 2 + 14px);
  bottom: 18px;
  z-index: 21;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 50%;
  color: var(--text);
  background:
    radial-gradient(circle at 70% 18%, rgba(142,240,222,0.36), transparent 28%),
    radial-gradient(circle at 32% 18%, rgba(255,255,255,0.82), transparent 48%),
    linear-gradient(145deg, rgba(255,255,255,0.72), rgba(255,255,255,0.26));
  box-shadow:
    0 22px 42px rgba(35, 52, 91, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.72),
    inset 0 -18px 30px rgba(116,128,154,0.04);
  backdrop-filter: blur(36px) saturate(1.85);
  transform-origin: center;
  transition:
    left 0.62s cubic-bezier(.16, 1, .3, 1),
    transform 0.52s cubic-bezier(.16, 1, .3, 1),
    opacity 0.36s ease,
    width 0.52s cubic-bezier(.16, 1, .3, 1),
    height 0.52s cubic-bezier(.16, 1, .3, 1);
}

.tab-search-button svg,
.search-home-button svg,
.search-input-shell svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-search-button:hover {
  transform: translateY(-2px) scale(1.03);
}

.tabbar.compact + .tab-search-button {
  left: calc(50% + min(286px, calc(100% - 150px)) / 2 + 8px);
  width: 44px;
  height: 44px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.42);
}

.tab-search-button::after {
  content: "";
  position: absolute;
  right: 15%;
  top: 12%;
  width: 22%;
  height: 22%;
  border-radius: 999px;
  background: rgba(110, 241, 203, 0.5);
  filter: blur(1px);
  opacity: 0.8;
}

.search-dock {
  position: fixed;
  left: calc(50% + min(500px, calc(100% - 126px)) / 2 + 53px);
  bottom: 18px;
  z-index: 25;
  width: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(0.92);
  transform-origin: center;
  transition:
    left 0.62s cubic-bezier(.16, 1, .3, 1),
    width 0.62s cubic-bezier(.16, 1, .3, 1),
    opacity 0.18s ease,
    transform 0.62s cubic-bezier(.16, 1, .3, 1);
}

.search-home-button,
.search-input-shell {
  min-height: 78px;
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 10%, rgba(255,255,255,0.74), transparent 48%),
    linear-gradient(145deg, rgba(255,255,255,0.58), rgba(255,255,255,0.2));
  box-shadow:
    0 16px 42px rgba(35,52,91,0.16),
    inset 0 1px 0 rgba(255,255,255,0.58);
  backdrop-filter: blur(32px) saturate(1.7);
}

.search-home-button {
  display: none;
  place-items: center;
  color: var(--text);
}

.search-input-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 0 18px;
  color: var(--muted);
}

.search-input-shell input {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 18px;
  box-shadow: none;
}

body.search-open .tabbar {
  left: calc(50% - min(620px, calc(100% - 28px)) / 2 + 31px);
  width: 78px;
  height: 78px;
  padding: 0;
  border-radius: 50%;
  grid-template-columns: 1fr;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%);
  transition:
    left 0.62s cubic-bezier(.16, 1, .3, 1),
    width 0.62s cubic-bezier(.16, 1, .3, 1),
    height 0.62s cubic-bezier(.16, 1, .3, 1),
    border-radius 0.62s ease,
    padding 0.62s cubic-bezier(.16, 1, .3, 1),
    transform 0.62s cubic-bezier(.16, 1, .3, 1);
}

body.search-open .tabbar::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 68% 18%, rgba(255,255,255,0.52), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,0.34), transparent);
  pointer-events: none;
}

body.search-open .tabbar-drop {
  opacity: 0;
  transform: translateX(0) scale(0.24);
}

body.search-open .tabbar button {
  display: none;
  min-height: 78px;
}

body.search-open .tabbar button[data-route="dashboard"] {
  display: grid;
  color: var(--text);
  border-radius: 50%;
}

body.search-open .tabbar button[data-route="dashboard"] span {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

body.search-open .tab-search-button {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.06);
}

body.search-open .search-dock {
  opacity: 1;
  pointer-events: auto;
  left: calc(50% + 44px);
  width: min(532px, calc(100% - 116px));
  transform: translateX(-50%) scale(1);
}

body.search-open .search-input-shell {
  animation: searchBloom 0.58s cubic-bezier(.16, 1, .3, 1);
}

body.search-closing .search-dock {
  opacity: 0;
  pointer-events: none;
  left: calc(50% + min(500px, calc(100% - 126px)) / 2 + 53px);
  width: 78px;
  transform: translateX(-50%) scale(0.92);
}

body.search-closing .global-search-results {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(16px) scale(0.98);
  transition: opacity 0.24s ease, transform 0.34s cubic-bezier(.16, 1, .3, 1);
}

body.search-closing .tabbar {
  transition:
    left 0.72s cubic-bezier(.16, 1, .3, 1),
    width 0.72s cubic-bezier(.16, 1, .3, 1),
    height 0.72s cubic-bezier(.16, 1, .3, 1),
    padding 0.72s cubic-bezier(.16, 1, .3, 1),
    border-radius 0.72s ease,
    transform 0.72s cubic-bezier(.16, 1, .3, 1);
}

body.search-closing .tab-search-button {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.72);
}

.global-search-results {
  position: fixed;
  left: 50%;
  bottom: 94px;
  z-index: 24;
  width: min(620px, calc(100% - 28px));
  max-height: min(62vh, 560px);
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 28px;
  background: rgba(255,255,255,0.76);
  box-shadow: 0 24px 80px rgba(35,52,91,0.2);
  backdrop-filter: blur(34px) saturate(1.5);
  transform: translateX(-50%);
}

body.dark .global-search-results,
body.dark .search-home-button,
body.dark .search-input-shell,
body.dark .tab-search-button {
  border-color: rgba(255,255,255,0.12);
  background:
    radial-gradient(circle at 28% 10%, rgba(255,255,255,0.12), transparent 48%),
    linear-gradient(145deg, rgba(34,44,64,0.76), rgba(18,25,38,0.46));
}

.global-search-list {
  display: grid;
  gap: 8px;
}

.global-search-group {
  display: grid;
  gap: 8px;
}

.global-search-group + .global-search-group {
  margin-top: 12px;
}

.global-search-group .eyebrow {
  margin: 0 0 2px;
  padding-left: 4px;
}

.global-search-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  grid-template-areas:
    "group title"
    "group sub";
  gap: 2px 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255,255,255,0.46);
  text-align: left;
}

.global-search-item span {
  grid-area: group;
  display: inline-flex;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(52,120,246,0.1);
  font-size: 12px;
  font-weight: 900;
}

.global-search-item strong {
  grid-area: title;
}

.global-search-item small {
  grid-area: sub;
  color: var(--muted);
  font-weight: 700;
}

.search-located {
  position: relative;
  outline: 2px solid rgba(52,120,246,0.48);
  box-shadow: 0 0 0 8px rgba(52,120,246,0.1), var(--shadow);
  animation: searchLocatedPulse 1.5s ease;
}

.form {
  display: grid;
  gap: 10px;
}

.login-card {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(52,120,246,0.14), transparent 15rem),
    radial-gradient(circle at 100% 10%, rgba(47,184,117,0.16), transparent 15rem),
    rgba(255,255,255,0.58);
}

body.dark .login-card {
  background:
    radial-gradient(circle at 8% 0%, rgba(52,120,246,0.18), transparent 15rem),
    radial-gradient(circle at 100% 10%, rgba(47,184,117,0.16), transparent 15rem),
    rgba(255,255,255,0.06);
}

.account-manager-panel table td:last-child {
  min-width: 180px;
}

body.auth-required {
  padding-bottom: 0;
}

body.auth-required .app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr;
  padding: 0 16px;
  position: relative;
}

body.auth-required .tabbar,
body.auth-required .tab-search-button,
body.auth-required .search-dock,
body.auth-required .global-search-results,
body.auth-required #logoutButton,
body.auth-required #homeButton {
  display: none !important;
}

body.auth-required .topbar {
  position: absolute;
  inset: 18px 10px auto auto;
  z-index: 20;
  padding: 0;
  backdrop-filter: none;
}

body.auth-required .topbar > div:first-child {
  display: none;
}

body.auth-required .top-actions {
  position: static;
}

body.auth-required .site-record-footer {
  position: absolute;
  left: 0;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 10;
  padding: 8px 16px;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 0;
  position: relative;
  overflow: hidden;
}

.login-page::before,
.login-page::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(52,120,246,0.12);
  border-radius: 999px;
  pointer-events: none;
}

.login-page::before {
  width: min(72vw, 680px);
  height: min(72vw, 680px);
  left: -18%;
  top: 8%;
  background:
    radial-gradient(circle at 50% 50%, transparent 52%, rgba(52,120,246,0.08) 53%, transparent 54%),
    radial-gradient(circle at 50% 50%, transparent 68%, rgba(47,184,117,0.08) 69%, transparent 70%);
}

.login-page::after {
  width: min(58vw, 520px);
  height: min(58vw, 520px);
  right: -14%;
  bottom: 4%;
  background:
    repeating-conic-gradient(from 0deg, rgba(47,184,117,0.08) 0 8deg, transparent 8deg 20deg);
  filter: blur(0.2px);
}

.login-hero-card {
  width: min(430px, 100%);
}

.login-gate-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px) saturate(1.35);
}

.login-gate-card {
  width: min(460px, calc(100vw - 32px));
  padding: 28px;
  position: relative;
  z-index: 1;
  gap: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 10%, rgba(52,120,246,0.18), transparent 12rem),
    radial-gradient(circle at 100% 10%, rgba(47,184,117,0.16), transparent 13rem),
    linear-gradient(145deg, rgba(255,255,255,0.82), rgba(255,255,255,0.52));
}

.login-card-title {
  text-align: center;
  margin-bottom: 4px;
}

.login-card-title h1 {
  margin: 0 auto;
  max-width: 12em;
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1.05;
}

.login-brand-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.login-visual-elements {
  position: relative;
  min-height: 106px;
  margin: 2px 0 4px;
  border: 1px solid rgba(255,255,255,0.54);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(52,120,246,0.1), rgba(47,184,117,0.08)),
    rgba(255,255,255,0.34);
  overflow: hidden;
}

.login-clock {
  position: absolute;
  left: 24px;
  top: 20px;
  width: 58px;
  height: 58px;
  border: 6px solid rgba(52,120,246,0.22);
  border-radius: 50%;
  background: rgba(255,255,255,0.32);
}

.login-clock::before,
.login-clock::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  border-radius: 999px;
  background: var(--blue);
  transform-origin: 50% 100%;
}

.login-clock::before {
  height: 18px;
  animation: loginClockHour 14s linear infinite;
}

.login-clock::after {
  height: 24px;
  animation: loginClockMinute 8s linear infinite;
  background: var(--green);
}

.login-bubble {
  position: absolute;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(145deg, var(--blue), var(--green));
  box-shadow: 0 12px 24px rgba(52,120,246,0.18);
}

.login-bubble.b1 { left: 112px; top: 20px; }
.login-bubble.b2 { left: 156px; top: 48px; opacity: 0.86; animation-delay: -1.2s; }
.login-bubble.b3 { left: 206px; top: 24px; opacity: 0.72; animation-delay: -2.2s; }

.login-bubble {
  animation: loginFloat 4.6s ease-in-out infinite alternate;
}

.login-heatline {
  position: absolute;
  right: 22px;
  bottom: 20px;
  display: grid;
  grid-template-columns: repeat(7, 14px);
  gap: 6px;
}

.login-heatline i {
  width: 14px;
  height: 14px;
  border-radius: 5px;
  background: rgba(101,112,138,0.2);
}

.login-heatline i:nth-child(2),
.login-heatline i:nth-child(5) { background: rgba(47,184,117,0.38); }
.login-heatline i:nth-child(3),
.login-heatline i:nth-child(6) { background: rgba(52,120,246,0.46); }
.login-heatline i:nth-child(4),
.login-heatline i:nth-child(7) { background: rgba(47,184,117,0.74); }

.login-heatline i {
  animation: heatPulse 2.8s ease-in-out infinite;
}

.login-heatline i:nth-child(2) { animation-delay: .12s; }
.login-heatline i:nth-child(3) { animation-delay: .24s; }
.login-heatline i:nth-child(4) { animation-delay: .36s; }
.login-heatline i:nth-child(5) { animation-delay: .48s; }
.login-heatline i:nth-child(6) { animation-delay: .6s; }
.login-heatline i:nth-child(7) { animation-delay: .72s; }

.login-submit {
  min-height: 52px;
}

.login-submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 72px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--blue);
  background: rgba(52,120,246,0.1);
  font-size: 12px;
  font-weight: 900;
}

.login-error {
  min-height: 20px;
  margin: -4px 0 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.default-password-toast {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  left: 50%;
  z-index: 90;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(520px, calc(100% - 28px));
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.62);
  border-radius: 26px;
  background:
    radial-gradient(circle at 8% 0%, rgba(52,120,246,0.22), transparent 46%),
    linear-gradient(135deg, rgba(255,255,255,0.88), rgba(246,250,255,0.68));
  box-shadow: 0 20px 58px rgba(24, 39, 72, 0.2);
  backdrop-filter: blur(28px) saturate(1.45);
  transform: translateX(-50%);
  animation: passwordToastIn 0.42s cubic-bezier(.16, 1, .3, 1);
}

.default-password-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(52,120,246,0.96), rgba(47,184,117,0.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.34), 0 12px 26px rgba(52,120,246,0.22);
  font-size: 18px;
  font-weight: 950;
}

.default-password-copy {
  min-width: 0;
}

.default-password-copy p,
.default-password-copy strong,
.default-password-copy span {
  display: block;
}

.default-password-copy p {
  margin: 0 0 1px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}

.default-password-copy strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
}

.default-password-copy span {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.default-password-action {
  height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(52,120,246,0.22);
  font-weight: 950;
}

.default-password-close {
  position: absolute;
  top: -8px;
  right: -6px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,0.68);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255,255,255,0.84);
  box-shadow: 0 8px 20px rgba(24,39,72,0.14);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

body.dark .default-password-toast {
  border-color: rgba(255,255,255,0.14);
  background:
    radial-gradient(circle at 8% 0%, rgba(52,120,246,0.3), transparent 46%),
    linear-gradient(135deg, rgba(33,43,63,0.88), rgba(20,28,44,0.68));
}

body.dark .default-password-close {
  border-color: rgba(255,255,255,0.14);
  background: rgba(30,38,55,0.9);
}

body.auth-required.keyboard-focus .login-gate-card {
  transform: translateY(-8vh);
}

body.dark .login-gate-card {
  background:
    radial-gradient(circle at 18% 10%, rgba(52,120,246,0.2), transparent 12rem),
    radial-gradient(circle at 100% 10%, rgba(47,184,117,0.14), transparent 13rem),
    linear-gradient(145deg, rgba(34,44,64,0.86), rgba(30,38,55,0.62));
}

body.dark .login-visual-elements {
  background:
    linear-gradient(135deg, rgba(52,120,246,0.14), rgba(47,184,117,0.1)),
    rgba(255,255,255,0.06);
}

.field {
  display: grid;
  gap: 6px;
}

label {
  color: var(--muted);
  font-size: 13px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.42);
}

.segmented label {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
  color: var(--muted);
  cursor: pointer;
}

.segmented label:has(input:checked) {
  color: #fff;
  background: linear-gradient(145deg, rgba(52,120,246,0.94), rgba(80,145,255,0.72));
  box-shadow: 0 10px 24px rgba(52,120,246,0.18);
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hidden {
  display: none !important;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.52);
  outline: none;
}

body.dark input,
body.dark select,
body.dark textarea {
  background: rgba(255, 255, 255, 0.08);
}

textarea {
  min-height: 118px;
  resize: vertical;
}

.panel .form {
  gap: 9px;
}

.panel .card {
  box-shadow: 0 12px 30px rgba(35, 52, 91, 0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.table-wrap table th:first-child,
.table-wrap table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: rgba(255,255,255,0.94);
}

body.dark .table-wrap table th:first-child,
body.dark .table-wrap table td:first-child {
  background: rgba(28,36,52,0.96);
}

.share-scoreboard-panel {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.86), rgba(255,255,255,0.58)),
    radial-gradient(circle at 95% 8%, rgba(47,184,117,0.16), transparent 18rem);
}

.today-scoreboard-panel {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.62)),
    radial-gradient(circle at 12% 0%, rgba(52,120,246,0.16), transparent 16rem),
    radial-gradient(circle at 100% 8%, rgba(47,184,117,0.16), transparent 18rem);
}

body.dark .share-scoreboard-panel {
  background:
    linear-gradient(145deg, rgba(35,44,64,0.88), rgba(21,29,45,0.62)),
    radial-gradient(circle at 95% 8%, rgba(47,184,117,0.18), transparent 18rem);
}

body.dark .today-scoreboard-panel {
  background:
    linear-gradient(145deg, rgba(35,44,64,0.88), rgba(21,29,45,0.62)),
    radial-gradient(circle at 12% 0%, rgba(52,120,246,0.18), transparent 16rem),
    radial-gradient(circle at 100% 8%, rgba(47,184,117,0.18), transparent 18rem);
}

.today-scoreboard-card {
  display: grid;
  gap: 12px;
}

.today-scoreboard-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.48);
}

body.dark .today-scoreboard-head {
  background: rgba(255,255,255,0.06);
}

.today-scoreboard-head strong {
  display: block;
  font-size: 20px;
}

.today-scoreboard-head span {
  color: var(--muted);
  font-weight: 800;
}

.today-scoreboard-toolbar {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  width: min(100%, 1000px);
}

.today-scoreboard-date-picker {
  min-width: 0;
}

.today-scoreboard-date-picker span {
  font-size: 12px;
  font-weight: 800;
}

.today-scoreboard-date-picker select {
  width: 100%;
  min-width: 0;
}

.today-scoreboard-actions {
  justify-content: flex-end;
  gap: 10px;
}

.scoreboard-export-actions {
  justify-content: flex-end;
  gap: 10px;
}

.today-scoreboard-shell {
  border-radius: 20px;
}

.today-scoreboard-table {
  min-width: 720px;
}

.today-scoreboard-table th,
.today-scoreboard-table td {
  padding: 9px 8px;
}

.scoreboard-shell {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.52);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.scoreboard-publish-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px minmax(220px, auto);
  gap: 10px;
  align-items: end;
}

.score-check-select {
  min-height: 30px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.summary-mode-tabs .ghost.active {
  color: #fff;
  border-color: rgba(52,120,246,0.25);
  background: linear-gradient(145deg, rgba(52,120,246,0.92), rgba(71,135,248,0.72));
  box-shadow: 0 12px 28px rgba(52,120,246,0.18);
}

.scoreboard-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(10px);
}

.scoreboard-preview-card {
  width: min(960px, 100%);
  max-height: 88vh;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,0.94);
  box-shadow: var(--shadow-strong);
  overflow: auto;
}

body.dark .scoreboard-preview-card {
  background: rgba(28,36,52,0.96);
}

.scoreboard-preview-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid var(--line);
  -webkit-touch-callout: default;
  user-select: auto;
  pointer-events: auto;
}

.scoreboard-preview-hint {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(52, 120, 246, 0.08);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

body.dark .scoreboard-shell {
  background: rgba(255,255,255,0.06);
}

.scoreboard-table {
  min-width: 940px;
  border-collapse: separate;
  border-spacing: 0;
}

.scoreboard-table th,
.scoreboard-table td {
  padding: 8px 7px;
  text-align: center;
  vertical-align: middle;
  font-size: 13px;
  white-space: nowrap;
}

.scoreboard-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(247,249,253,0.94);
  backdrop-filter: blur(16px);
}

body.dark .scoreboard-table th {
  background: rgba(28,36,52,0.94);
}

.scoreboard-table th small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--muted);
}

.scoreboard-table .sticky-col {
  position: sticky;
  left: 0;
  z-index: 5;
  min-width: 96px;
  text-align: left;
  background: rgba(247,249,253,0.96);
  box-shadow: 12px 0 18px rgba(35,52,91,0.06);
}

.scoreboard-table th.sticky-col {
  z-index: 7;
}

body.dark .scoreboard-table .sticky-col {
  background: rgba(28,36,52,0.96);
  box-shadow: 12px 0 18px rgba(0,0,0,0.18);
}

.member-cell {
  display: flex;
  gap: 6px;
  align-items: center;
}

.member-cell strong {
  color: var(--muted);
  font-size: 12px;
}

.member-cell span {
  font-weight: 800;
}

.scoreboard-table tr.not-passed {
  background: rgba(239, 91, 99, 0.045);
}

.score-day,
.full-day {
  font-weight: 800;
  color: var(--blue);
}

.full-day {
  color: #248c5a;
}

.empty-day {
  color: rgba(101,112,138,0.55);
}

.leave-day {
  color: #b96d10;
  font-weight: 800;
}

.total-score {
  font-size: 16px;
  font-weight: 900;
}

.donation-cell {
  color: #c66b00;
  font-weight: 900;
}

.item-standard-list {
  display: flex;
  justify-content: center;
  gap: 3px;
  flex-wrap: nowrap;
}

.item-standard {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 22px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
}

.item-standard.ok {
  color: #248c5a;
  background: rgba(47,184,117,0.13);
}

.item-standard.warn {
  color: var(--red);
  background: rgba(239,91,99,0.13);
}

.mini-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.mini-status.ok {
  color: #248c5a;
  background: rgba(47,184,117,0.12);
}

.mini-status.warn {
  color: var(--red);
  background: rgba(239,91,99,0.12);
}

.personal-score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 12px;
}

.personal-scoreboard-shell .scoreboard-table {
  min-width: 1120px;
}

.personal-day-cell {
  min-width: 82px;
}

.personal-day-cell strong {
  display: block;
  font-size: 14px;
  line-height: 1.1;
}

.personal-day-cell small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.personal-score-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.86), rgba(255,255,255,0.58)),
    radial-gradient(circle at 0% 0%, rgba(52,120,246,0.12), transparent 11rem),
    radial-gradient(circle at 100% 0%, rgba(47,184,117,0.12), transparent 12rem);
}

.personal-card-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.personal-main-score {
  min-width: 82px;
  min-height: 82px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(145deg, #3478f6, #34c759);
  box-shadow: 0 16px 34px rgba(52,120,246,0.22);
}

.personal-main-score span {
  font-size: 12px;
  font-weight: 800;
  opacity: 0.86;
}

.personal-main-score strong {
  font-size: 36px;
  line-height: 1;
}

.personal-card-title {
  min-width: 0;
}

.personal-card-title > strong {
  display: block;
  font-size: 18px;
}

.personal-card-title p {
  margin: 4px 0 8px;
}

.personal-score-actions,
.personal-card-status {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.personal-card-status {
  justify-content: flex-end;
}

.personal-score-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.personal-score-meta span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255,255,255,0.42);
  font-size: 12px;
  font-weight: 800;
}

body.dark .personal-score-meta span {
  background: rgba(255,255,255,0.06);
}

.personal-score-meta strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 16px;
}

.personal-score-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(116,128,154,0.08);
}

.personal-score-summary > span {
  white-space: nowrap;
  color: var(--muted);
  font-weight: 800;
}

.personal-score-summary strong {
  color: var(--text);
  font-size: 18px;
}

.personal-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.mini-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.personal-score-table th,
.personal-score-table td {
  padding: 7px 7px;
  font-size: 12px;
  vertical-align: middle;
  text-align: center;
}

.personal-score-table td:first-child,
.personal-score-table th:first-child {
  text-align: left;
  white-space: nowrap;
}

.personal-score-table th {
  background: rgba(116,128,154,0.08);
}

.personal-score-reason {
  margin: 0;
  font-size: 12px;
}

.member-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.member-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.34);
  text-align: left;
}

.member-card.active {
  outline: 2px solid rgba(52, 120, 246, 0.55);
}

.meeting-attendee-list {
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 5px;
}

.meeting-attendee-list .member-card {
  grid-template-columns: 18px minmax(max-content, 1fr);
  align-items: center;
  gap: 4px;
  height: 44px;
  min-height: 44px;
  padding: 3px 5px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 120ms ease;
}

.meeting-attendee-list input[type="checkbox"] {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.meeting-attendee-check {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(102, 116, 145, 0.46);
  border-radius: 5px;
  color: transparent;
  background: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 950;
  transition: inherit;
}

.meeting-attendee-name {
  min-width: max-content;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  letter-spacing: 0;
}

.meeting-attendee-list .member-card.selected,
.meeting-attendee-list .member-card:has(input:checked) {
  color: #174fbd;
  border-color: rgba(52, 120, 246, 0.58);
  background: linear-gradient(145deg, rgba(219, 236, 255, 0.92), rgba(218, 250, 238, 0.76));
  box-shadow: 0 8px 20px rgba(52, 120, 246, 0.14), inset 0 1px rgba(255, 255, 255, 0.82);
  font-weight: 950;
}

.meeting-attendee-list .member-card.selected .meeting-attendee-check,
.meeting-attendee-list .member-card:has(input:checked) .meeting-attendee-check {
  color: #fff;
  border-color: var(--blue);
  background: linear-gradient(145deg, var(--blue), #25b98a);
  box-shadow: 0 4px 10px rgba(52, 120, 246, 0.28);
}

.meeting-attendee-list .member-card:hover {
  transform: none;
}

.meeting-attendee-list .member-card:active {
  transform: scale(0.98);
}

.meeting-attendee-list .member-card[hidden] {
  display: none;
}

.meeting-shot-action-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(210px, 0.72fr);
  gap: 10px;
  align-items: stretch;
  padding: 10px;
  border: 1px solid rgba(52, 120, 246, 0.18);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(231, 241, 255, 0.58), rgba(229, 250, 242, 0.44));
}

.meeting-shot-action-zone > .ghost {
  align-self: stretch;
  min-height: 56px;
  white-space: nowrap;
}

.settings-feature-entry {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid rgba(52, 120, 246, 0.22);
  border-radius: 16px;
  color: var(--text);
  background: linear-gradient(145deg, rgba(52, 120, 246, 0.1), rgba(47, 184, 117, 0.08));
  text-align: left;
  cursor: pointer;
}

.settings-feature-entry span,
.settings-feature-entry strong,
.settings-feature-entry small {
  display: block;
}

.settings-feature-entry small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}

.settings-feature-entry b {
  color: var(--blue);
  font-size: 25px;
}

.settings-feature-entry:active {
  transform: scale(0.985);
}

.duty-management-primary-grid {
  align-items: start;
}

.duty-handover-details {
  overflow: hidden;
}

.duty-handover-details > summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -14px -14px 0;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.duty-handover-details > summary::-webkit-details-marker {
  display: none;
}

.duty-handover-details > summary span,
.duty-handover-details > summary strong,
.duty-handover-details > summary small {
  display: block;
}

.duty-handover-details > summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.duty-handover-details > summary b {
  color: var(--blue);
  font-size: 13px;
}

.duty-handover-details[open] > summary {
  border-bottom: 1px solid var(--line);
}

.duty-handover-details[open] > summary b {
  font-size: 0;
}

.duty-handover-details[open] > summary b::after {
  content: "收起";
  font-size: 13px;
}

.duty-handover-content {
  margin-bottom: 0;
}

.meeting-file-picker {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  overflow: hidden;
}

.meeting-file-picker input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.meeting-file-picker-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: var(--blue);
  background: rgba(52, 120, 246, 0.12);
  font-size: 24px;
  font-weight: 500;
}

.meeting-file-picker-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.meeting-file-picker-copy strong,
.meeting-file-picker-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-file-picker-copy small {
  color: var(--muted);
  font-weight: 700;
}

.meeting-recognize-button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #3478f6, #22b78c);
  box-shadow: 0 10px 24px rgba(52, 120, 246, 0.24);
  font-weight: 900;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.meeting-recognize-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.meeting-recognize-button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 28px rgba(52, 120, 246, 0.3);
}

.meeting-recognize-button:not(:disabled):active {
  transform: scale(0.98);
}

.meeting-recognize-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.meeting-recognize-button.is-loading svg {
  animation: spin 900ms linear infinite;
}

.meeting-recognition-status {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.36);
  font-weight: 800;
}

.meeting-selected-shot {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(52, 120, 246, 0.22);
  border-radius: 14px;
  background: rgba(52, 120, 246, 0.07);
}

.meeting-selected-shot img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(52, 120, 246, 0.18);
}

.meeting-selected-shot span,
.meeting-selected-shot strong,
.meeting-selected-shot small {
  display: block;
  min-width: 0;
}

.meeting-selected-shot small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-recognition-status[data-status="ready"] {
  color: var(--blue);
  border-color: rgba(52, 120, 246, 0.28);
  background: rgba(52, 120, 246, 0.08);
}

.meeting-recognition-status[data-status="success"] {
  color: var(--green);
  border-color: rgba(47, 184, 117, 0.28);
  background: rgba(47, 184, 117, 0.08);
}

.meeting-recognition-status[data-status="warning"] {
  color: var(--orange);
  border-color: rgba(245, 159, 50, 0.3);
  background: rgba(245, 159, 50, 0.09);
}

.meeting-recognition-modal {
  max-width: 860px;
}

@media (max-width: 620px) {
  .meeting-shot-action-zone {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
  }

  .meeting-file-picker,
  .meeting-shot-action-zone > .ghost,
  .meeting-recognize-button {
    min-height: 52px;
  }

  .meeting-attendee-list .member-card {
    height: 44px;
    min-height: 44px;
    padding: 3px 4px;
  }
}

@media (max-width: 419px) {
  .meeting-attendee-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
}

@media (min-width: 420px) and (max-width: 699px) {
  .meeting-attendee-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .meeting-attendee-list .member-card {
    gap: 3px;
    padding-inline: 3px;
    font-size: 12px;
  }
}

@media (min-width: 700px) and (max-width: 899px) {
  .meeting-attendee-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }
}

.recognition-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.growth-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.growth-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.linkbox {
  display: block;
  max-width: 100%;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(52, 120, 246, 0.08);
  color: var(--blue);
  overflow-wrap: anywhere;
  word-break: break-word;
  text-decoration: none;
  font-size: 13px;
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 5px;
}

.heat {
  aspect-ratio: 1;
  border-radius: 6px;
  background: rgba(101, 112, 138, 0.18);
}

.heat.s1 { background: rgba(47, 184, 117, 0.28); }
.heat.s2 { background: rgba(47, 184, 117, 0.48); }
.heat.s3 { background: rgba(47, 184, 117, 0.72); }
.heat.s4 { background: rgba(47, 184, 117, 0.95); }

.progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(101, 112, 138, 0.18);
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  z-index: 40;
  transform: translateX(-50%) translateY(20px);
  max-width: calc(100% - 28px);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  color: var(--text);
  background: var(--glass-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  transition: 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  color: #fff;
  border-color: rgba(239,91,99,0.32);
  background: linear-gradient(145deg, rgba(239,91,99,0.96), rgba(245,159,50,0.9));
  box-shadow: 0 18px 50px rgba(239,91,99,0.28);
}

.toast.has-action {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.toast-action {
  min-height: 28px;
  padding: 3px 10px;
  border: 0;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(52, 120, 246, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.82), rgba(255,255,255,0.42)),
    radial-gradient(circle at 74% 18%, rgba(52,120,246,0.18), transparent 18rem);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(30px) saturate(1.35);
}

body.dark .hero-panel {
  background:
    linear-gradient(145deg, rgba(35,44,64,0.86), rgba(21,29,45,0.5)),
    radial-gradient(circle at 74% 18%, rgba(52,120,246,0.22), transparent 18rem);
}

.hero-orbit {
  position: absolute;
  right: -88px;
  top: -88px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  background: conic-gradient(from 180deg, rgba(52,120,246,0.42), rgba(47,184,117,0.35), rgba(245,159,50,0.35), rgba(52,120,246,0.42));
  filter: blur(0.2px);
  opacity: 0.72;
  animation: spin 12s linear infinite;
}

.hero-orbit::after {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: inherit;
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
}

.focus-ring {
  width: min(280px, 68vw);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, var(--glass-strong) 0 56%, transparent 57%),
    conic-gradient(var(--blue) calc(var(--value) * 1%), rgba(101,112,138,0.16) 0);
  box-shadow: inset 0 0 40px rgba(255,255,255,0.42), var(--shadow);
  animation: breathe 3.8s ease-in-out infinite;
}

.focus-ring strong {
  display: block;
  font-size: 56px;
  line-height: 1;
  text-align: center;
}

.focus-ring span {
  display: block;
  color: var(--muted);
  text-align: center;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.quick-card {
  min-height: 106px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 15px;
  color: var(--text);
  background: rgba(255,255,255,0.48);
  box-shadow: var(--shadow);
  text-align: left;
  backdrop-filter: blur(22px) saturate(1.2);
}

body.dark .quick-card {
  background: rgba(255,255,255,0.08);
}

.quick-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.quick-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.more-page {
  padding: 20px;
}

.more-header h2 {
  margin-bottom: 6px;
  font-size: clamp(30px, 7vw, 46px);
  line-height: 1;
}

.more-header p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.more-card {
  min-height: clamp(104px, 15vw, 128px);
  border: 1px solid rgba(92, 105, 132, 0.16);
  border-radius: 20px;
  padding: 12px 8px;
  color: var(--text);
  background: rgba(255,255,255,0.74);
  box-shadow: 0 14px 34px rgba(35, 52, 91, 0.1);
  text-align: center;
  display: grid;
  justify-items: center;
  align-content: center;
  transition: transform 0.28s cubic-bezier(.2,.8,.2,1), box-shadow 0.28s ease, border-color 0.28s ease;
}

body.dark .more-card {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.16);
}

.more-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-strong);
  border-color: rgba(52, 120, 246, 0.28);
}

.more-card.locked {
  opacity: 0.52;
}

.more-card.locked .more-icon {
  filter: grayscale(0.7);
}

.more-card strong {
  display: block;
  margin: 8px 0 3px;
  font-size: clamp(13px, 1.8vw, 16px);
  line-height: 1.18;
}

.more-card span {
  display: block;
  color: var(--muted);
  font-size: clamp(11px, 1.45vw, 13px);
  line-height: 1.35;
}

.more-icon {
  display: inline-grid;
  place-items: center;
  position: relative;
  width: clamp(42px, 7vw, 58px);
  height: clamp(42px, 7vw, 58px);
  border-radius: clamp(14px, 2.4vw, 18px);
  color: var(--icon-color, var(--blue));
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.86)),
    var(--icon-bg, rgba(52, 120, 246, 0.12));
  box-shadow:
    0 10px 20px var(--icon-shadow, rgba(52, 120, 246, 0.14)),
    inset 0 0 0 1px rgba(255,255,255,0.9);
  border: 1px solid rgba(92, 105, 132, 0.14);
}

.more-icon svg {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: clamp(25px, 4.2vw, 35px);
  height: clamp(25px, 4.2vw, 35px);
  transform: translate(-50%, -50%);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
}

.app-submodule-card-page {
  display: grid;
  gap: 14px;
}

.app-submodule-head h2 {
  margin: 0 0 4px;
}

.app-submodule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
}

.app-submodule-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 132px;
  border: 1px solid rgba(92, 105, 132, 0.16);
  border-radius: 22px;
  padding: 14px;
  color: var(--text);
  background:
    radial-gradient(circle at 100% 0%, rgba(52, 120, 246, 0.1), transparent 48%),
    rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 34px rgba(35, 52, 91, 0.1);
  text-align: left;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(.2,.8,.2,1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.app-submodule-card:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 120, 246, 0.28);
  box-shadow: var(--shadow-strong);
}

.app-submodule-card:active {
  transform: scale(0.99);
}

.app-submodule-icon {
  display: inline-grid;
  width: 52px;
  height: 52px;
}

.app-submodule-icon .more-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
}

.app-submodule-title {
  font-size: 17px;
  line-height: 1.16;
}

.app-submodule-subtitle {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.app-submodule-backbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 12px 30px rgba(35, 52, 91, 0.08);
}

.app-submodule-backbar h2 {
  margin: 0;
}

.app-submodule-backbar p {
  margin: 0;
}

.app-submodule-back {
  white-space: nowrap;
}

.community-template-panel {
  display: grid;
  gap: 14px;
}

.community-template-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(82, 156, 255, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(52, 120, 246, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.62);
}

.community-template-hero-copy {
  display: grid;
  gap: 10px;
}

.community-template-hero-copy strong {
  color: #142447;
  font-size: 22px;
}

.community-template-hero-copy p {
  margin: 0;
  color: rgba(35, 52, 91, 0.72);
  line-height: 1.6;
}

.community-template-item-guide {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(82, 156, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.community-template-item-guide small {
  color: rgba(35, 52, 91, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.community-template-item-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.community-template-item-pills > span {
  padding: 7px 10px;
  color: #1769e8;
  border: 1px solid rgba(52, 120, 246, 0.18);
  border-radius: 999px;
  background: rgba(52, 120, 246, 0.08);
  font-size: 12px;
  font-weight: 780;
}

body.dark .app-submodule-card {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 100% 0%, rgba(52, 120, 246, 0.16), transparent 48%),
    rgba(255, 255, 255, 0.08);
}

body.dark .app-submodule-backbar {
  background: rgba(255, 255, 255, 0.07);
}

body.dark .community-template-hero,
body.dark .community-template-item-guide {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 100% 0%, rgba(52, 120, 246, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.06);
}

body.dark .community-template-hero-copy strong {
  color: #f3f7ff;
}

body.dark .community-template-hero-copy p,
body.dark .community-template-item-guide small {
  color: rgba(219, 228, 244, 0.72);
}

@media (max-width: 430px) {
  .app-submodule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .app-submodule-card {
    min-height: 118px;
    border-radius: 18px;
    padding: 12px;
  }

  .app-submodule-icon,
  .app-submodule-icon .more-icon {
    width: 46px;
    height: 46px;
  }

  .app-submodule-backbar {
    grid-template-columns: 1fr;
  }

  .app-submodule-back {
    width: 100%;
  }

  .community-template-hero {
    grid-template-columns: 1fr;
    padding: 14px;
  }
}

.more-icon.import {
  --icon-color: #1769e8;
  --icon-bg: rgba(52, 120, 246, 0.1);
  --icon-shadow: rgba(52, 120, 246, 0.14);
}

.more-icon.memberAdmin {
  --icon-color: #744de8;
  --icon-bg: rgba(142, 108, 255, 0.1);
  --icon-shadow: rgba(142, 108, 255, 0.14);
}

.more-icon.memberList {
  --icon-color: #158f56;
  --icon-bg: rgba(47, 184, 117, 0.1);
  --icon-shadow: rgba(47, 184, 117, 0.14);
}

.more-icon.weeklyReport {
  --icon-color: #1f67d2;
  --icon-bg: rgba(31, 103, 210, 0.1);
  --icon-shadow: rgba(31, 103, 210, 0.14);
}

.more-icon.weeklySummary {
  --icon-color: #158f56;
  --icon-bg: rgba(47, 184, 117, 0.1);
  --icon-shadow: rgba(47, 184, 117, 0.14);
}

.more-icon.reminders {
  --icon-color: #d47a11;
  --icon-bg: rgba(245, 159, 50, 0.12);
  --icon-shadow: rgba(245, 159, 50, 0.14);
}

.more-icon.permissions {
  --icon-color: #744de8;
  --icon-bg: rgba(142, 108, 255, 0.1);
  --icon-shadow: rgba(142, 108, 255, 0.14);
}

.more-icon.mobilePreview {
  --icon-color: #0f7bdc;
  --icon-bg: rgba(15, 123, 220, 0.1);
  --icon-shadow: rgba(15, 123, 220, 0.14);
}

.more-icon.health {
  --icon-color: #dd3f4a;
  --icon-bg: rgba(239, 91, 99, 0.1);
  --icon-shadow: rgba(239, 91, 99, 0.13);
}

.more-icon.finance {
  --icon-color: #16895c;
  --icon-bg: rgba(47, 184, 117, 0.12);
  --icon-shadow: rgba(47, 184, 117, 0.14);
}

.more-icon.donations {
  --icon-color: #c66b00;
  --icon-bg: rgba(246, 151, 42, 0.12);
  --icon-shadow: rgba(246, 151, 42, 0.14);
}

.more-icon.export {
  --icon-color: #1769e8;
  --icon-bg: rgba(52, 120, 246, 0.1);
  --icon-shadow: rgba(52, 120, 246, 0.14);
}

.more-icon.dataFix {
  --icon-color: #b65f00;
  --icon-bg: rgba(246, 151, 42, 0.1);
  --icon-shadow: rgba(246, 151, 42, 0.14);
}

.more-icon.personalRules {
  --icon-color: #0d7a66;
  --icon-bg: rgba(13, 122, 102, 0.1);
  --icon-shadow: rgba(13, 122, 102, 0.14);
}

.more-icon.aiCenter {
  --icon-color: #6d3ce8;
  --icon-bg: rgba(109, 60, 232, 0.1);
  --icon-shadow: rgba(109, 60, 232, 0.14);
}

.more-icon.community {
  --icon-color: #0f7bdc;
  --icon-bg: rgba(15, 123, 220, 0.1);
  --icon-shadow: rgba(15, 123, 220, 0.14);
}

.more-icon.album {
  --icon-color: #7c4dff;
  --icon-bg: rgba(124, 77, 255, 0.1);
  --icon-shadow: rgba(124, 77, 255, 0.14);
}

.more-icon.leave {
  --icon-color: #d47a11;
  --icon-bg: rgba(245, 159, 50, 0.12);
  --icon-shadow: rgba(245, 159, 50, 0.14);
}

.more-icon.duty {
  --icon-color: #008c8c;
  --icon-bg: rgba(0, 167, 167, 0.11);
  --icon-shadow: rgba(0, 167, 167, 0.14);
}

.more-icon.settings {
  --icon-color: #dd3f4a;
  --icon-bg: rgba(239, 91, 99, 0.1);
  --icon-shadow: rgba(239, 91, 99, 0.13);
}

.more-icon.adminCenter {
  --icon-color: #1769e8;
  --icon-bg: rgba(52, 120, 246, 0.12);
  --icon-shadow: rgba(52, 120, 246, 0.16);
}

.admin-center-page,
.admin-subpage {
  display: grid;
  gap: 18px;
}

.admin-center-section {
  display: grid;
  gap: 10px;
}

.admin-center-section h3 {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0;
}

.admin-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.admin-feature-card,
.admin-data-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 142px;
  border: 1px solid rgba(52, 120, 246, 0.14);
  border-radius: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.48);
  text-align: left;
  box-shadow: 0 14px 36px rgba(34, 62, 112, 0.08);
}

.admin-feature-card {
  cursor: pointer;
}

.admin-feature-card strong,
.admin-data-card h3 {
  color: var(--text);
  font-size: 21px;
  line-height: 1.1;
}

.admin-feature-card small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.admin-feature-card b {
  justify-self: start;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--blue);
  background: rgba(52, 120, 246, 0.1);
  font-size: 12px;
}

.admin-feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: var(--blue);
  background: rgba(52, 120, 246, 0.1);
}

.admin-feature-icon svg {
  width: 25px;
  height: 25px;
}

.album-page {
  overflow: visible;
}

.album-event-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.album-page-heading {
  align-items: center;
}

.album-page-actions {
  justify-content: flex-end;
}

.album-create-trigger {
  min-height: 42px;
  padding: 9px 16px;
}

.album-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.album-library {
  display: grid;
  gap: 14px;
}

.album-library h2 {
  margin: 2px 0 0;
}

.album-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.album-event-card {
  display: block;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--text);
  text-align: left;
  box-shadow: 0 12px 28px rgba(34, 62, 112, 0.06);
  cursor: pointer;
}

.album-event-card:hover,
.album-event-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(52, 120, 246, 0.36);
  box-shadow: 0 16px 36px rgba(52, 120, 246, 0.14);
}

.album-event-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(52, 120, 246, 0.14), rgba(52, 199, 89, 0.1));
}

.album-event-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-event-placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  color: var(--muted);
}

.album-event-placeholder .more-icon {
  width: 58px;
  height: 58px;
}

.album-event-placeholder small {
  font-weight: 800;
}

.album-visibility-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(15, 23, 42, 0.48);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(14px);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.album-event-body {
  display: grid;
  gap: 5px;
  padding: 12px 13px 14px;
}

.album-event-body strong {
  font-size: 18px;
  line-height: 1.15;
}

.album-event-body small {
  color: var(--muted);
  font-weight: 760;
}

.album-detail-view {
  display: grid;
}

.album-detail-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(52, 120, 246, 0.14);
  border-radius: 26px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 16px 38px rgba(34, 62, 112, 0.08);
}

.album-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.album-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.album-detail-head h2 {
  margin: 2px 0 4px;
  font-size: clamp(26px, 5vw, 42px);
}

.album-back-to-list {
  margin-bottom: 8px;
}

.album-detail-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.album-file-picker {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 12px 14px;
  overflow: hidden;
  border: 1px dashed rgba(52, 120, 246, 0.28);
  border-radius: 20px;
  background: rgba(52, 120, 246, 0.07);
  cursor: pointer;
}

.album-file-picker input {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.album-file-picker span {
  pointer-events: none;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.album-file-picker small {
  pointer-events: none;
  color: var(--muted);
  font-weight: 750;
}

.album-file-picker.disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.album-upload-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  background: rgba(31, 43, 68, 0.3);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.album-upload-dialog {
  width: min(680px, 100%);
  max-height: min(84dvh, 760px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background: rgba(248, 251, 255, 0.92);
  box-shadow: 0 30px 80px rgba(24, 43, 82, 0.24);
}

.album-upload-dialog-head,
.album-upload-summary,
.album-upload-dialog-actions,
.album-upload-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.album-upload-dialog-head h2 {
  margin: 2px 0 0;
}

.album-upload-summary {
  padding: 0 2px;
  color: var(--muted);
}

.album-upload-summary strong {
  color: var(--text);
}

.album-upload-queue {
  display: grid;
  gap: 7px;
  max-height: 285px;
  overflow: auto;
}

.album-upload-item {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(99, 117, 151, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.album-upload-item.error {
  border-color: rgba(255, 59, 48, 0.3);
  background: rgba(255, 59, 48, 0.07);
}

.album-upload-item.uploading {
  border-color: rgba(52, 120, 246, 0.32);
  background: rgba(52, 120, 246, 0.08);
}

.album-upload-item.success {
  border-color: rgba(52, 199, 89, 0.3);
  background: rgba(52, 199, 89, 0.08);
}

.album-upload-item-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.album-upload-item-copy strong,
.album-upload-item-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-upload-item-copy small {
  color: var(--muted);
}

.album-upload-item-copy .album-upload-error {
  color: #d52f2f;
}

.album-upload-progress {
  padding: 10px 12px;
  border-radius: 14px;
  color: #185fc3;
  background: rgba(52, 120, 246, 0.09);
}

.album-upload-empty {
  min-height: 86px;
}

.album-upload-dialog-actions {
  justify-content: flex-end;
}

.album-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
}

.album-photo-card {
  position: relative;
  margin: 0;
  min-width: 0;
}

.album-photo-card > button {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  padding: 0;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 12px 24px rgba(34, 62, 112, 0.08);
  cursor: pointer;
}

.album-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-image-fallback {
  display: none;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 12px;
  color: var(--muted);
  font-weight: 850;
  background: rgba(226, 232, 242, 0.68);
}

.album-photo-card > button.image-error img {
  display: none;
}

.album-photo-card > button.image-error .album-image-fallback {
  display: grid;
}

.album-photo-card figcaption {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.album-photo-meta {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.album-photo-meta strong,
.album-photo-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-photo-meta strong {
  color: var(--text);
  font-size: 12px;
}

.album-photo-actions {
  display: flex;
  gap: 5px;
}

.album-photo-actions button {
  flex: 1;
  min-height: 32px;
  padding: 5px 8px;
  border-radius: 10px;
  font-size: 12px;
}

.my-album-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.my-album-stats .metric {
  min-height: 112px;
}

.my-album-stats .metric strong {
  font-size: clamp(20px, 3vw, 30px);
}

.my-album-heading {
  align-items: end;
}

.my-album-heading h2 {
  margin: 2px 0 0;
}

.my-album-photo-card figcaption {
  display: grid;
  gap: 2px;
  align-items: start;
}

.my-album-photo-card figcaption strong,
.my-album-photo-card figcaption time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-album-photo-card figcaption strong {
  color: var(--text);
  font-size: 13px;
}

.my-album-photo-card figcaption time {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.my-album-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 300px;
  align-content: center;
  border: 1px dashed rgba(52, 120, 246, 0.24);
  border-radius: 24px;
  padding: 28px 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.34);
}

.my-album-empty h2,
.my-album-empty p {
  margin: 0;
}

.my-album-empty .button {
  margin-top: 8px;
}

.my-album-empty-icon .my-list-icon {
  width: 54px;
  height: 54px;
  color: var(--blue);
  background: rgba(52, 120, 246, 0.1);
}

.my-album-empty-icon .my-list-icon svg {
  width: 29px;
  height: 29px;
}

.my-share-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.my-share-stats .metric {
  min-height: 108px;
}

.my-share-stats .metric strong {
  font-size: clamp(20px, 3vw, 30px);
}

.my-share-filter {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(100, 116, 139, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.my-share-filter button {
  min-width: 72px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 7px 16px;
  color: var(--muted);
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

.my-share-filter button.active {
  color: #fff;
  background: linear-gradient(135deg, #3478f6, #28b79f);
  box-shadow: 0 8px 18px rgba(52, 120, 246, 0.2);
}

.my-share-timeline {
  position: relative;
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.my-share-timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 6px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(rgba(52, 120, 246, 0.4), rgba(52, 199, 89, 0.12));
}

.my-share-entry {
  position: relative;
}

.my-share-dot {
  position: absolute;
  top: 20px;
  left: -20px;
  width: 12px;
  height: 12px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.2);
}

.my-share-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(100, 116, 139, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 10px 24px rgba(34, 62, 112, 0.06);
}

.my-share-card time {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.my-share-card .row > div > strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 22px;
}

.my-share-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.my-share-items span {
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  background: rgba(52, 120, 246, 0.07);
  font-size: 12px;
  font-weight: 800;
}

.my-share-items b {
  color: var(--blue);
}

.my-share-copy {
  margin: 0;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.my-share-link {
  justify-self: start;
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
}

.my-share-empty {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-height: 300px;
  border: 1px dashed rgba(52, 120, 246, 0.24);
  border-radius: 24px;
  padding: 28px 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.34);
}

.my-share-empty h2,
.my-share-empty p {
  margin: 0;
}

.my-share-empty .my-list-icon {
  width: 54px;
  height: 54px;
  color: var(--blue);
  background: rgba(52, 120, 246, 0.1);
}

.my-share-empty .button {
  margin-top: 8px;
}

.danger.subtle {
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.album-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(18px);
}

.album-preview-dialog {
  position: relative;
  display: grid;
  gap: 10px;
  width: min(920px, 100%);
  max-height: 88vh;
  padding: 12px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 26px 72px rgba(15, 23, 42, 0.25);
}

.album-preview-dialog img {
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 20px;
}

.album-preview-dialog .icon-button {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 2;
}

.admin-about-card {
  display: grid;
  gap: 12px;
}

.admin-storage-card {
  display: grid;
  gap: 14px;
}

.admin-storage-card .metric strong {
  font-size: 20px;
  word-break: break-all;
}

.notice {
  border-radius: 18px;
  padding: 12px 14px;
  font-weight: 800;
  line-height: 1.35;
}

.notice.success {
  color: #16834b;
  background: rgba(52, 199, 89, 0.12);
  border: 1px solid rgba(52, 199, 89, 0.22);
}

.notice.warning {
  color: #b76a00;
  background: rgba(255, 149, 0, 0.12);
  border: 1px solid rgba(255, 149, 0, 0.24);
}

.admin-check-line {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.compact-dashboard .metric {
  min-height: 96px;
}

.dashboard-home {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.86), rgba(255,255,255,0.58)),
    radial-gradient(circle at 92% 0%, rgba(52,120,246,0.16), transparent 18rem);
}

.dashboard-home > .row:first-of-type {
  padding-right: 156px;
}

.dashboard-meeting-float {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid rgba(255,255,255,0.62);
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  background:
    radial-gradient(circle at 28% 20%, rgba(255,255,255,0.28), transparent 28%),
    linear-gradient(145deg, rgba(52,120,246,0.96), rgba(35,148,236,0.82)),
    rgba(255,255,255,0.34);
  box-shadow:
    0 18px 34px rgba(52,120,246,0.22),
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -10px 24px rgba(255,255,255,0.06);
  backdrop-filter: blur(18px) saturate(1.25);
}

.dashboard-meeting-float::after {
  content: none;
}

.daily-quote {
  max-width: min(640px, 100%);
  margin-top: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.dashboard-personal-hero {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.dashboard-score-orb {
  width: 132px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 28% 20%, rgba(255,255,255,0.58), transparent 24%),
    linear-gradient(145deg, rgba(52,120,246,0.98), rgba(245,159,50,0.86));
  box-shadow:
    0 24px 42px rgba(52,120,246,0.2),
    inset 0 1px 0 rgba(255,255,255,0.5);
}

.dashboard-score-orb.passed {
  background:
    radial-gradient(circle at 28% 20%, rgba(255,255,255,0.62), transparent 24%),
    linear-gradient(145deg, rgba(52,120,246,0.96), rgba(47,184,117,0.88));
}

.dashboard-score-orb span,
.dashboard-score-orb small {
  font-size: 13px;
  font-weight: 900;
  opacity: 0.82;
}

.dashboard-score-orb strong {
  font-size: 52px;
  line-height: 0.95;
}

.dashboard-personal-main {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.dashboard-personal-main h3 {
  margin: 0;
  font-size: 28px;
}

.dashboard-score-line {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(101,112,138,0.16);
  box-shadow: inset 0 1px 2px rgba(35,52,91,0.08);
}

.dashboard-score-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.dashboard-personal-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-personal-stats span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.56);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  background: rgba(255,255,255,0.44);
}

.dashboard-personal-stats strong {
  color: var(--text);
}

.dashboard-priority-charts {
  align-items: stretch;
}

.dashboard-heatmap {
  grid-template-columns: repeat(14, minmax(12px, 1fr));
}

.dashboard-item-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-item-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.44);
}

.dashboard-item-card .row {
  gap: 6px;
}

.dashboard-item-card strong,
.dashboard-item-card span {
  font-size: 13px;
  font-weight: 900;
}

.dashboard-item-card small {
  color: var(--muted);
  font-weight: 800;
}

.dashboard-trend {
  height: 92px;
  margin-top: 10px;
}

.dashboard-trend .trend-bar {
  min-height: 62px;
}

.dashboard-role-sections {
  display: grid;
  gap: 16px;
}

.dashboard-action-panel {
  display: grid;
  gap: 4px;
}

.dashboard-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-action-card {
  min-height: 106px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text);
  text-align: left;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.7), rgba(255,255,255,0.34));
  box-shadow: 0 14px 30px rgba(35,52,91,0.08);
}

.dashboard-action-card.warn {
  border-color: rgba(245,159,50,0.34);
  background: rgba(245,159,50,0.1);
}

.dashboard-action-card.danger {
  border-color: rgba(239,91,99,0.34);
  background: rgba(239,91,99,0.1);
}

.dashboard-action-card span,
.dashboard-action-card small {
  color: var(--muted);
  font-weight: 850;
}

.dashboard-action-card strong {
  font-size: 24px;
}

.meeting-settings-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.72), rgba(255,255,255,0.38)),
    radial-gradient(circle at 95% 0%, rgba(52,120,246,0.18), transparent 12rem);
}

.meeting-settings-card h3 {
  margin-bottom: 4px;
}

.danger-text {
  color: var(--red);
}

.dashboard-today-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.today-action {
  min-height: 108px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text);
  background: rgba(255,255,255,0.52);
  text-align: left;
  box-shadow: 0 12px 32px rgba(35,52,91,0.08);
}

.today-action.primary {
  color: #fff;
  background: linear-gradient(145deg, rgba(52,120,246,0.94), rgba(47,184,117,0.78));
}

.today-action span,
.today-action small {
  color: inherit;
  opacity: 0.74;
  font-weight: 800;
}

.today-action strong {
  font-size: 24px;
}

.todo-row,
.data-fix-row,
.template-share-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255,255,255,0.48);
  text-align: left;
}

.todo-row.warn {
  border-color: rgba(245,159,50,0.34);
  background: rgba(245,159,50,0.08);
}

.todo-row.danger {
  border-color: rgba(239,91,99,0.34);
  background: rgba(239,91,99,0.08);
}

.todo-row p,
.data-fix-row p,
.template-share-card p {
  margin-bottom: 0;
}

.dashboard-duty-card {
  display: grid;
  gap: 12px;
}

.dashboard-duty-card > strong {
  font-size: 24px;
}

.home-duty-workbench {
  overflow: hidden;
}

.home-duty-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(92,105,132,0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 12%, rgba(52,120,246,0.14), transparent 36%),
    radial-gradient(circle at 10% 0%, rgba(47,184,117,0.14), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,0.7), rgba(255,255,255,0.34));
}

.home-duty-hero h2 {
  margin-bottom: 4px;
}

.home-duty-score {
  min-width: 94px;
  padding: 10px 12px;
  border-radius: 20px;
  color: var(--text);
  text-align: center;
  background: rgba(255,255,255,0.54);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.74), 0 12px 28px rgba(35,52,91,0.08);
}

.home-duty-score.ready {
  color: #fff;
  background: linear-gradient(145deg, rgba(52,120,246,0.94), rgba(47,184,117,0.76));
}

.home-duty-score span {
  display: block;
  color: inherit;
  font-size: 12px;
  font-weight: 850;
  opacity: 0.72;
}

.home-duty-score strong {
  display: block;
  margin-top: 2px;
  font-size: 22px;
  line-height: 1;
}

.home-duty-priority-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-duty-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 76px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text);
  text-align: left;
  background: rgba(255,255,255,0.5);
  box-shadow: 0 12px 26px rgba(35,52,91,0.07);
}

.home-duty-row.warn {
  border-color: rgba(245,159,50,0.3);
  background: linear-gradient(145deg, rgba(245,159,50,0.14), rgba(255,255,255,0.46));
}

.home-duty-row.danger {
  border-color: rgba(239,91,99,0.3);
  background: linear-gradient(145deg, rgba(239,91,99,0.14), rgba(255,255,255,0.46));
}

.home-duty-value {
  min-width: 48px;
  padding: 9px 8px;
  border-radius: 16px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  background: rgba(52,120,246,0.1);
}

.home-duty-row.warn .home-duty-value {
  color: var(--orange);
  background: rgba(245,159,50,0.13);
}

.home-duty-row.danger .home-duty-value {
  color: var(--red);
  background: rgba(239,91,99,0.13);
}

.home-duty-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.home-duty-copy strong,
.home-duty-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-duty-copy small {
  color: var(--muted);
  font-weight: 760;
}

.home-duty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-duty-actions .button,
.home-duty-actions .ghost {
  flex: 1 1 132px;
  min-height: 44px;
}

.duty-dashboard-panel {
  overflow: hidden;
}

.duty-command {
  display: grid;
  gap: 11px;
  max-width: 1080px;
  margin-inline: auto;
  padding-bottom: 28px;
}

.duty-command-hero,
.duty-block,
.duty-tools-details {
  border: 1px solid rgba(255,255,255,0.56);
  border-radius: 26px;
  background:
    radial-gradient(circle at 94% 4%, rgba(47,184,117,0.15), transparent 38%),
    radial-gradient(circle at 8% 0%, rgba(52,120,246,0.16), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,0.72), rgba(255,255,255,0.42));
  box-shadow: 0 18px 52px rgba(35,52,91,0.12);
  backdrop-filter: blur(30px) saturate(1.35);
}

body.dark .duty-command-hero,
body.dark .duty-block,
body.dark .duty-tools-details {
  border-color: rgba(255,255,255,0.1);
  background:
    radial-gradient(circle at 94% 4%, rgba(47,184,117,0.12), transparent 40%),
    radial-gradient(circle at 8% 0%, rgba(52,120,246,0.13), transparent 40%),
    linear-gradient(145deg, rgba(38,48,68,0.78), rgba(21,29,44,0.58));
}

.duty-command-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 210px;
  padding: 22px;
  overflow: hidden;
}

.duty-command-copy h2 {
  margin-bottom: 6px;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: 0;
}

.duty-week-key {
  margin: 0;
  color: var(--blue);
  font-size: 18px;
  font-weight: 900;
}

.duty-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.duty-countdown-pill {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid rgba(52,120,246,0.18);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(52,120,246,0.1);
  font-size: 13px;
  font-weight: 900;
}

.duty-countdown-pill.handoff {
  border-color: rgba(245, 159, 50, 0.48);
  color: #9a4d00;
  background: rgba(245, 159, 50, 0.24);
  box-shadow: 0 8px 20px rgba(245, 159, 50, 0.14);
}

body.dark .duty-countdown-pill.handoff {
  color: #ffd19a;
  background: rgba(245, 159, 50, 0.22);
}

.duty-person-line {
  margin: 7px 0 0;
}

.duty-current-focus {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  margin: 13px 0 0;
}

.duty-current-focus span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.duty-current-focus strong {
  font-size: 18px;
}

.duty-progress-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

.duty-progress-labels span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.48);
  color: var(--muted);
  font-weight: 800;
}

.duty-progress-labels strong {
  color: var(--text);
}

.duty-hero-notice {
  width: fit-content;
  margin: 12px 0 0;
  padding: 8px 11px;
  border-radius: 12px;
  color: #126a4b;
  background: rgba(47,184,117,0.12);
  font-size: 13px;
  font-weight: 900;
}

.duty-hero-notice.danger {
  color: var(--red);
  background: rgba(239,91,99,0.12);
}

.duty-command-ring {
  display: grid;
  place-items: center;
  width: 166px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--green) var(--progress), rgba(111,128,160,0.16) 0);
  box-shadow: 0 18px 46px rgba(47,184,117,0.2);
}

.duty-command-ring::before {
  content: "";
  grid-area: 1 / 1;
  width: 124px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--glass-strong) 92%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.duty-command-ring div {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  text-align: center;
}

.duty-command-ring strong,
.duty-command-ring span {
  display: block;
}

.duty-command-ring strong {
  font-size: 32px;
  line-height: 1;
}

.duty-command-ring span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.duty-block {
  padding: 15px 17px;
}

.duty-forecast {
  padding-top: 12px;
}

.duty-forecast-heading,
.duty-forecast-date-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.duty-forecast-heading h3 {
  margin: 0;
  font-size: 26px;
}

.duty-forecast-heading > span,
.duty-forecast-date-title > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.duty-forecast-heading .duty-remaining-pill {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(245, 159, 50, 0.2);
  border-radius: 999px;
  color: #b96a08;
  background: rgba(245, 159, 50, 0.13);
  font-size: 12px;
  line-height: 1;
}

.duty-forecast-heading .duty-remaining-pill.complete {
  color: #218a59;
  border-color: rgba(52, 199, 89, 0.2);
  background: rgba(52, 199, 89, 0.12);
}

.duty-forecast-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(46px, 1fr));
  margin-top: 10px;
  border-bottom: 1px solid var(--line);
}

.duty-forecast-days button {
  position: relative;
  min-width: 0;
  min-height: 62px;
  display: grid;
  place-content: center;
  gap: 4px;
  padding: 7px 2px 8px;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.duty-forecast-days button::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: transparent;
}

.duty-forecast-days button strong,
.duty-forecast-days button span {
  display: block;
  white-space: nowrap;
  text-align: center;
}

.duty-forecast-days button strong {
  font-size: 13px;
  font-weight: 850;
}

.duty-forecast-days button span {
  color: var(--orange);
  font-size: 16px;
  font-weight: 900;
}

.duty-forecast-days button.past strong,
.duty-forecast-days button.past span {
  color: rgba(101, 112, 138, 0.62);
}

.duty-forecast-days button.today strong,
.duty-forecast-days button.today span {
  color: #34c759;
}

.duty-forecast-days button.future strong,
.duty-forecast-days button.future span {
  color: var(--orange);
}

.duty-forecast-days button span.done {
  color: rgba(111, 128, 160, 0.38);
}

.duty-forecast-days button.active {
  color: var(--text);
  background: rgba(111, 128, 160, 0.08);
}

.duty-forecast-days button.active::before {
  background: currentColor;
}

.duty-forecast-days button.today.active {
  background:
    linear-gradient(180deg, rgba(52, 199, 89, 0.13), rgba(52, 199, 89, 0.045)),
    rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 16px rgba(52, 199, 89, 0.08);
}

.duty-forecast-days button.today.active::before {
  background: #34c759;
}

.duty-day-progress {
  position: relative;
  display: block;
  width: min(34px, 72%);
  height: 3px;
  margin: 1px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(111, 128, 160, 0.16);
}

.duty-day-progress b {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--day-progress);
  border-radius: inherit;
  background: var(--orange);
}

.duty-forecast-days button.past .duty-day-progress b {
  background: rgba(101, 112, 138, 0.58);
}

.duty-forecast-days button.past.all-done .duty-day-progress b,
.duty-forecast-days button.today .duty-day-progress b {
  background: #34c759;
}

.duty-forecast-date-title {
  padding: 18px 2px 10px;
}

.duty-forecast-date-title strong {
  font-size: 21px;
  letter-spacing: 0;
}

.duty-forecast-list {
  display: grid;
  border-top: 1px solid rgba(111, 128, 160, 0.12);
}

.duty-forecast-task {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 66px;
  border-bottom: 1px solid rgba(111, 128, 160, 0.14);
}

.duty-forecast-check {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1.5px solid rgba(111, 128, 160, 0.44);
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.duty-forecast-task.done .duty-forecast-check {
  border-color: var(--green);
  background: var(--green);
}

.duty-forecast-task.alert .duty-forecast-check {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(239, 91, 99, 0.08);
}

.duty-forecast-task.pending .duty-forecast-check {
  border-color: var(--orange);
}

.duty-forecast-task > button {
  min-width: 0;
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 2px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.duty-forecast-task > button > span:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.duty-forecast-task strong,
.duty-forecast-task small,
.duty-forecast-task-meta b,
.duty-forecast-task-meta em {
  display: block;
}

.duty-forecast-task strong {
  font-size: 15px;
}

.duty-forecast-task small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.duty-forecast-task.done strong,
.duty-forecast-task.done small {
  color: rgba(111, 128, 160, 0.62);
}

.duty-forecast-task-meta {
  flex: 0 0 92px;
  width: 92px;
  text-align: right;
}

.duty-forecast-task-meta b {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  font-size: 14px;
  white-space: nowrap;
}

.duty-forecast-task-meta em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.duty-status-dot {
  display: inline-block;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.duty-forecast-task-meta.done .duty-status-dot {
  background: #34c759;
}

.duty-forecast-task-meta.not_due .duty-status-dot {
  border: 1px solid rgba(101, 112, 138, 0.45);
  background: rgba(101, 112, 138, 0.18);
}

.duty-forecast-task-meta.summary .duty-status-dot {
  background: var(--blue);
}

.duty-forecast-task-meta.alert .duty-status-dot {
  background: var(--red);
}

.duty-forecast-task.alert .duty-forecast-task-meta em {
  color: var(--red);
}

.duty-forecast-task.pending .duty-forecast-task-meta em {
  color: var(--orange);
}

.duty-completed-toggle {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 2px;
  border: 0;
  border-bottom: 1px solid rgba(111, 128, 160, 0.12);
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.duty-completed-toggle span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 850;
}

.duty-completed-toggle span i {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #34c759;
  font-size: 11px;
  font-style: normal;
}

.duty-completed-toggle > b {
  font-size: 23px;
  line-height: 1;
  transition: transform 160ms ease;
}

.duty-completed-toggle.expanded > b {
  transform: rotate(90deg);
}

.duty-completed-list {
  display: grid;
}

.duty-tools-dashboard {
  display: grid;
  gap: 10px;
  padding: 14px 14px 0;
}

.duty-tools-dashboard .duty-block {
  box-shadow: none;
}

.duty-section-heading,
.duty-card-top,
.duty-inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.duty-section-heading {
  margin-bottom: 10px;
}

.duty-section-heading h3,
.duty-section-heading p {
  margin-bottom: 0;
}

.duty-section-heading h3 {
  font-size: 22px;
}

.duty-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(111,128,160,0.12);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.duty-count-badge.ok {
  color: var(--green);
  background: rgba(47,184,117,0.13);
}

.duty-count-badge.warn {
  color: #b96b00;
  background: rgba(245,159,50,0.15);
}

.duty-count-badge.danger {
  color: var(--red);
  background: rgba(239,91,99,0.14);
}

.duty-command-card button:active,
.duty-cockpit-card:active,
.duty-quick-trigger:active {
  transform: scale(0.975);
}

.duty-inline-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.duty-inline-actions > * {
  min-height: 42px;
}

.duty-clear-state {
  display: grid;
  gap: 5px;
  padding: 18px;
  border-radius: 18px;
  color: var(--green);
  background: rgba(47,184,117,0.11);
}

.duty-clear-state span {
  color: var(--muted);
}

.duty-task-grid,
.duty-week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 10px;
}

.duty-week-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.duty-task-grid > .duty-clear-state {
  grid-column: 1 / -1;
}

.duty-command-card {
  min-height: 148px;
  display: grid;
  grid-template-rows: auto auto minmax(36px, 1fr) auto;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.44);
}

.duty-command-card.warn {
  border-color: rgba(245,159,50,0.34);
  background: linear-gradient(145deg, rgba(245,159,50,0.1), rgba(255,255,255,0.42));
}

.duty-command-card.danger {
  border-color: rgba(239,91,99,0.34);
  background: linear-gradient(145deg, rgba(239,91,99,0.09), rgba(255,255,255,0.42));
}

.duty-command-card.ok {
  border-color: rgba(47,184,117,0.25);
}

.duty-command-card.not_due {
  border-color: rgba(111,128,160,0.2);
  background: rgba(255,255,255,0.34);
}

.duty-command-card.info {
  border-color: rgba(52,120,246,0.28);
  background: linear-gradient(145deg, rgba(52,120,246,0.09), rgba(255,255,255,0.42));
}

.duty-command-card.active {
  border-color: rgba(47,184,117,0.32);
  background: linear-gradient(145deg, rgba(47,184,117,0.1), rgba(255,255,255,0.42));
}

.duty-command-card.primary {
  border-color: rgba(52,120,246,0.46);
  background:
    radial-gradient(circle at 100% 0%, rgba(47,184,117,0.14), transparent 42%),
    linear-gradient(145deg, rgba(52,120,246,0.14), rgba(255,255,255,0.48));
  box-shadow: 0 14px 32px rgba(52,120,246,0.14);
}

.duty-command-card.primary .duty-card-value {
  color: var(--blue);
  font-size: 25px;
}

.duty-card-value {
  display: block;
  font-size: 21px;
  line-height: 1.15;
}

.duty-command-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.duty-command-card .mini-button {
  width: 100%;
}

.duty-state-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 25px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(111,128,160,0.11);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.duty-state-tag.not_due,
.duty-state-tag.idle {
  color: #778196;
  background: rgba(111,128,160,0.12);
}

.duty-state-tag.upcoming {
  color: var(--blue);
  background: rgba(52,120,246,0.12);
}

.duty-state-tag.active,
.duty-state-tag.done {
  color: #16845d;
  background: rgba(47,184,117,0.13);
}

.duty-state-tag.pending {
  color: #b96b00;
  background: rgba(245,159,50,0.15);
}

.duty-state-tag.alert {
  color: var(--red);
  background: rgba(239,91,99,0.14);
}

.duty-state-tag.closed {
  color: #fff;
  background: #6b7280;
}

.duty-completed-tasks {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.duty-completed-tasks > summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.duty-completed-tasks .duty-task-grid {
  margin-top: 10px;
}

.duty-cockpit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.duty-cockpit-card {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255,255,255,0.44);
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.duty-cockpit-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.duty-cockpit-card strong {
  font-size: 25px;
  line-height: 1;
}

.duty-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.duty-summary-grid > span {
  min-height: 66px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.4);
}

.duty-summary-grid > span.danger {
  border-color: rgba(239,91,99,0.32);
  color: var(--red);
  background: rgba(239,91,99,0.09);
}

.duty-summary-grid small {
  color: var(--muted);
  font-weight: 800;
}

.duty-summary-grid strong {
  font-size: 19px;
}

.duty-summary-report {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.duty-summary-report-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.duty-summary-report-heading label {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.duty-summary-report-heading span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-align: right;
}

.duty-summary-report textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 190px;
  resize: vertical;
  line-height: 1.7;
  background: var(--glass-strong);
}

.duty-complete-button {
  width: 100%;
  margin: 10px 0;
}

.duty-complete-button.disabled {
  color: var(--muted);
  background: rgba(111,128,160,0.16);
  box-shadow: none;
}

.duty-summary-warning {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(239,91,99,0.26);
  border-radius: 16px;
  color: var(--red);
  background: rgba(239,91,99,0.08);
}

.duty-summary-warning span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

body.dark .duty-summary-report {
  background: rgba(18, 27, 45, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.duty-quick-trigger {
  position: sticky;
  bottom: calc(110px + env(safe-area-inset-bottom));
  z-index: 8;
  justify-self: center;
  min-height: 50px;
  padding: 10px 22px;
  border: 1px solid rgba(255,255,255,0.56);
  border-radius: 999px;
  color: #fff;
  background: rgba(52,120,246,0.9);
  box-shadow: 0 18px 38px rgba(52,120,246,0.28);
  backdrop-filter: blur(22px) saturate(1.5);
  font-weight: 900;
}

.duty-tools-details {
  overflow: hidden;
}

.duty-tools-details > summary {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
}

.duty-tools-details > summary::-webkit-details-marker {
  display: none;
}

.duty-tools-details > summary span,
.duty-tools-details > summary strong,
.duty-tools-details > summary small {
  display: block;
}

.duty-tools-details > summary small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.duty-tools-details > summary b {
  flex: 0 0 auto;
  color: var(--blue);
  white-space: nowrap;
}

.duty-tools-details[open] > summary {
  border-bottom: 1px solid var(--line);
}

.duty-tools-details[open] > summary b {
  font-size: 0;
}

.duty-tools-details[open] > summary b::after {
  content: "收起";
  font-size: 14px;
}

.duty-tools-details > .grid {
  padding: 0 14px 14px;
}

.duty-quick-backdrop {
  z-index: 80;
}

.duty-quick-sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(620px, 100%);
  max-height: min(60vh, 620px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
  border: 1px solid rgba(255,255,255,0.58);
  border-radius: 28px 28px 0 0;
  background: var(--glass-strong);
  box-shadow: 0 -24px 70px rgba(35,52,91,0.22);
  backdrop-filter: blur(40px) saturate(1.6);
  transform: translateX(-50%);
  overflow: hidden;
  animation: sheetUp 0.28s cubic-bezier(.2,.8,.2,1);
}

.duty-quick-sections {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: 16px;
  padding: 2px 2px 4px;
}

.duty-quick-section {
  display: grid;
  gap: 10px;
}

.duty-quick-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px;
}

.duty-quick-section-head strong {
  font-size: 15px;
}

.duty-quick-section-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.duty-incomplete-backdrop {
  z-index: 82;
}

.duty-incomplete-sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(520px, 100%);
  padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
  border: 1px solid rgba(255,255,255,0.58);
  border-radius: 28px 28px 0 0;
  background: var(--glass-strong);
  box-shadow: 0 -24px 70px rgba(35,52,91,0.22);
  backdrop-filter: blur(40px) saturate(1.6);
  transform: translateX(-50%);
  animation: sheetUp 0.28s cubic-bezier(.2,.8,.2,1);
}

.duty-incomplete-sheet ol {
  display: grid;
  gap: 7px;
  margin: 14px 0;
  padding-left: 24px;
}

.duty-incomplete-sheet li {
  font-weight: 800;
}

.duty-incomplete-sheet .button {
  width: 100%;
}

.duty-sheet-handle {
  width: 42px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(111,128,160,0.26);
}

.duty-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.duty-quick-grid button,
.duty-quick-card {
  min-height: 112px;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text);
  background:
    radial-gradient(circle at 100% 0%, rgba(52, 120, 246, 0.1), transparent 46%),
    rgba(255,255,255,0.58);
  box-shadow: 0 12px 28px rgba(35, 52, 91, 0.08);
  font-weight: 900;
  text-align: left;
}

.duty-quick-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 15px;
  background: rgba(52, 120, 246, 0.12);
  font-size: 22px;
}

.duty-quick-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  width: 100%;
}

.duty-quick-copy strong,
.duty-quick-copy small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.duty-quick-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.duty-quick-usage {
  color: var(--blue);
}

.duty-quick-card b {
  justify-self: end;
  margin-top: auto;
  color: var(--muted);
  font-size: 20px;
}

body.dark .duty-quick-grid button,
body.dark .duty-quick-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(83, 141, 255, 0.16), transparent 46%),
    rgba(255, 255, 255, 0.06);
}

body.dark .duty-quick-icon {
  background: rgba(115, 159, 255, 0.16);
}

.duty-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(92,105,132,0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47,184,117,0.14), transparent 44%),
    linear-gradient(145deg, rgba(255,255,255,0.66), rgba(255,255,255,0.34));
}

.duty-hero h2 {
  margin-bottom: 6px;
}

.duty-progress-orb {
  display: grid;
  place-items: center;
  width: 104px;
  aspect-ratio: 1;
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,0.34), transparent 28%),
    linear-gradient(145deg, rgba(52,120,246,0.94), rgba(47,184,117,0.86));
  box-shadow: 0 18px 42px rgba(52,120,246,0.2);
  text-align: center;
}

.duty-progress-orb strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.duty-progress-orb span {
  font-size: 12px;
  font-weight: 900;
}

.duty-metrics {
  gap: 9px;
}

.duty-metrics .metric {
  min-height: 92px;
  padding: 12px;
}

.duty-metrics .metric strong {
  font-size: 25px;
}

.duty-priority-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.duty-priority-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 142px;
}

.duty-priority-card strong {
  display: block;
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.18;
}

.duty-priority-card p {
  margin: 6px 0 0;
}

.data-fix-results,
.template-admin-list,
.template-category-grid {
  display: grid;
  gap: 10px;
}

.data-fix-row {
  grid-template-columns: minmax(88px, auto) minmax(0, 1fr) auto;
}

.data-fix-row span,
.data-fix-row small {
  color: var(--muted);
  font-weight: 800;
}

.template-category {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.34);
}

.template-share-card {
  grid-template-columns: minmax(0, 1fr) auto;
}

.template-admin-card {
  display: grid;
  gap: 10px;
}

.confirm-panel {
  border-color: rgba(52, 120, 246, 0.38);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.82), rgba(255,255,255,0.52)),
    radial-gradient(circle at 92% 0%, rgba(52,120,246,0.16), transparent 18rem);
}

body.dark .confirm-panel {
  background:
    linear-gradient(145deg, rgba(35,44,64,0.88), rgba(21,29,45,0.58)),
    radial-gradient(circle at 92% 0%, rgba(52,120,246,0.2), transparent 18rem);
}

.success-panel {
  border-color: rgba(47, 184, 117, 0.38);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.82), rgba(255,255,255,0.52)),
    radial-gradient(circle at 92% 0%, rgba(47,184,117,0.18), transparent 18rem);
}

.import-record-card {
  display: grid;
  gap: 12px;
}

.compact-import-list {
  gap: 8px;
}

.single-review-list {
  gap: 0;
}

.single-review-shell {
  display: grid;
  gap: 10px;
}

.single-review-top {
  position: sticky;
  top: 74px;
  z-index: 6;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(116, 128, 154, 0.16);
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 12px 34px rgba(35,52,91,0.1);
  backdrop-filter: blur(20px) saturate(1.3);
}

body.dark .single-review-top {
  background: rgba(28,36,52,0.78);
}

.single-review-top div {
  display: grid;
  justify-items: center;
  line-height: 1.15;
}

.single-review-top strong {
  font-size: 16px;
}

.import-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: -2px 0 10px;
}

.draft-notice,
.import-tools,
.import-recap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(116, 128, 154, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
}

.impact-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: -2px 0 12px;
}

.impact-strip span,
.compare-card,
.backup-item,
.archive-link,
.mini-status {
  border: 1px solid rgba(116, 128, 154, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
}

.impact-strip span {
  display: grid;
  gap: 2px;
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
}

.impact-strip strong {
  color: var(--text);
  font-size: 20px;
}

.import-blocking-note {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 4px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(116, 128, 154, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
}

.import-blocking-note.warn {
  border-color: rgba(239, 91, 99, 0.36);
  color: var(--red);
  background: rgba(239, 91, 99, 0.08);
}

.import-blocking-note.ok {
  border-color: rgba(47, 184, 117, 0.3);
  color: #248c5a;
  background: rgba(47, 184, 117, 0.08);
}

.import-blocking-note span {
  color: var(--muted);
  font-weight: 800;
}

.duplicate-skip-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(245, 159, 50, 0.28);
  border-radius: 16px;
  background: rgba(245, 159, 50, 0.08);
}

.duplicate-skip-note.in-list {
  margin: 0;
  min-height: 96px;
  border-style: dashed;
}

.duplicate-skip-note strong {
  display: block;
  color: #b96d10;
  font-size: 14px;
}

.duplicate-skip-note span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.import-mapping-card {
  display: grid;
  gap: 12px;
}

.draft-notice p {
  margin: 4px 0 0;
}

.import-tools {
  margin: 0 0 10px;
  align-items: stretch;
}

.tool-group {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.tool-group > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tool-group select {
  min-height: 34px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 13px;
}

.import-recap {
  justify-content: flex-start;
}

.import-recap span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(47, 184, 117, 0.12);
  color: #248c5a;
  font-weight: 800;
  font-size: 13px;
}

.import-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.import-section-card {
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 116px;
  border: 1px solid rgba(92,105,132,0.16);
  border-radius: 22px;
  padding: 14px;
  color: var(--text);
  background:
    radial-gradient(circle at 100% 0%, rgba(52,120,246,0.1), transparent 48%),
    rgba(255,255,255,0.66);
  box-shadow: 0 12px 30px rgba(35,52,91,0.08);
  text-align: left;
  transition:
    min-height 0.36s cubic-bezier(.16, 1, .3, 1),
    padding 0.36s cubic-bezier(.16, 1, .3, 1),
    border-radius 0.36s cubic-bezier(.16, 1, .3, 1),
    transform 0.36s cubic-bezier(.16, 1, .3, 1),
    box-shadow 0.28s ease,
    background 0.28s ease;
}

.import-section-card span {
  display: none;
}

.import-section-card strong {
  font-size: 17px;
  line-height: 1.15;
  transition: font-size 0.28s ease;
}

.import-section-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  transition: opacity 0.22s ease, transform 0.28s ease;
}

.import-section-card.active {
  border-color: rgba(52,120,246,0.34);
  background:
    radial-gradient(circle at 90% 0%, rgba(47,184,117,0.18), transparent 48%),
    linear-gradient(145deg, rgba(255,255,255,0.86), rgba(245,249,255,0.58));
  box-shadow: 0 16px 42px rgba(52,120,246,0.14);
}

.import-active-panel {
  display: grid;
  gap: 14px;
}

.import-makeup-placeholder {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border-radius: 20px;
  border: 1px dashed rgba(52, 120, 246, 0.28);
  background:
    radial-gradient(circle at 0% 0%, rgba(52, 120, 246, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.62);
}

.import-makeup-icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 16px;
  background: rgba(52, 120, 246, 0.12);
  font-size: 24px;
}

.import-makeup-placeholder strong,
.import-makeup-placeholder p {
  overflow-wrap: anywhere;
}

.member-makeup-form {
  padding: 16px;
  border: 1px solid rgba(92, 105, 132, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 30px rgba(35, 52, 91, 0.08);
}

.member-makeup-items {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(92, 105, 132, 0.14);
  border-radius: 18px;
  background: rgba(116, 128, 154, 0.06);
}

.member-makeup-items-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: var(--text);
}

.member-makeup-items-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.member-makeup-item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.member-makeup-item {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(92, 105, 132, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
}

.member-makeup-item > span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.member-makeup-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.member-makeup-item input[type="number"] {
  min-width: 0;
  width: 100%;
}

body.dark .member-makeup-form,
body.dark .member-makeup-item {
  background: rgba(255, 255, 255, 0.07);
}

.import-section-grid.collapsed {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.import-section-grid.collapsed .import-section-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 40px;
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 0 8px 20px rgba(35,52,91,0.08);
  text-align: center;
  transform-origin: left top;
}

.import-section-grid.collapsed.morphing {
  animation: importNavCompact 0.38s cubic-bezier(.16, 1, .3, 1);
}

.import-section-grid.collapsed.morphing .import-section-card {
  animation: importCardToPill 0.42s cubic-bezier(.16, 1, .3, 1) both;
}

.import-section-grid.collapsed .import-section-card strong {
  font-size: 13px;
  white-space: nowrap;
}

.import-section-grid.collapsed .import-section-card small {
  display: none;
}

.import-section-grid.collapsed .import-section-card.active {
  color: #fff;
  background: linear-gradient(145deg, rgba(52,120,246,0.96), rgba(80,145,255,0.78));
  box-shadow: 0 10px 24px rgba(52,120,246,0.18);
}

.import-section-head h2 {
  margin: 0;
}

body.dark .import-section-card {
  border-color: rgba(255,255,255,0.12);
  background:
    radial-gradient(circle at 100% 0%, rgba(52,120,246,0.16), transparent 48%),
    rgba(255,255,255,0.08);
}

.filter-chip {
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(116, 128, 154, 0.18);
  background: rgba(255, 255, 255, 0.42);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-chip span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(116, 128, 154, 0.12);
  color: var(--text);
  font-size: 11px;
}

.filter-chip.active {
  color: #fff;
  border-color: rgba(52, 120, 246, 0.28);
  background: linear-gradient(145deg, rgba(52, 120, 246, 0.92), rgba(80, 145, 255, 0.7));
  box-shadow: 0 10px 26px rgba(52, 120, 246, 0.2);
}

.filter-chip.active span {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.import-record-card.compact-daily-record {
  padding: 12px;
  gap: 8px;
}

.compact-import-list .import-record-card,
.single-review-list .import-record-card {
  animation: none !important;
}

.compact-import-list .import-record-card:hover,
.single-review-list .import-record-card:hover {
  transform: none;
}

.import-record-card.score-mismatch {
  border-color: rgba(239, 91, 99, 0.58);
  box-shadow: 0 14px 42px rgba(239, 91, 99, 0.16);
}

.import-record-card.has-dispute,
.correction-alert-panel,
.correction-review-panel {
  border-color: rgba(239, 91, 99, 0.42);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.82), rgba(255,255,255,0.52)),
    radial-gradient(circle at 94% 0%, rgba(239,91,99,0.14), transparent 18rem);
}

body.dark .import-record-card.has-dispute,
body.dark .correction-alert-panel,
body.dark .correction-review-panel {
  background:
    linear-gradient(145deg, rgba(35,44,64,0.88), rgba(21,29,45,0.58)),
    radial-gradient(circle at 94% 0%, rgba(239,91,99,0.18), transparent 18rem);
}

.dispute-editor,
.correction-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(239, 91, 99, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
}

body.dark .dispute-editor,
body.dark .correction-card {
  background: rgba(15, 23, 42, 0.34);
}

.correction-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.95fr);
  gap: 12px;
  align-items: start;
}

.correction-form,
.reviewer-actions {
  display: grid;
  gap: 10px;
}

.correction-timeline {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.highlight-link {
  border-color: rgba(47,184,117,0.32);
  background: rgba(47,184,117,0.08);
}

.issue-shot {
  display: block;
  overflow: hidden;
  max-width: 260px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.5);
}

.issue-shot img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
}

.import-record-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.donation-share-actions {
  margin-top: 12px;
}

.donation-mobile-summary,
.donation-mobile-list {
  display: none;
}

.donation-export-content {
  display: block;
}

.donation-export-heading {
  margin-top: 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.donation-status-filters {
  position: sticky;
  top: calc(8px + env(safe-area-inset-top));
  z-index: 18;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: -3px 0 14px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 16px;
  background: rgba(246, 249, 255, 0.76);
  box-shadow: 0 10px 26px rgba(64, 81, 118, 0.1);
  backdrop-filter: blur(24px) saturate(1.45);
}

body.dark .donation-status-filters {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(22, 31, 48, 0.82);
}

.donation-status-filters button {
  min-width: 0;
  min-height: 40px;
  padding: 7px 8px;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 850;
}

.donation-status-filters button span {
  margin-left: 5px;
  font-size: 11px;
  opacity: 0.72;
}

.donation-status-filters button.active {
  color: #fff;
  background: linear-gradient(145deg, #3478f6, #438df7);
  box-shadow: 0 7px 17px rgba(52, 120, 246, 0.18);
}

.donation-export-scope {
  display: grid;
  grid-template-columns: auto minmax(260px, 420px) 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.donation-export-scope > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.donation-export-scope .segmented button {
  min-height: 36px;
  padding: 7px 12px;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
}

.donation-export-scope .segmented button.active {
  color: #fff;
  background: linear-gradient(145deg, rgba(52,120,246,0.94), rgba(80,145,255,0.72));
  box-shadow: 0 8px 20px rgba(52,120,246,0.18);
}

.donation-export-scope > small {
  color: var(--muted);
  font-weight: 750;
}

.import-member-context {
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid rgba(52,120,246,0.18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47,184,117,0.08), transparent 48%),
    rgba(52,120,246,0.055);
}

.import-context-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.import-context-title strong {
  font-size: 13px;
}

.import-context-title span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.import-context-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 6px;
}

.import-context-item {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(116,128,154,0.14);
  border-radius: 11px;
  background: rgba(255,255,255,0.44);
}

.import-context-item.leave {
  border-color: rgba(245,159,50,0.2);
  background: rgba(245,159,50,0.07);
}

.import-context-item strong,
.import-context-item p,
.import-context-item small {
  display: block;
}

.import-context-item strong {
  margin-top: 5px;
  font-size: 13px;
}

.import-context-item p {
  margin: 3px 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.import-context-item small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

body.dark .import-member-context,
body.dark .import-context-item {
  background: rgba(22,31,48,0.46);
}

.combo-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.combo-row > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(116, 128, 154, 0.12);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.mini-pill.green {
  background: rgba(47, 184, 117, 0.12);
  color: #248c5a;
}

.mini-pill.orange {
  background: rgba(245, 159, 50, 0.14);
  color: #b96d10;
}

.mini-pill.red {
  background: rgba(239, 91, 99, 0.14);
  color: var(--red);
}

.compact-import-grid {
  display: grid;
  grid-template-columns: 58px 82px 138px 66px;
  gap: 8px;
  align-items: stretch;
}

.compact-import-grid .field {
  gap: 4px;
}

.compact-import-grid .field label {
  font-size: 11px;
}

.compact-import-grid input {
  min-height: 40px;
  padding: 8px 10px;
}

.compact-delete {
  min-height: 32px;
  padding: 5px 12px;
  white-space: nowrap;
}

.compact-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: -2px;
}

.fixed-cell {
  min-height: 40px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 6px 10px;
  border: 1px solid rgba(116, 128, 154, 0.16);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.34);
}

.fixed-cell span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.fixed-cell strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.date-cell strong {
  font-size: 13px;
}

.compact-link-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(120px, 0.8fr);
  gap: 8px;
  align-items: end;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mini-button {
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

.import-item-checks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.item-check {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 6px;
  border: 1px solid rgba(116, 128, 154, 0.18);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.item-check:hover {
  border-color: rgba(52, 120, 246, 0.28);
}

.item-check.checked {
  color: #fff;
  border-color: rgba(52, 120, 246, 0.28);
  background: linear-gradient(145deg, rgba(52, 120, 246, 0.94), rgba(86, 147, 255, 0.78));
  box-shadow: 0 10px 26px rgba(52, 120, 246, 0.22);
}

.item-check input {
  width: 12px;
  height: 12px;
  accent-color: var(--blue);
  transition: transform 0.16s cubic-bezier(.16, 1, .3, 1);
}

.item-check.checked input {
  animation: checkTickPop 0.18s cubic-bezier(.16, 1, .3, 1);
}

.import-review-page {
  width: min(1240px, calc(100vw - 32px));
  max-width: 100%;
  margin-inline: auto;
  padding: 18px;
}

body:has(#app[data-view="importConfirm"]) .app-shell {
  width: min(1280px, 100%);
}

.import-review-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.import-review-header h2 {
  margin: 2px 0 4px;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.08;
}

.import-review-header p {
  margin: 0;
}

.import-review-eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.import-review-header-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.import-review-all-button {
  color: #2465bc;
  border-color: rgba(52, 120, 246, 0.24);
  background: linear-gradient(145deg, rgba(52, 120, 246, 0.11), rgba(47, 184, 117, 0.1));
}

.import-review-all-button:not(:disabled):hover {
  border-color: rgba(52, 120, 246, 0.42);
  box-shadow: 0 8px 20px rgba(52, 120, 246, 0.11);
}

.import-review-progress {
  position: sticky;
  top: max(8px, env(safe-area-inset-top));
  z-index: 18;
  display: grid;
  gap: 6px;
  margin: 10px 0;
  padding: 9px 12px;
  border: 1px solid rgba(52, 120, 246, 0.15);
  border-radius: 15px;
  background: rgba(246, 250, 255, 0.78);
  box-shadow: 0 10px 28px rgba(35, 52, 91, 0.09);
  backdrop-filter: blur(22px) saturate(1.35);
}

body.dark .import-review-progress {
  background: rgba(22, 31, 48, 0.82);
}

.import-progress-copy,
.import-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.import-progress-copy strong {
  font-size: 13px;
}

.import-progress-copy span,
.import-progress-meta {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.import-progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(116, 128, 154, 0.14);
}

.import-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width 180ms ease;
}

.import-review-progress.complete {
  border-color: rgba(47, 184, 117, 0.22);
  background: rgba(47, 184, 117, 0.07);
}

.import-review-complete {
  max-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 2.3fr) auto;
  gap: 12px;
  margin: 0;
  padding: 0 12px;
  border: 0 solid rgba(47, 184, 117, 0.22);
  border-radius: 16px;
  opacity: 0;
  background: rgba(47, 184, 117, 0.08);
  transition: max-height 180ms ease, opacity 150ms ease, padding 180ms ease, margin 180ms ease;
}

.import-review-complete.show {
  max-height: 150px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-width: 1px;
  opacity: 1;
}

.import-review-complete > div {
  display: grid;
  align-content: center;
  gap: 2px;
}

.import-review-complete > div strong {
  font-size: 15px;
}

.import-review-complete > div span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.import-review-complete dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.import-review-complete dl div {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.42);
}

.import-review-complete dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.import-review-complete dd {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 900;
}

.import-complete-submit {
  align-self: center;
  min-height: 40px;
  white-space: nowrap;
}

.import-review-layout {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 12px;
}

.import-review-sidebar {
  position: sticky;
  top: 78px;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(116, 128, 154, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(22px) saturate(1.25);
}

body.dark .import-review-sidebar {
  background: rgba(25, 34, 51, 0.54);
}

.review-control-section {
  display: grid;
  gap: 7px;
}

.review-control-section + .review-control-section {
  padding-top: 11px;
  border-top: 1px solid rgba(116, 128, 154, 0.13);
}

.review-control-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.import-review-segmented {
  width: 100%;
}

.import-review-segmented button {
  flex: 1 1 50%;
}

.review-search-input,
.review-control-section select {
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 13px;
}

.review-select-grid {
  grid-template-columns: 1fr;
}

.review-select-grid label {
  display: grid;
  gap: 5px;
}

.import-review-sidebar .import-filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.import-review-sidebar .filter-chip {
  min-width: 0;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  font-size: 11px;
}

.review-batch-tools {
  padding-top: 11px;
  border-top: 1px solid rgba(116, 128, 154, 0.13);
}

.review-batch-tools summary,
.import-url-detail summary,
.import-recommendations summary,
.raw-entry summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.review-batch-body {
  display: grid;
  gap: 9px;
  padding-top: 9px;
}

.import-review-main {
  min-width: 0;
  width: min(100%, 860px);
}

.import-review-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 0 3px;
}

.import-review-list-head div {
  display: grid;
  gap: 1px;
}

.import-review-list-head strong {
  font-size: 15px;
}

.import-review-list-head div span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.compact-import-list {
  gap: 12px;
}

.import-record-card.compact-daily-record {
  position: relative;
  overflow: hidden;
  max-height: 2400px;
  gap: 8px;
  padding: 13px;
  border-left-width: 4px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  transition: max-height 180ms ease, opacity 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.import-record-card.status-dispute {
  border-left-color: #f59f32;
}

.import-record-card.status-mismatch {
  border-left-color: #ff6b6b;
}

.import-record-card.status-unauthorized {
  border-left-color: #f5b041;
}

.import-record-card.status-link {
  border-left-color: #4a90e2;
}

.import-record-card.status-leave {
  border-left-color: #58d68d;
}

.import-record-card.status-pending {
  border-left-color: #bfc9ca;
}

.import-record-card.review-undo-highlight {
  box-shadow: 0 0 0 3px rgba(245, 159, 50, 0.18);
}

.import-record-card.compact-daily-record > :not(.import-member-summary) {
  max-height: 1800px;
  opacity: 1;
  transition: max-height 180ms ease, opacity 150ms ease;
}

body.dark .import-record-card.compact-daily-record {
  background: rgba(25, 34, 51, 0.66);
}

.import-card-zone {
  min-width: 0;
}

.import-member-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px 14px;
  align-items: start;
}

.import-collapsed-status {
  display: none;
  color: #248c5a;
  font-size: 12px;
  font-weight: 900;
}

.import-record-card.review-collapsed {
  max-height: 78px;
  cursor: pointer;
}

.import-record-card.review-collapsed > :not(.import-member-summary) {
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  border-width: 0;
  opacity: 0;
  pointer-events: none;
}

.import-record-card.review-collapsed .import-member-summary {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.import-record-card.review-collapsed .import-member-summary > :not(.import-member-identity):not(.import-score-badge):not(.import-collapsed-status) {
  display: none;
}

.import-record-card.review-collapsed .import-member-number {
  min-width: 38px;
  height: 38px;
}

.import-record-card.review-collapsed .import-member-identity h3 {
  font-size: 16px;
}

.import-record-card.review-collapsed .import-member-identity p {
  margin-top: 2px;
  font-size: 10px;
}

.import-record-card.review-collapsed .import-personal-rule-summary {
  display: none;
}

.import-record-card.review-collapsed .import-score-badge {
  min-width: 62px;
  height: 42px;
}

.import-record-card.review-collapsed .import-score-badge input {
  font-size: 18px;
}

.import-record-card.review-collapsed .import-collapsed-status {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.import-member-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.import-member-copy {
  min-width: 0;
  flex: 1;
}

.import-member-name-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.import-member-number {
  flex: 0 0 auto;
  min-width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--blue);
  background: rgba(52, 120, 246, 0.1);
  font-size: 16px;
  font-weight: 950;
}

.import-member-identity h3 {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-member-identity p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.import-personal-rule-summary {
  min-width: 0;
  max-width: min(260px, 42vw);
  flex: 0 1 auto;
  margin: 0;
}

.import-personal-rule-summary summary {
  display: block;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid rgba(245, 159, 50, 0.2);
  border-radius: 999px;
  color: #a9630c;
  background: rgba(245, 159, 50, 0.09);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-personal-rule-summary[open] {
  flex-basis: 100%;
  max-width: min(520px, 100%);
}

.import-member-name-row:has(.import-personal-rule-summary[open]) {
  flex-wrap: wrap;
}

.import-objection-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid rgba(245, 159, 50, 0.24);
  border-radius: 999px;
  color: #a85d00;
  background: rgba(245, 159, 50, 0.12);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.import-personal-rule-list {
  display: grid;
  gap: 5px;
  margin-top: 6px;
  padding: 7px;
  border: 1px solid rgba(245, 159, 50, 0.16);
  border-radius: 11px;
  background: rgba(245, 159, 50, 0.055);
}

.import-personal-rule-list > div {
  min-width: 0;
  padding: 6px 7px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.42);
}

.import-personal-rule-list strong,
.import-personal-rule-list p,
.import-personal-rule-list small {
  display: block;
}

.import-personal-rule-list strong {
  margin-top: 4px;
  font-size: 11px;
}

.import-personal-rule-list p {
  margin: 2px 0;
  color: var(--text);
  font-size: 11px;
  line-height: 1.35;
}

.import-personal-rule-list small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.import-score-badge {
  min-width: 80px;
  height: 54px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label label"
    "score unit";
  align-content: center;
  justify-items: center;
  column-gap: 2px;
  padding: 6px 10px;
  border: 1px solid rgba(52, 120, 246, 0.22);
  border-radius: 16px;
  background: rgba(52, 120, 246, 0.09);
}

.import-score-badge span {
  grid-area: label;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.import-score-badge input {
  grid-area: score;
  width: 38px;
  min-height: 24px;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  box-shadow: none;
  font-size: 23px;
  font-weight: 950;
  line-height: 1;
  text-align: right;
}

.import-score-badge small {
  grid-area: unit;
  align-self: end;
  padding-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.import-score-badge.reviewed {
  border-color: rgba(47, 184, 117, 0.26);
  background: rgba(47, 184, 117, 0.1);
}

.import-score-badge.reviewed input {
  color: #248c5a;
}

.import-score-badge.mismatch {
  border-color: rgba(239, 91, 99, 0.36);
  background: rgba(239, 91, 99, 0.1);
}

.import-score-badge.mismatch input {
  color: var(--red);
}

.import-recognition-summary {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 11px;
  background: rgba(116, 128, 154, 0.065);
}

.import-recognition-summary summary {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
}

.import-recognition-summary summary strong {
  overflow: hidden;
  color: var(--text);
  font-size: 11px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-recognition-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-top: 7px;
}

.import-recognition-detail p {
  min-width: 0;
  display: flex;
  gap: 7px;
  align-items: baseline;
  margin: 0;
  padding: 6px 8px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.38);
}

.import-recognition-detail p span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.import-recognition-detail p strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-recognition-detail .import-record-badges {
  grid-column: 1 / -1;
}

.import-score-alert {
  display: grid;
  gap: 2px;
  padding: 6px 9px;
  border-left: 3px solid var(--red);
  border-radius: 8px;
  color: var(--red);
  background: rgba(239, 91, 99, 0.08);
}

.import-score-alert.matched {
  color: #248c5a;
  border-left-color: #2fb875;
  background: rgba(47, 184, 117, 0.1);
}

.import-score-alert.mismatch {
  color: var(--red);
  border-left-color: var(--red);
  background: rgba(239, 91, 99, 0.08);
}

.import-action-score-alert {
  margin-top: 2px;
  padding: 7px 10px;
}

.import-score-alert strong {
  font-size: 12px;
}

.import-score-alert span {
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
}

.import-recommendations {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(52, 120, 246, 0.06);
}

.import-recommendations .combo-row {
  margin-top: 8px;
}

.import-apply-recommendation {
  justify-self: start;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(52, 120, 246, 0.18);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(52, 120, 246, 0.08);
  font-size: 11px;
  font-weight: 850;
}

.import-zone-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.import-zone-heading strong {
  font-size: 13px;
}

.import-zone-heading span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.import-item-checks {
  gap: 7px;
}

.item-check {
  min-height: 48px;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 700;
}

.item-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.import-item-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.import-item-icon svg,
.import-source-link svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.item-check.checked {
  color: #17785c;
  border-color: rgba(47, 184, 117, 0.3);
  background: linear-gradient(145deg, rgba(195, 244, 226, 0.82), rgba(208, 244, 239, 0.68));
  box-shadow: 0 6px 16px rgba(47, 184, 117, 0.09);
}

body.dark .item-check.checked {
  color: #91e5c7;
  border-color: rgba(94, 220, 174, 0.3);
  background: rgba(47, 184, 117, 0.16);
}

.import-link-zone {
  display: grid;
  gap: 7px;
}

.import-source-link {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid rgba(52, 120, 246, 0.2);
  border-radius: 15px;
  color: #2465bc;
  background: linear-gradient(135deg, rgba(221, 235, 255, 0.88), rgba(219, 246, 240, 0.76));
  box-shadow: 0 8px 20px rgba(52, 120, 246, 0.1);
  text-align: left;
}

.import-source-link.disabled {
  color: var(--muted);
  border-color: rgba(116, 128, 154, 0.16);
  background: rgba(116, 128, 154, 0.08);
  box-shadow: none;
}

body.dark .import-source-link:not(.disabled) {
  color: #9fc4ff;
  border-color: rgba(111, 163, 244, 0.24);
  background: linear-gradient(135deg, rgba(52, 120, 246, 0.18), rgba(47, 184, 117, 0.13));
}

.import-source-link-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.import-source-link > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.import-source-link strong,
.import-source-link small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-source-link strong {
  font-size: 14px;
}

.import-source-link small {
  opacity: 0.78;
  font-size: 10px;
  font-weight: 700;
}

.import-source-link-arrow {
  width: 20px;
  height: 20px;
}

.import-confirm-link {
  justify-self: end;
}

.import-url-detail {
  padding: 0 3px;
}

.import-url-detail input {
  min-height: 38px;
  margin-top: 7px;
  padding: 7px 10px;
  font-size: 12px;
}

.import-url-detail-content {
  display: grid;
  gap: 8px;
  margin-top: 7px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(116, 128, 154, 0.055);
}

.import-url-detail-content .field {
  gap: 3px;
}

.import-url-detail-content .field label,
.import-raw-text strong {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.import-url-detail-content input {
  margin-top: 0;
}

.import-raw-text p {
  overflow-wrap: anywhere;
  margin: 4px 0 0;
  padding: 7px 8px;
  border-radius: 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  line-height: 1.45;
}

.raw-entry {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(116, 128, 154, 0.065);
}

.raw-entry p {
  overflow-wrap: anywhere;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.import-review-actions {
  display: grid;
  grid-template-columns: minmax(170px, 1.35fr) minmax(0, 2fr);
  gap: 8px;
  align-items: stretch;
  padding-top: 10px;
  border-top: 1px solid rgba(116, 128, 154, 0.12);
}

.import-review-secondary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.import-action-primary,
.import-action-dispute,
.import-action-delete {
  min-height: 40px;
  border-radius: 12px;
  padding: 7px 10px;
  font-size: 15px;
  font-weight: 700;
}

.import-action-primary {
  color: #fff;
  border: 1px solid transparent;
  transition:
    background 130ms ease,
    border-color 130ms ease,
    box-shadow 130ms ease,
    opacity 130ms ease;
}

.import-action-primary.pending {
  border-color: rgba(52, 120, 246, 0.28);
  background: linear-gradient(145deg, #3478f6, #2da9a0);
  box-shadow: 0 10px 22px rgba(52, 120, 246, 0.18);
}

.import-action-primary.pending:disabled {
  color: rgba(77, 87, 107, 0.72);
  border-color: rgba(116, 128, 154, 0.2);
  background: rgba(116, 128, 154, 0.16);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.import-action-primary.reviewed {
  border-color: rgba(47, 184, 117, 0.3);
  background: linear-gradient(145deg, #2fb875, #25a68f);
  box-shadow: 0 10px 22px rgba(47, 184, 117, 0.18);
}

.import-action-primary.reviewed span {
  margin-right: 3px;
  font-size: 14px;
}

.import-action-dispute {
  color: #b96d10;
  border: 1px solid rgba(245, 159, 50, 0.3);
  background: rgba(245, 159, 50, 0.09);
}

.import-action-delete {
  color: var(--red);
  border: 1px solid rgba(239, 91, 99, 0.3);
  background: transparent;
}

@media (min-width: 1024px) {
  .import-review-page {
    width: min(1240px, calc(100vw - 48px));
  }

  .import-review-main {
    justify-self: start;
  }

  .import-review-list-head {
    position: sticky;
    top: 74px;
    z-index: 5;
    padding: 9px 10px;
    border: 1px solid rgba(116, 128, 154, 0.14);
    border-radius: 14px;
    background: rgba(247, 250, 255, 0.76);
    backdrop-filter: blur(18px) saturate(1.25);
  }

  body.dark .import-review-list-head {
    background: rgba(22, 31, 48, 0.82);
  }
}

@media (max-width: 1023px) {
  .import-review-layout {
    grid-template-columns: 1fr;
  }

  .import-review-sidebar {
    position: static;
  }

  .review-select-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .import-review-sidebar .import-filter-row {
    display: flex;
  }

  .import-review-main {
    width: 100%;
  }
}

.item-check small {
  opacity: 0.78;
  font-size: 11px;
}

.score-check-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.collapsed-import-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px dashed rgba(239, 91, 99, 0.3);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(239, 91, 99, 0.06);
}

.collapsed-import-detail strong {
  display: block;
  color: var(--red);
  font-size: 14px;
}

.collapsed-import-detail span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 760;
}

.raw-entry {
  border-top: 1px solid rgba(116, 128, 154, 0.14);
  padding-top: 6px;
}

.raw-entry summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.raw-entry p {
  margin: 6px 0 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(116, 128, 154, 0.08);
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.55;
}

.danger-text {
  color: var(--red);
}

.invalid-input {
  border-color: rgba(239, 91, 99, 0.7);
  background: rgba(239, 91, 99, 0.08);
}

.no-spinner::-webkit-outer-spin-button,
.no-spinner::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.no-spinner[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.ai-job-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.member-admin-card {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.member-admin-card > .row:first-child p {
  margin-bottom: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.member-list-metrics,
.member-card-metrics {
  gap: 8px;
}

.member-list-metrics .metric,
.member-card-metrics .metric {
  min-height: 74px;
  padding: 10px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(35, 52, 91, 0.06);
}

.member-list-metrics .metric strong,
.member-card-metrics .metric strong {
  font-size: 22px;
}

.member-list-metrics .metric span,
.member-card-metrics .metric span,
.member-list-metrics .metric small,
.member-card-metrics .metric small {
  font-size: 12px;
}

.member-admin-card .grid.three {
  gap: 8px;
}

.member-admin-card .field {
  gap: 4px;
}

.member-admin-card .field label {
  font-size: 12px;
}

.finance-suggest-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.38);
}

.personal-rule-card {
  display: grid;
  gap: 10px;
}

.personal-rule-summary {
  display: grid;
  gap: 6px;
}

.personal-rule-summary p {
  margin: 0;
}

.personal-rule-detail {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  animation: ruleDetailIn 0.24s cubic-bezier(.16, 1, .3, 1);
}

.reminder-card {
  display: grid;
  gap: 12px;
}

.health-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.audit-card {
  display: grid;
  gap: 10px;
}

.danger-soft {
  background: rgba(239, 91, 99, 0.1);
}

.warning-soft {
  background: rgba(245, 159, 50, 0.1);
}

.success-soft {
  background: rgba(47, 184, 117, 0.1);
}

.notification-center .metric {
  min-height: 108px;
}

.notification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.notification-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 22px;
}

.notification-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, rgba(52,120,246,0.92), rgba(47,184,117,0.82));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 12px 28px rgba(52,120,246,0.18);
  font-size: 22px;
  font-weight: 950;
}

.notification-icon.danger {
  background: linear-gradient(145deg, rgba(239,91,99,0.96), rgba(245,159,50,0.86));
}

.notification-icon.warn {
  background: linear-gradient(145deg, rgba(245,159,50,0.96), rgba(255,192,92,0.78));
}

.notification-icon.done {
  background: linear-gradient(145deg, rgba(47,184,117,0.96), rgba(62,203,130,0.78));
}

.notification-body {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.notification-body strong {
  font-size: 17px;
  line-height: 1.25;
}

.notification-body p {
  margin: 0;
}

.message-center-page {
  overflow: hidden;
}

.message-center-page,
.message-center-heading,
.message-center-summary,
.message-center-filters,
.message-center-list {
  min-width: 0;
}

.message-center-heading {
  align-items: flex-start;
}

.message-center-heading .module-title {
  flex: 1 1 560px;
}

.message-center-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.message-center-summary > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 10px;
  min-height: 82px;
  padding: 13px 15px;
  border: 1px solid rgba(116, 128, 154, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.message-center-summary span,
.message-center-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.message-center-summary strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--text);
  font-size: 29px;
  line-height: 1;
}

.message-center-filters {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(84px, 1fr));
  gap: 4px;
  max-width: 420px;
  padding: 4px;
  border: 1px solid rgba(116, 128, 154, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.34);
}

.message-center-filters button {
  min-width: 0;
  min-height: 38px;
  padding: 7px 12px;
  color: var(--muted);
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.message-center-filters button span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 5px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(116, 128, 154, 0.1);
  font-size: 11px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.message-center-filters button.active {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 7px 18px rgba(35, 52, 91, 0.1);
}

.message-center-list {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.message-center-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(116, 128, 154, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 12px 28px rgba(35, 52, 91, 0.07);
  cursor: pointer;
  transition: transform 150ms ease, border-color 180ms ease, background 180ms ease, opacity 180ms ease;
}

.message-center-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(116, 128, 154, 0.25);
}

.message-center-card.priority-critical::before {
  background: #ff3b30;
}

.message-center-card.priority-high::before {
  background: #ff9500;
}

.message-center-card.priority-normal::before {
  background: #3478f6;
}

.message-center-card.priority-low::before {
  background: #8e8e93;
}

.message-center-card:hover {
  transform: translateY(-1px);
  border-color: rgba(52, 120, 246, 0.24);
}

.message-center-card:focus-visible {
  outline: 3px solid rgba(52, 120, 246, 0.22);
  outline-offset: 2px;
}

.message-center-card.is-unread {
  background:
    radial-gradient(circle at 100% 0%, rgba(52, 120, 246, 0.09), transparent 13rem),
    rgba(255, 255, 255, 0.7);
}

.message-center-card.is-read {
  opacity: 0.74;
}

.message-center-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--blue);
  border: 1px solid rgba(52, 120, 246, 0.16);
  border-radius: 16px;
  background: rgba(52, 120, 246, 0.08);
}

.priority-critical .message-center-icon {
  color: #e6454d;
  border-color: rgba(239, 91, 99, 0.18);
  background: rgba(239, 91, 99, 0.1);
}

.priority-high .message-center-icon {
  color: #c87300;
  border-color: rgba(245, 159, 50, 0.2);
  background: rgba(245, 159, 50, 0.1);
}

.priority-low .message-center-icon {
  color: #69748c;
  border-color: rgba(105, 116, 140, 0.16);
  background: rgba(105, 116, 140, 0.08);
}

.message-center-icon svg {
  width: 25px;
  height: 25px;
}

.message-center-body {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.message-center-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.message-center-meta time {
  min-width: 0;
  margin-left: auto;
  white-space: nowrap;
}

.message-type,
.message-priority,
.message-pinned,
.message-no-badge,
.message-read-state {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  min-height: 23px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(116, 128, 154, 0.08);
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.message-priority {
  color: var(--blue);
}

.message-pinned {
  color: #a86200;
  background: rgba(245, 159, 50, 0.12);
}

.message-no-badge {
  color: #6c7484;
}

.message-center-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.message-center-title-row h3 {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.message-read-state {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
}

.is-unread .message-read-state {
  color: var(--blue);
  background: rgba(52, 120, 246, 0.1);
}

.message-center-body > p {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.message-center-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  padding-top: 2px;
}

.message-center-actions button {
  min-width: 0;
  max-width: 100%;
  min-height: 38px;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.message-action-button {
  min-width: 112px;
}

.message-announcement-composer {
  border: 1px solid rgba(52, 120, 246, 0.16);
  border-radius: 18px;
  background: rgba(52, 120, 246, 0.05);
}

.message-announcement-composer summary {
  padding: 12px 14px;
  color: var(--blue);
  cursor: pointer;
  font-weight: 850;
}

.message-announcement-composer form {
  padding: 0 14px 14px;
}

.message-announcement-pin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 750;
}

.message-announcement-pin input {
  width: 18px;
  height: 18px;
}

body.dark .message-center-summary > div,
body.dark .message-center-filters,
body.dark .message-center-card,
body.dark .message-announcement-composer {
  background-color: rgba(255, 255, 255, 0.055);
}

body.dark .message-center-filters button.active {
  background: rgba(255, 255, 255, 0.11);
}

.permission-table td,
.permission-table th {
  white-space: nowrap;
}

.permission-table td:last-child {
  white-space: normal;
  min-width: 220px;
}

.permission-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  white-space: nowrap;
}

.permission-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.permission-toggle > span {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: rgba(116, 128, 154, 0.22);
  transition: background 160ms ease;
}

.permission-toggle > span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(30, 42, 67, 0.18);
  transition: transform 160ms ease;
}

.permission-toggle input:checked + span {
  background: #2fb875;
}

.permission-toggle input:checked + span::after {
  transform: translateX(16px);
}

.permission-toggle b {
  color: var(--muted);
  font-size: 11px;
}

.permission-toggle input:checked ~ b {
  color: #248c5a;
}

.permission-toggle.locked {
  cursor: default;
  opacity: 0.72;
}

.duty-admin-panel {
  overflow: hidden;
}

.duty-count-control {
  min-width: 180px;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.duty-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.file-button {
  position: relative;
  overflow: hidden;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.duty-admin-current-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.duty-admin-week-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(116, 128, 154, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
}

.duty-admin-week-card > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.duty-admin-week-card > div:first-child span,
.duty-admin-selects label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.duty-admin-selects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.duty-admin-selects label {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.duty-future-schedules {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(52, 120, 246, 0.05);
}

.duty-future-schedules > summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  font-weight: 900;
}

.duty-future-schedules > summary span {
  color: var(--muted);
  font-size: 11px;
}

.duty-import-preview {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(52, 120, 246, 0.18);
  border-radius: 16px;
  background: rgba(52, 120, 246, 0.055);
}

.duty-import-errors {
  padding: 10px;
  border-radius: 12px;
  color: var(--red);
  background: rgba(239, 91, 99, 0.08);
}

.duty-import-errors p {
  margin: 3px 0;
  font-size: 12px;
  font-weight: 750;
}

@media (max-width: 720px) {
  .duty-admin-current-grid,
  .duty-admin-selects {
    grid-template-columns: 1fr;
  }

  .duty-count-control {
    width: 100%;
  }
}

.donation-table td:nth-child(5) strong {
  color: #c66b00;
  font-size: 16px;
}

body.dark .donation-table td:nth-child(5) strong {
  color: #ffbd66;
}

.donation-table tr.needs-donation {
  background: rgba(246, 151, 42, 0.08);
}

.donation-member-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(116, 128, 154, 0.18);
  border-left: 4px solid rgba(116, 128, 154, 0.42);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 28px rgba(70, 86, 118, 0.08);
  backdrop-filter: blur(18px) saturate(1.18);
}

.donation-member-card.pending {
  border-left-color: #3478f6;
}

.donation-member-card.confirmed {
  border-left-color: #2fb875;
}

.donation-member-card.exempt {
  border-left-color: #e2a83c;
}

.donation-member-card.clear {
  border-left-color: rgba(116, 128, 154, 0.34);
}

.donation-card-head,
.donation-collapsed-summary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.donation-card-head {
  justify-content: space-between;
}

.donation-member-name {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.donation-member-name small {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  margin-right: 9px;
  border-radius: 12px;
  place-items: center;
  color: var(--blue);
  background: rgba(52, 120, 246, 0.1);
  font-size: 13px;
  font-weight: 850;
}

.donation-member-name strong {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donation-card-amount {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  gap: 4px;
}

.donation-card-amount > strong {
  color: #c66b00;
  font-size: 22px;
  line-height: 1;
}

.donation-status,
.donation-static-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.donation-status {
  padding: 4px 9px;
}

.donation-status.pending {
  color: #2468d7;
  background: rgba(52, 120, 246, 0.1);
}

.donation-status.confirmed,
.donation-static-status.confirmed {
  color: #218a59;
  background: rgba(47, 184, 117, 0.12);
}

.donation-status.exempt,
.donation-static-status.exempt {
  color: #9b6813;
  background: rgba(226, 168, 60, 0.14);
}

.donation-status.clear,
.donation-static-status.clear {
  color: var(--muted);
  background: rgba(116, 128, 154, 0.1);
}

.donation-score-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 10px;
  padding: 10px 11px;
  border-radius: 13px;
  color: var(--muted);
  background: rgba(116, 128, 154, 0.07);
  font-size: 13px;
}

.donation-score-summary span {
  min-width: 0;
}

.donation-score-summary strong {
  color: var(--ink);
  font-weight: 850;
}

.donation-card-label {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.donation-reason-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.donation-reason-list > span {
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 10px;
  color: #8d5b12;
  background: rgba(246, 151, 42, 0.1);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.donation-reason-list > .empty-reason {
  color: var(--muted);
  background: rgba(116, 128, 154, 0.08);
}

.donation-reasons-toggle {
  margin-top: 7px;
  padding: 4px 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 12px;
  font-weight: 850;
}

.donation-card-actions {
  display: flex;
  gap: 8px;
}

.donation-exempt-button,
.donation-exemption-confirm {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid rgba(226, 168, 60, 0.34);
  border-radius: 14px;
  color: #93600d;
  background: rgba(226, 168, 60, 0.12);
  box-shadow: none;
  font-weight: 850;
}

.donation-exemption-editor {
  display: grid;
  gap: 8px;
  overflow: hidden;
  padding: 11px;
  border: 1px solid rgba(226, 168, 60, 0.28);
  border-radius: 14px;
  background: rgba(226, 168, 60, 0.08);
  transform-origin: top;
  animation: donationEditorDown 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.donation-exemption-editor label {
  color: #93600d;
  font-weight: 850;
}

.donation-exemption-editor input {
  min-height: 42px;
  background: rgba(255, 255, 255, 0.72);
}

.donation-exemption-editor > div {
  display: flex;
  gap: 8px;
}

.donation-exemption-editor > div > * {
  flex: 1 1 0;
}

.donation-exemption-editor.compact {
  min-width: 260px;
  margin-top: 7px;
  padding: 8px;
}

.donation-exemption-editor.compact input {
  min-height: 36px;
  padding: 7px 9px;
}

.donation-exemption-editor.compact button {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 11px;
}

.donation-table-actions {
  display: flex;
  gap: 6px;
}

@keyframes donationEditorDown {
  from {
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px) scaleY(0.92);
  }
  to {
    max-height: 190px;
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

.donation-confirm-button {
  flex: 1 1 auto;
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 850;
}

.donation-confirm-button.pending {
  background: linear-gradient(145deg, #3478f6, #438df7);
  box-shadow: 0 9px 20px rgba(52, 120, 246, 0.18);
}

.donation-confirm-button.confirmed {
  background: linear-gradient(145deg, #2fb875, #27a86b);
  box-shadow: 0 9px 20px rgba(47, 184, 117, 0.16);
}

.donation-collapse-button {
  flex: 0 0 auto;
  min-height: 44px;
}

.donation-static-status {
  min-height: 42px;
  width: 100%;
  padding: 8px 12px;
}

.donation-member-card.collapsed {
  display: block;
  padding: 0;
  overflow: hidden;
}

.donation-member-card.exempt .donation-collapsed-summary > span:last-child {
  color: #93600d;
}

.donation-member-card.exempt .donation-confirm-check {
  background: #d9a23a;
}

.donation-collapsed-summary {
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.donation-collapsed-summary strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donation-collapsed-summary b {
  margin-left: auto;
  color: #c66b00;
  font-size: 17px;
}

.donation-collapsed-summary > span:last-child {
  flex: 0 0 auto;
  color: #218a59;
  font-size: 12px;
  font-weight: 850;
}

.donation-confirm-check {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: #2fb875;
  font-weight: 900;
}

body.dark .donation-member-card {
  background: rgba(22, 31, 48, 0.76);
}

body.dark .donation-reason-list > span {
  color: #ffc46d;
}

.link-button {
  border: 0;
  padding: 0;
  color: var(--blue);
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.export-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.compare-card {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.compare-card span,
.compare-card small,
.mini-status span,
.mini-status small {
  color: var(--muted);
}

.compare-card strong {
  font-size: 26px;
}

.backup-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.backup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
}

.backup-item p {
  margin: 3px 0 0;
}

.member-week-table th,
.member-week-table td {
  text-align: center;
  white-space: nowrap;
}

.member-week-table th:first-child,
.member-week-table td:first-child {
  text-align: left;
}

.status-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mini-status {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.mini-status strong {
  font-size: 18px;
}

.archive-links h3 {
  margin: 0 0 8px;
}

.archive-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: var(--text);
  text-decoration: none;
}

.archive-link span {
  color: var(--muted);
}

.summary-preview {
  max-height: 620px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  color: var(--text);
  background: rgba(255,255,255,0.45);
  line-height: 1.7;
  font-family: inherit;
}

body.dark .summary-preview {
  background: rgba(255,255,255,0.08);
}

.duty-progress {
  margin-top: 8px;
}

.task-list {
  display: grid;
  gap: 10px;
}

.task-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 0.8fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255,255,255,0.4);
  transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

body.dark .task-card {
  background: rgba(255,255,255,0.08);
}

.task-card.done {
  border-color: rgba(47, 184, 117, 0.34);
  background: rgba(47, 184, 117, 0.12);
}

.task-card label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  color: var(--text);
}

.task-card input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
  accent-color: var(--green);
}

.task-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.screenshot-grid {
  display: grid;
  gap: 12px;
}

.meeting-period-field {
  max-width: 420px;
}

.meeting-history-list {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.meeting-history-card {
  grid-template-columns: 76px minmax(0, 1fr) auto;
  border-radius: 15px;
  padding: 9px;
}

.meeting-history-card img {
  width: 76px;
  height: 56px;
  border-radius: 10px;
}

.meeting-history-copy {
  min-width: 0;
}

.meeting-history-copy > strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-history-copy p {
  margin: 3px 0 5px;
  font-size: 12px;
}

.meeting-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.meeting-history-meta span {
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(111, 128, 160, 0.09);
  font-size: 11px;
  font-weight: 750;
}

.screenshot-card {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  background: rgba(255,255,255,0.42);
}

body.dark .screenshot-card {
  background: rgba(255,255,255,0.08);
}

.screenshot-card img {
  width: 92px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.my-hero {
  overflow: hidden;
}

.my-dashboard {
  display: grid;
  gap: 14px;
}

.my-overview-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  gap: 16px;
}

.my-overview-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.my-avatar-button {
  border: 0;
  padding: 0;
  cursor: pointer;
}

.my-avatar-button:focus-visible,
.my-name-link:focus-visible {
  outline: 3px solid rgba(52, 120, 246, 0.36);
  outline-offset: 4px;
}

.my-name-link {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  padding: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.my-name-link h2 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-name-link span {
  color: var(--muted);
  font-size: 32px;
  line-height: 1;
}

.my-overview-profile h2 {
  margin: 2px 0 3px;
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1;
}

.my-week-score-card {
  display: grid;
  place-items: center;
  align-self: stretch;
  min-height: 112px;
  border: 1px solid rgba(52, 120, 246, 0.2);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(52, 120, 246, 0.13), rgba(52, 199, 89, 0.09));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.my-week-score-card small,
.my-week-score-card span {
  color: var(--muted);
  font-weight: 800;
}

.my-week-score-card strong {
  color: var(--blue);
  font-size: 36px;
  line-height: 0.95;
}

.my-status-list,
.my-record-list,
.my-growth-list {
  display: grid;
  gap: 10px;
}

.my-status-list > div,
.my-record-list > div,
.my-growth-list > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.42);
}

.my-status-list > div > span,
.my-record-list span,
.my-growth-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 850;
}

.my-list-icon {
  width: 26px;
  height: 26px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: var(--blue);
  background: rgba(52, 120, 246, 0.1);
}

.my-list-icon svg {
  width: 18px;
  height: 18px;
}

.my-record-list strong {
  color: var(--muted);
  font-size: 15px;
  text-align: right;
}

.my-growth-list > button {
  width: 100%;
  color: var(--text);
  cursor: pointer;
}

.my-growth-list > button:disabled {
  cursor: default;
  opacity: 0.74;
}

.my-growth-list b {
  min-width: 54px;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  background: rgba(116, 128, 154, 0.12);
  font-size: 12px;
  text-align: center;
}

.my-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
  background: linear-gradient(145deg, var(--blue), var(--green));
  box-shadow: 0 18px 36px rgba(52, 120, 246, 0.22);
  font-size: 36px;
  font-weight: 750;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-uploader {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
}

.avatar.preview {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  font-size: 30px;
}

.avatar.mini {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  font-size: 20px;
  box-shadow: none;
}

.profile-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.58);
}

body.dark .profile-list {
  background: rgba(255,255,255,0.08);
}

.profile-row {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.profile-row:last-of-type {
  border-bottom: 0;
}

.profile-row > span:first-child {
  flex: 0 0 auto;
  font-size: 17px;
  font-weight: 650;
}

.profile-value {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  text-align: right;
}

.profile-value input,
.profile-value select {
  width: min(220px, 48vw);
  min-height: 40px;
  border: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  text-align: right;
}

.profile-value select {
  appearance: none;
}

.avatar-row {
  color: var(--text);
}

.chevron {
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
}

.profile-save {
  margin: 14px 16px 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  align-items: end;
  background: rgba(0,0,0,0.38);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.18s ease;
}

.region-sheet {
  width: 100%;
  padding: 16px 18px 26px;
  border-radius: 28px 28px 0 0;
  background: rgba(248, 250, 255, 0.88);
  box-shadow: 0 -24px 70px rgba(0,0,0,0.18);
  backdrop-filter: blur(28px) saturate(1.2);
  animation: sheetUp 0.28s cubic-bezier(.2,.8,.2,1);
}

body.dark .region-sheet {
  background: rgba(25,31,44,0.9);
}

.picker-title {
  margin-bottom: 8px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.picker-window {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 620px;
  height: 204px;
  margin: 0 auto 22px;
  overflow: hidden;
  border-radius: 20px;
}

.picker-window::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 42px;
  transform: translateY(-50%);
  border-block: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.28);
  pointer-events: none;
}

.picker-window::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(248,250,255,0.95), rgba(248,250,255,0) 32%, rgba(248,250,255,0) 68%, rgba(248,250,255,0.95)),
    linear-gradient(to right, transparent calc(50% - 0.5px), var(--line) calc(50% - 0.5px), var(--line) calc(50% + 0.5px), transparent calc(50% + 0.5px));
  pointer-events: none;
}

body.dark .picker-window::after {
  background:
    linear-gradient(to bottom, rgba(25,31,44,0.96), rgba(25,31,44,0) 32%, rgba(25,31,44,0) 68%, rgba(25,31,44,0.96)),
    linear-gradient(to right, transparent calc(50% - 0.5px), var(--line) calc(50% - 0.5px), var(--line) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}

.wheel-column {
  height: 204px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.wheel-column::-webkit-scrollbar {
  display: none;
}

.wheel-spacer {
  height: 81px;
}

.wheel-option {
  width: 100%;
  height: 42px;
  border: 0;
  padding: 0 8px;
  scroll-snap-align: center;
  color: rgba(23,32,51,0.48);
  background: transparent;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  transition: transform 0.18s ease, color 0.18s ease, font-weight 0.18s ease;
}

body.dark .wheel-option {
  color: rgba(245,247,251,0.48);
}

.wheel-option.selected {
  color: var(--text);
  font-weight: 700;
  transform: scale(1.06);
}

.picker-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.picker-actions button {
  min-width: 128px;
}

.date-confirm-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background: rgba(14, 18, 28, 0.36);
  backdrop-filter: blur(16px);
}

.date-confirm-sheet {
  width: min(100%, 560px);
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.58);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.9), rgba(247,250,255,0.76)),
    radial-gradient(circle at 88% 0%, rgba(52,120,246,0.18), transparent 16rem);
  box-shadow: 0 24px 80px rgba(28, 42, 72, 0.28);
  backdrop-filter: blur(28px) saturate(1.2);
  animation: sheetUp 0.26s cubic-bezier(.2,.8,.2,1);
}

body.dark .date-confirm-sheet {
  border-color: rgba(255,255,255,0.14);
  background:
    linear-gradient(145deg, rgba(35,44,64,0.94), rgba(20,27,43,0.82)),
    radial-gradient(circle at 88% 0%, rgba(52,120,246,0.24), transparent 16rem);
}

.date-confirm-sheet h2 {
  margin: 2px 0 8px;
  font-size: 24px;
}

.date-confirm-card {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.58);
}

body.dark .date-confirm-card {
  background: rgba(255,255,255,0.06);
}

.date-confirm-card span,
.date-confirm-card small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.date-confirm-card strong {
  display: block;
  margin: 4px 0;
  color: var(--text);
  font-size: 30px;
  line-height: 1;
}

.date-confirm-card.subtle strong {
  font-size: 24px;
}

.date-confirm-actions {
  flex-wrap: wrap;
  margin-top: 18px;
}

.import-items {
  align-items: end;
}

body.dark .success-panel {
  background:
    linear-gradient(145deg, rgba(35,44,64,0.88), rgba(21,29,45,0.58)),
    radial-gradient(circle at 92% 0%, rgba(47,184,117,0.22), transparent 18rem);
}

.empty {
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.trend-bars {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  height: 120px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.34);
}

.trend-bar {
  min-height: 90px;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 6px;
  text-align: center;
}

.trend-bar span {
  width: 100%;
  min-height: 4px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, #34c759, #3478f6);
}

.trend-bar small {
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 820px) {
  .grid.two,
  .grid.three,
  .grid.four,
  .grid.five,
  .grid.six {
    grid-template-columns: 1fr;
  }

  body.auth-required .app-shell {
    padding: 0 12px;
  }

  body.auth-required .topbar {
    right: 12px;
    top: 12px;
  }

  .login-page {
    padding: 16px 0 48px;
  }

  .site-record-footer {
    padding: 18px 12px 8px;
  }

  body.auth-required .site-record-footer {
    padding: 6px 12px;
  }

  .login-gate-card {
    padding: 22px;
    border-radius: 26px;
  }

  .login-card-title h1 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .login-visual-elements {
    min-height: 92px;
  }

  .login-clock {
    left: 18px;
    top: 18px;
    width: 48px;
    height: 48px;
    border-width: 5px;
  }

  .login-bubble {
    width: 30px;
    height: 30px;
  }

  .login-bubble.b1 { left: 88px; top: 18px; }
  .login-bubble.b2 { left: 126px; top: 42px; }
  .login-bubble.b3 { left: 170px; top: 20px; }

  .login-heatline {
    right: 16px;
    bottom: 16px;
    grid-template-columns: repeat(7, 11px);
    gap: 5px;
  }

  .login-heatline i {
    width: 11px;
    height: 11px;
    border-radius: 4px;
  }

  .notification-grid {
    grid-template-columns: 1fr;
  }

  .notification-card {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 12px;
  }

  .notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 16px;
    font-size: 19px;
  }

  .duty-hero {
    grid-template-columns: 1fr;
  }

  .duty-progress-orb {
    width: 88px;
    border-radius: 26px;
  }

  .grid.six.duty-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .duty-metrics .metric {
    min-height: 82px;
  }

  .duty-priority-grid {
    grid-template-columns: 1fr;
  }

  .duty-command {
    gap: 8px;
    padding-bottom: 18px;
  }

  .duty-command-hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 114px;
    gap: 12px;
    padding: 15px;
    border-radius: 24px;
  }

  .duty-command-copy h2 {
    font-size: 27px;
  }

  .duty-week-key {
    font-size: 15px;
  }

  .duty-progress-labels {
    gap: 6px;
    margin-top: 8px;
  }

  .duty-current-focus {
    margin-top: 9px;
  }

  .duty-current-focus strong {
    font-size: 16px;
  }

  .duty-progress-labels span {
    padding: 7px 9px;
    font-size: 12px;
  }

  .duty-command-ring {
    width: 114px;
  }

  .duty-command-ring::before {
    width: 84px;
  }

  .duty-command-ring strong {
    font-size: 23px;
  }

  .duty-block {
    padding: 12px;
    border-radius: 23px;
  }

  .duty-section-heading h3 {
    font-size: 20px;
  }

  .duty-task-grid {
    grid-template-columns: 1fr;
  }

  .duty-week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .duty-command-card {
    min-height: 126px;
    grid-template-rows: auto auto minmax(28px, 1fr) auto;
    padding: 10px;
  }

  .duty-cockpit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .duty-cockpit-card {
    min-height: 68px;
  }

  .duty-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .duty-summary-grid > span {
    min-height: 60px;
  }

  .duty-summary-report {
    padding: 12px;
  }

  .duty-summary-report-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .duty-summary-report-heading span {
    text-align: left;
  }

  .duty-summary-report textarea {
    min-height: 180px;
  }

  .duty-tools-details > .grid {
    padding: 0 10px 10px;
  }

  .duty-tools-details .panel {
    padding: 14px;
  }

  .duty-quick-trigger {
    bottom: calc(102px + env(safe-area-inset-bottom));
  }

  .home-duty-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px;
  }

  .home-duty-hero > .pill {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .home-duty-score {
    min-width: 84px;
    padding: 9px 10px;
  }

  .home-duty-priority-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-duty-row {
    min-height: 68px;
    padding: 9px;
  }

  .home-duty-value {
    min-width: 44px;
    font-size: 18px;
  }

  .home-duty-actions .button,
  .home-duty-actions .ghost {
    flex-basis: calc(50% - 4px);
  }

  .module-title {
    gap: 8px;
    padding: 10px;
    border-radius: 20px;
  }

  .module-title .back-button {
    width: 34px;
    height: 34px;
  }

  .module-crumbs {
    gap: 4px;
    font-size: 11px;
  }

  .module-crumbs span {
    min-height: 21px;
    padding: 2px 6px;
  }

  .default-password-toast {
    top: max(12px, env(safe-area-inset-top));
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px 12px;
    border-radius: 22px;
  }

  .default-password-icon {
    width: 40px;
    height: 40px;
    border-radius: 16px;
    font-size: 16px;
  }

  .default-password-copy strong {
    font-size: 15px;
  }

  .default-password-copy span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
  }

  .default-password-action {
    grid-column: 1 / -1;
    width: 100%;
    height: 36px;
  }

  .impact-strip,
  .compare-grid,
  .status-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .correction-body {
    grid-template-columns: 1fr;
  }

  .grid.four.compact-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-metrics .metric {
    min-height: 70px;
    padding: 10px 12px;
    column-gap: 8px;
  }

  .compact-metrics .metric strong {
    font-size: 24px;
  }

  .tabbar {
    grid-template-columns: repeat(var(--tab-count), 1fr);
    --mobile-tab-width: min(390px, calc(100% - 116px));
    --mobile-search-size: 72px;
    --mobile-control-gap: 10px;
    left: max(12px, calc(100% - var(--mobile-tab-width) - var(--mobile-control-gap) - var(--mobile-search-size) - 14px));
    width: var(--mobile-tab-width);
    transform: none;
    border-radius: 34px;
    padding: 6px;
  }

  .tab-search-button {
    left: auto;
    right: 14px;
    width: 72px;
    height: 72px;
  }

  .search-dock {
    left: auto;
    right: 14px;
    width: 72px;
    transform: scale(0.92);
  }

  body.search-open .tabbar {
    left: 14px;
    width: 72px;
    height: 72px;
    transform: none;
  }

  body.search-open .tab-search-button {
    transform: scale(1.06);
  }

  body.search-closing .search-dock {
    left: auto;
    right: 14px;
    width: 72px;
    transform: scale(0.92);
  }

  .tabbar button {
    padding: 4px 2px;
    min-height: 60px;
    font-size: 13px;
  }

  .tabbar svg {
    width: 31px;
    height: 31px;
  }

  .tab-search-button svg,
  .search-home-button svg,
  .search-input-shell svg {
    width: 38px;
    height: 38px;
  }

  .tabbar-drop {
    left: 6px;
    top: 6px;
    width: calc((100% - 12px) / var(--tab-count));
    height: calc(100% - 12px);
  }

  body.search-open .tabbar button,
  body.search-open .search-home-button,
  body.search-open .search-input-shell {
    min-height: 72px;
  }

  body.search-open .search-dock {
    left: 96px;
    right: 14px;
    width: auto;
    transform: scale(1);
  }

  .topbar {
    align-items: flex-start;
  }

  .hero-panel {
    min-height: 560px;
    padding: 18px;
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-today-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-personal-hero {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
  }

  .dashboard-score-orb {
    width: 96px;
    border-radius: 28px;
  }

  .dashboard-score-orb strong {
    font-size: 40px;
  }

  .dashboard-personal-main h3 {
    font-size: 23px;
  }

  .dashboard-item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-home > .row:first-of-type {
    padding-right: 118px;
  }

  .dashboard-meeting-float {
    top: 16px;
    right: 16px;
    min-height: 44px;
    padding: 0 16px;
    font-size: 14px;
  }

  .today-action.primary {
    grid-column: 1 / -1;
  }

  .todo-row,
  .data-fix-row,
  .template-share-card {
    grid-template-columns: 1fr;
  }

  .more-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .more-card {
    min-height: 98px;
    border-radius: 18px;
    padding: 10px 6px;
  }

  .import-section-grid {
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 8px;
  }

  .import-section-card {
    min-height: 102px;
    border-radius: 18px;
    padding: 12px;
  }

  .import-section-grid.collapsed {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .import-section-grid.collapsed::-webkit-scrollbar {
    display: none;
  }

  .import-section-grid.collapsed .import-section-card {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 7px 12px;
  }

  .compact-import-grid {
    grid-template-columns: 52px minmax(82px, 1fr) 86px 64px;
    gap: 7px;
  }

  .single-review-shell .compact-import-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-delete {
    grid-column: auto;
  }

  .compact-link-grid {
    grid-template-columns: 1fr;
  }

  .import-item-checks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .import-context-list {
    grid-template-columns: 1fr;
  }

  .donation-share-actions > button {
    flex: 1 1 calc(50% - 6px);
  }

  .donation-export-scope {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .import-context-item {
    padding: 7px 8px;
  }

  .import-context-item p {
    margin: 2px 0;
  }

  .single-review-shell .import-item-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .single-review-shell .item-check {
    min-height: 48px;
  }

  .score-check-row {
    flex-direction: column;
    gap: 2px;
  }

  .collapsed-import-detail {
    grid-template-columns: 1fr;
  }

  .duplicate-skip-note {
    grid-template-columns: 1fr;
  }

  .ai-job-card,
  .task-card,
  .health-card,
  .screenshot-card:not(.meeting-history-card) {
    grid-template-columns: 1fr;
  }

  .scoreboard-publish-tools {
    grid-template-columns: 1fr;
  }

  .today-scoreboard-toolbar {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .today-scoreboard-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .scoreboard-export-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .today-scoreboard-actions .ghost,
  .today-scoreboard-actions .button,
  .scoreboard-export-actions .ghost,
  .scoreboard-export-actions .button {
    flex: 1 1 140px;
  }

  .personal-card-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .personal-card-status {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .personal-score-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screenshot-card img {
    width: 100%;
    height: 160px;
  }

  .meeting-history-card {
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }

  .meeting-history-card img {
    width: 64px;
    height: 50px;
  }

  .meeting-history-card .danger {
    min-height: 36px;
    padding: 6px 9px;
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .duty-command-hero {
    grid-template-columns: 1fr;
  }

  .duty-command-ring {
    width: 96px;
  }

  .duty-week-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .app-shell {
    padding-top: 26px;
  }
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes cardRise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes checkTickPop {
  0% {
    transform: scale(0.82);
  }
  70% {
    transform: scale(1.16);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes liquidPill {
  0% { scale: 1 1; filter: blur(0); }
  34% { scale: 1.18 0.96; filter: blur(0.25px); }
  68% { scale: 0.94 1.03; filter: blur(0); }
  100% { scale: 1 1; filter: blur(0); }
}

@keyframes liquidTailRight {
  0% {
    left: 0;
    width: 44%;
    opacity: 0.76;
    border-radius: 999px 46% 46% 999px;
  }
  36% {
    left: -4%;
    width: 54%;
    opacity: 0.72;
    border-radius: 999px 42% 42% 999px;
  }
  72% {
    left: 2%;
    width: 42%;
    opacity: 0.5;
  }
  100% {
    left: 0;
    width: 44%;
    opacity: 0.76;
  }
}

@keyframes liquidTailLeft {
  0% {
    left: 0;
    width: 44%;
    opacity: 0.76;
    border-radius: 999px 46% 46% 999px;
  }
  36% {
    left: 34%;
    width: 54%;
    opacity: 0.68;
    border-radius: 46% 999px 999px 46%;
  }
  72% {
    left: 6%;
    width: 40%;
    opacity: 0.5;
  }
  100% {
    left: 0;
    width: 44%;
    opacity: 0.76;
    border-radius: 999px 46% 46% 999px;
  }
}

@keyframes liquidGlint {
  0% { transform: translateX(0) scale(1); opacity: 0.46; }
  42% { transform: translateX(10px) scale(1.2, 0.8); opacity: 0.7; }
  100% { transform: translateX(0) scale(1); opacity: 0.46; }
}

@keyframes searchBloom {
  0% {
    transform: scaleX(0.22);
    opacity: 0.42;
    filter: blur(2px);
  }
  58% {
    transform: scaleX(1.03);
    opacity: 1;
    filter: blur(0);
  }
  100% {
    transform: scaleX(1);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sheetUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(9vw, 6vh, 0) scale(1.12);
  }
}

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

@keyframes breathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}

@keyframes loginClockHour {
  from { transform: translate(-50%, -100%) rotate(0deg); }
  to { transform: translate(-50%, -100%) rotate(360deg); }
}

@keyframes loginClockMinute {
  from { transform: translate(-50%, -100%) rotate(125deg); }
  to { transform: translate(-50%, -100%) rotate(485deg); }
}

@keyframes loginFloat {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-7px) scale(1.04); }
}

@keyframes heatPulse {
  0%, 100% { transform: scale(1); opacity: 0.74; }
  50% { transform: scale(1.18); opacity: 1; }
}

@keyframes passwordToastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-18px) scale(0.96);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes searchLocatedPulse {
  0% {
    outline-color: rgba(52,120,246,0);
    box-shadow: 0 0 0 0 rgba(52,120,246,0), var(--shadow);
  }
  28% {
    outline-color: rgba(52,120,246,0.62);
    box-shadow: 0 0 0 10px rgba(52,120,246,0.14), var(--shadow);
  }
  100% {
    outline-color: rgba(52,120,246,0);
    box-shadow: 0 0 0 0 rgba(52,120,246,0), var(--shadow);
  }
}

@keyframes importNavCompact {
  from {
    gap: 10px;
    filter: blur(0.2px);
  }
  to {
    gap: 8px;
    filter: blur(0);
  }
}

@keyframes importCardToPill {
  0% {
    min-height: 104px;
    border-radius: 22px;
    padding: 14px;
    opacity: 0.72;
    transform: scale(0.98);
  }
  45% {
    min-height: 54px;
    border-radius: 28px;
    padding: 10px 16px;
    opacity: 1;
    transform: scale(1.01);
  }
  100% {
    min-height: 40px;
    border-radius: 999px;
    padding: 8px 14px;
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes ruleDetailIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 720px) {
  #app,
  #app[data-view],
  .section > .panel,
  .section > .card,
  .stack > .card,
  .stack > article {
    animation: none;
  }

  .import-review-page {
    width: calc(100vw - 16px);
    padding: 10px 12px 12px;
    border-radius: 22px;
  }

  .import-review-header {
    display: grid;
    gap: 7px;
  }

  .import-review-header h2 {
    margin: 0 0 2px;
    font-size: 21px;
  }

  .import-review-header .muted {
    font-size: 10px;
    line-height: 1.35;
    opacity: 0.72;
  }

  .import-review-eyebrow {
    font-size: 10px;
  }

  .import-review-header-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    width: 100%;
  }

  .import-review-header-actions button {
    min-height: 38px;
    padding-block: 6px;
  }

  .import-review-progress {
    top: max(6px, env(safe-area-inset-top));
    gap: 4px;
    margin: 7px 0;
    padding: 7px 9px;
    border-radius: 13px;
  }

  .import-progress-copy strong {
    font-size: 12px;
  }

  .import-progress-track {
    height: 6px;
  }

  .import-review-complete,
  .import-review-complete.show {
    grid-template-columns: 1fr;
  }

  .import-review-complete.show {
    max-height: 240px;
    padding: 8px 9px;
  }

  .import-review-complete dl {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
  }

  .import-review-complete dl div {
    padding: 4px 2px;
  }

  .import-review-complete dd {
    font-size: 10px;
  }

  .import-complete-submit {
    width: 100%;
  }

  .import-blocking-note {
    align-items: flex-start;
    display: grid;
    gap: 2px;
    margin-bottom: 7px;
    padding: 7px 9px;
    border-radius: 13px;
    font-size: 11px;
  }

  .import-blocking-note span {
    font-size: 10px;
    line-height: 1.3;
  }

  .import-review-layout {
    gap: 10px;
    margin-top: 8px;
  }

  .import-review-sidebar {
    gap: 9px;
    padding: 10px;
    border-radius: 16px;
  }

  .review-control-section + .review-control-section {
    padding-top: 8px;
  }

  .review-select-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .import-review-sidebar .import-filter-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .import-review-sidebar .import-filter-row::-webkit-scrollbar {
    display: none;
  }

  .import-review-sidebar .filter-chip {
    flex: 0 0 auto;
    gap: 5px;
  }

  .review-batch-tools {
    padding-top: 8px;
  }

  .import-review-list-head {
    margin-bottom: 6px;
  }

  .import-record-card.compact-daily-record {
    gap: 9px;
    padding: 11px;
    border-radius: 18px;
  }

  .import-record-card.review-collapsed {
    max-height: 72px;
    padding-block: 10px;
  }

  .import-record-card.review-collapsed .import-member-summary {
    grid-template-columns: minmax(0, 1fr) 62px;
    padding-right: 0;
  }

  .import-record-card.review-collapsed .import-collapsed-status {
    position: absolute;
    right: 12px;
    bottom: 7px;
    font-size: 10px;
  }

  .import-member-summary {
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 8px 10px;
  }

  .import-action-score-alert {
    padding: 6px 8px;
  }

  .import-action-score-alert strong {
    font-size: 11px;
  }

  .import-action-score-alert span {
    font-size: 9px;
  }

  .import-personal-rule-summary summary {
    font-size: 9px;
  }

  .import-personal-rule-summary {
    max-width: min(170px, 46vw);
  }

  .import-member-name-row {
    gap: 5px;
  }

  .import-objection-status {
    padding: 3px 6px;
    font-size: 9px;
  }

  .import-personal-rule-list {
    position: relative;
    z-index: 2;
  }

  .import-member-number {
    min-width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 15px;
  }

  .import-member-identity {
    gap: 8px;
  }

  .import-member-identity h3 {
    font-size: 18px;
  }

  .import-score-badge {
    min-width: 72px;
    height: 50px;
    border-radius: 14px;
  }

  .import-score-badge input {
    width: 34px;
    font-size: 21px;
  }

  .import-recognition-detail {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .import-recognition-summary {
    padding: 6px 8px;
  }

  .import-recognition-summary summary strong {
    font-size: 10px;
  }

  .import-recognition-detail p {
    padding: 5px 7px;
  }

  .import-record-badges {
    gap: 4px;
  }

  .import-item-checks {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .single-review-shell .import-item-checks {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .item-check {
    grid-column: span 2;
    min-height: 46px;
    padding: 6px 4px;
    font-size: 14px;
  }

  .item-check:nth-child(4),
  .item-check:nth-child(5) {
    grid-column: span 3;
  }

  .import-source-link {
    min-height: 54px;
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    padding: 8px 10px;
  }

  .import-source-link-icon {
    width: 34px;
    height: 34px;
  }

  .import-review-actions {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .import-action-primary {
    min-height: 44px;
    font-size: 16px;
  }

  .import-review-secondary-actions {
    gap: 6px;
  }

  .import-action-dispute,
  .import-action-delete {
    min-width: 0;
    padding-inline: 5px;
    font-size: 14px;
    font-weight: 700;
  }

  .card,
  .panel,
  .member-card,
  .quick-card,
  .more-card,
  .dashboard-action-card {
    transition:
      border-color 180ms ease,
      background 180ms ease,
      box-shadow 180ms ease,
      opacity 180ms ease;
  }

  .card:hover,
  .panel:hover,
  .member-card:hover,
  .quick-card:hover,
  .more-card:hover,
  .dashboard-action-card:hover {
    transform: none;
  }

  button:active,
  [role="button"]:active {
    transform: scale(0.985);
    transition-duration: 90ms;
  }

  .sheet-backdrop,
  .date-confirm-backdrop,
  .duty-quick-backdrop,
  .duty-incomplete-backdrop,
  .scoreboard-preview-modal {
    z-index: 90;
    display: block;
    padding: 0;
    overflow: hidden;
    background: rgba(226, 236, 250, 0.46);
    backdrop-filter: blur(24px) saturate(1.45);
    animation: mobileBackdropIn 180ms ease-out both;
  }

  body.dark .sheet-backdrop,
  body.dark .date-confirm-backdrop,
  body.dark .duty-quick-backdrop,
  body.dark .duty-incomplete-backdrop,
  body.dark .scoreboard-preview-modal {
    background: rgba(12, 18, 28, 0.62);
  }

  .region-sheet,
  .date-confirm-sheet,
  .duty-quick-sheet,
  .duty-incomplete-sheet,
  .scoreboard-preview-card,
  .sheet-panel.meeting-recognition-modal {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    overflow: auto;
    padding:
      max(22px, env(safe-area-inset-top))
      18px
      calc(30px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    background:
      radial-gradient(circle at 82% 8%, rgba(112, 239, 201, 0.2), transparent 18rem),
      linear-gradient(145deg, rgba(248, 251, 255, 0.88), rgba(240, 252, 248, 0.8));
    box-shadow: none;
    backdrop-filter: blur(42px) saturate(1.55);
    transform: none;
    animation: mobilePanelIn 200ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  body.dark .region-sheet,
  body.dark .date-confirm-sheet,
  body.dark .duty-quick-sheet,
  body.dark .duty-incomplete-sheet,
  body.dark .scoreboard-preview-card,
  body.dark .sheet-panel.meeting-recognition-modal {
    background:
      radial-gradient(circle at 82% 8%, rgba(62, 196, 157, 0.14), transparent 18rem),
      linear-gradient(145deg, rgba(29, 38, 56, 0.92), rgba(18, 30, 31, 0.88));
  }

  .duty-sheet-handle {
    opacity: 0.32;
  }
}

@keyframes mobileBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes mobilePanelIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 720px) {
  .sheet-backdrop,
  .date-confirm-backdrop,
  .duty-quick-backdrop,
  .duty-incomplete-backdrop,
  .scoreboard-preview-modal,
  .region-sheet,
  .date-confirm-sheet,
  .duty-quick-sheet,
  .duty-incomplete-sheet,
  .scoreboard-preview-card,
  .sheet-panel.meeting-recognition-modal {
    animation-name: mobileBackdropIn !important;
    animation-duration: 120ms !important;
  }
}

@media (max-width: 720px) {
  .duty-quick-sheet {
    position: absolute;
    inset: auto 0 0 0;
    width: 100%;
    height: min(60vh, 560px);
    max-height: 60vh;
    overflow: hidden;
    padding:
      10px
      14px
      calc(16px + env(safe-area-inset-bottom));
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 28px 28px 0 0;
    background:
      radial-gradient(circle at 82% 8%, rgba(112, 239, 201, 0.16), transparent 18rem),
      linear-gradient(145deg, rgba(248, 251, 255, 0.92), rgba(240, 252, 248, 0.86));
    box-shadow: 0 -24px 70px rgba(35, 52, 91, 0.22);
    backdrop-filter: blur(42px) saturate(1.55);
    transform: none;
    animation: sheetUp 220ms cubic-bezier(.2,.8,.2,1);
  }

  body.dark .duty-quick-sheet {
    background:
      radial-gradient(circle at 82% 8%, rgba(62, 196, 157, 0.14), transparent 18rem),
      linear-gradient(145deg, rgba(29, 38, 56, 0.94), rgba(18, 30, 31, 0.9));
  }

  .duty-quick-grid {
    grid-template-columns: 1fr;
    gap: 9px;
    padding-right: 3px;
  }

  .duty-quick-grid button,
  .duty-quick-card {
    min-height: 78px;
    padding: 12px;
  }
}

@media (max-width: 767px) {
  .donation-overview-panel,
  .donation-detail-panel {
    padding: 13px;
  }

  .donation-overview-panel > .row:first-child {
    gap: 8px;
  }

  .donation-overview-panel .module-title h2 {
    font-size: 22px;
  }

  .donation-desktop-stats,
  .donation-table {
    display: none;
  }

  .donation-mobile-summary {
    display: grid;
    gap: 5px;
    margin-top: 10px;
    padding: 12px 13px;
    border: 1px solid rgba(52, 120, 246, 0.16);
    border-radius: 15px;
    background:
      linear-gradient(135deg, rgba(52, 120, 246, 0.09), rgba(47, 184, 117, 0.07)),
      rgba(255, 255, 255, 0.5);
  }

  .donation-mobile-summary strong {
    color: var(--ink);
    font-size: 21px;
  }

  .donation-mobile-summary strong span {
    margin-right: 5px;
    color: var(--muted);
    font-size: 13px;
  }

  .donation-mobile-summary p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
  }

  .donation-export-panel {
    margin-top: 10px;
  }

  .donation-export-content {
    display: block;
    padding-top: 9px;
  }

  .donation-export-heading {
    margin-top: 10px;
    font-size: 13px;
  }

  .donation-export-scope {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 0;
  }

  .donation-export-scope .segmented {
    width: 100%;
  }

  .donation-export-scope .segmented button {
    flex: 1 1 50%;
    min-width: 0;
    font-size: 12px;
  }

  .donation-export-scope > small {
    font-size: 11px;
  }

  .donation-share-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 9px;
  }

  .donation-share-actions > button {
    width: 100%;
    min-height: 38px;
    padding: 7px 8px;
    font-size: 12px;
  }

  .donation-status-filters {
    top: calc(6px + env(safe-area-inset-top));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin: -2px -3px 12px;
    padding: 6px;
    border-radius: 14px;
  }

  .donation-status-filters button {
    display: grid;
    justify-items: center;
    gap: 2px;
    min-width: 0;
    min-height: 42px;
    padding: 6px 3px;
    border: 1px solid rgba(116, 128, 154, 0.18);
    border-radius: 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.48);
    font-size: 12px;
    font-weight: 800;
  }

  .donation-status-filters button span {
    margin-left: 0;
    font-size: 10px;
    opacity: 0.78;
  }

  .donation-status-filters button.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(145deg, #3478f6, #438df7);
    box-shadow: 0 7px 17px rgba(52, 120, 246, 0.16);
  }

  .donation-mobile-list {
    display: grid;
    gap: 10px;
  }

  .donation-member-card {
    gap: 10px;
    padding: 13px;
  }

  .donation-exemption-editor {
    padding: 10px;
  }
}

@media (min-width: 768px) {
  .donation-export-content {
    display: block !important;
  }
}

/* Member self-submission and duty review */
.self-checkin-panel {
  overflow: hidden;
  border-color: rgba(52, 120, 246, 0.2);
  background:
    linear-gradient(135deg, rgba(52, 120, 246, 0.055), rgba(52, 199, 89, 0.045)),
    var(--panel);
}

.weekly-mission-panel {
  overflow: hidden;
  border-color: rgba(52, 120, 246, 0.18);
}

.weekly-mission-heading,
.weekly-mission-title,
.duty-weekly-mission-beta {
  display: flex;
  align-items: center;
}

.weekly-mission-heading {
  justify-content: space-between;
  gap: 12px;
}

.weekly-mission-title {
  min-width: 0;
  gap: 12px;
}

.weekly-mission-title h2 {
  margin: 0;
}

.weekly-mission-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  color: var(--blue);
  border-radius: 15px;
  background: rgba(52, 120, 246, 0.1);
}

.weekly-mission-icon svg {
  width: 24px;
  height: 24px;
}

.weekly-mission-icon.summary {
  color: #b56a00;
  background: linear-gradient(145deg, rgba(255, 204, 92, 0.24), rgba(255, 149, 0, 0.1));
}

.weekly-mission-period {
  margin: 16px 0 10px;
  color: var(--muted);
  font-weight: 750;
}

.weekly-mission-status {
  padding: 14px 16px;
  border-left: 4px solid;
  border-radius: 14px;
}

.weekly-mission-status strong {
  display: block;
  margin-bottom: 3px;
  font-size: 18px;
}

.weekly-mission-status p {
  margin: 0;
  color: var(--muted);
}

.weekly-mission-status.pending {
  border-color: var(--orange);
  background: rgba(255, 149, 0, 0.08);
}

.weekly-mission-status.submitted {
  border-color: var(--orange);
  background: rgba(255, 149, 0, 0.08);
}

.weekly-mission-status.confirmed {
  border-color: #34c759;
  background: rgba(52, 199, 89, 0.09);
}

.weekly-mission-status.confirmed strong {
  color: #188b3d;
}

.weekly-mission-status.rejected {
  border-color: var(--red);
  background: rgba(255, 69, 58, 0.08);
}

.weekly-mission-form {
  gap: 10px;
  margin-top: 12px;
}

.weekly-mission-form-title {
  font-size: 18px;
}

.weekly-mission-form .field {
  gap: 5px;
}

.weekly-mission-form textarea {
  min-height: 72px;
  resize: vertical;
}

.weekly-mission-form > .button {
  width: 100%;
  min-height: 46px;
}

.weekly-mission-readonly {
  display: grid;
  gap: 9px;
  margin-top: 11px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(116, 128, 154, 0.07);
}

.weekly-mission-readonly > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.weekly-mission-readonly small {
  color: var(--muted);
  font-weight: 750;
}

.weekly-mission-readonly a,
.weekly-mission-readonly p {
  margin: 0;
  overflow-wrap: anywhere;
}

.weekly-mission-readonly a {
  color: var(--blue);
  font-weight: 750;
}

.weekly-mission-view-link {
  display: grid;
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  place-items: center;
}

.weekly-summary-body {
  display: grid;
  gap: 11px;
}

.weekly-summary-simple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.weekly-summary-simple > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(52, 120, 246, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.54);
}

.weekly-summary-simple small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.weekly-summary-simple strong {
  color: var(--text);
  font-size: 17px;
  line-height: 1.2;
}

.weekly-summary-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.weekly-summary-metrics > div {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(52, 120, 246, 0.15);
  border-radius: 16px;
  background: rgba(52, 120, 246, 0.06);
}

.weekly-summary-metrics small {
  color: var(--muted);
  font-weight: 750;
}

.weekly-summary-metrics strong {
  font-size: 28px;
  line-height: 1;
}

.weekly-summary-metrics em {
  margin-left: 3px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.weekly-summary-donation,
.weekly-summary-pending {
  padding: 13px 15px;
  border-radius: 16px;
}

.weekly-summary-donation p,
.weekly-summary-pending p {
  margin: 4px 0 0;
  color: var(--muted);
}

.weekly-summary-donation.clear {
  color: #177d39;
  border: 1px solid rgba(52, 199, 89, 0.18);
  background: rgba(52, 199, 89, 0.09);
}

.weekly-summary-donation.required {
  border: 1px solid rgba(255, 149, 0, 0.22);
  background: rgba(255, 149, 0, 0.09);
}

.weekly-summary-donation.required span {
  display: inline-block;
  margin-top: 7px;
  color: #b45e00;
  font-size: 18px;
  font-weight: 850;
}

.weekly-summary-pending {
  border: 1px dashed rgba(116, 128, 154, 0.3);
  background: rgba(116, 128, 154, 0.06);
}

.weekly-summary-message {
  margin: 0;
  padding: 10px 13px;
  color: var(--text);
  font-weight: 700;
  border-radius: 14px;
  background: rgba(255, 204, 92, 0.1);
}

.weekly-summary-confirm-button {
  width: 100%;
  min-height: 46px;
}

.weekly-summary-confirm-button:disabled {
  color: #177d39;
  opacity: 1;
  background: rgba(52, 199, 89, 0.12);
  box-shadow: none;
}

.weekly-summary-review-link {
  display: grid;
  min-height: 42px;
  place-items: center;
  text-decoration: none;
}

.weekly-summary-editor {
  display: grid;
  gap: 11px;
}

.weekly-summary-editor textarea {
  min-height: 68px;
  resize: vertical;
}

.weekly-summary-editor-actions {
  align-items: center;
  justify-content: space-between;
}

.weekly-mission-confirm-panel {
  width: min(100%, 520px);
  margin: 18px auto;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 28px;
  background: var(--glass-strong);
  box-shadow: 0 22px 60px rgba(24, 42, 78, 0.22);
  backdrop-filter: blur(28px) saturate(1.35);
  animation: sheetUp 0.28s cubic-bezier(.2,.8,.2,1);
}

.weekly-mission-confirm-panel h2 {
  margin: 6px 0 8px;
}

.weekly-mission-confirm-panel .picker-actions {
  margin-top: 20px;
}

.duty-weekly-mission-beta {
  width: 100%;
  justify-content: flex-start;
  gap: 14px;
  margin: 12px 0;
  padding: 13px 15px;
  color: var(--text);
  text-align: left;
  border: 1px solid rgba(52, 120, 246, 0.2);
  border-radius: 18px;
  background: var(--glass);
  box-shadow: var(--shadow);
}

.duty-weekly-mission-beta span {
  display: grid;
  flex: 1;
  gap: 2px;
}

.duty-weekly-mission-beta small {
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
}

.duty-weekly-mission-beta strong,
.duty-weekly-mission-beta b {
  font-size: 15px;
}

.duty-weekly-mission-beta b {
  display: grid;
  justify-items: end;
  gap: 2px;
  color: var(--muted);
}

.duty-weekly-mission-beta b span {
  display: block;
}

.duty-weekly-mission-beta b small {
  color: var(--orange);
  font-size: 11px;
  font-weight: 850;
}

.duty-weekly-mission-beta i {
  color: var(--muted);
  font-size: 24px;
  font-style: normal;
}

.weekly-review-card-head {
  grid-template-columns: 76px minmax(130px, 0.7fr) minmax(190px, 1fr);
}

.weekly-review-source {
  border: 1px solid rgba(116, 128, 154, 0.1);
}

.weekly-review-open-link {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.weekly-review-confirmed-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
}

.weekly-review-confirmed-row a {
  color: var(--blue);
  font-weight: 800;
}

.weekly-review-app-tabs {
  display: flex;
  gap: 6px;
  margin-top: 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.weekly-review-app-tabs button {
  min-height: 42px;
  min-width: 130px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.weekly-review-app-tabs button.active {
  color: var(--blue);
  background: var(--panel);
  box-shadow: 0 1px 5px rgba(35, 52, 91, 0.12);
}

.weekly-review-app-content,
.weekly-review-mine {
  display: grid;
  gap: 14px;
}

.weekly-review-current-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.weekly-review-current-meta > span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px 12px;
  border-left: 3px solid var(--blue);
  background: var(--soft);
}

.weekly-review-current-meta small,
.weekly-review-history-row .muted {
  color: var(--muted);
  font-size: 12px;
}

.weekly-review-current-meta strong,
.weekly-review-history-row strong,
.weekly-review-history-detail {
  min-width: 0;
  overflow-wrap: anywhere;
}

.weekly-review-history-panel {
  min-width: 0;
}

.weekly-review-history-list {
  display: grid;
  gap: 9px;
}

.weekly-review-history-row {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.weekly-review-history-row p {
  margin: 0;
}

.weekly-review-history-detail {
  white-space: pre-wrap;
  line-height: 1.65;
}

.weekly-review-diagnostics {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.weekly-review-diagnostics > summary {
  padding: 12px 2px;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.weekly-review-diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.weekly-review-diagnostic-grid > span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.weekly-review-diagnostic-grid small,
.weekly-review-diagnostic-reasons {
  color: var(--muted);
  font-size: 12px;
}

.weekly-review-diagnostic-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 10px 2px 2px;
}

.weekly-review-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.weekly-review-period-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
}

.weekly-review-period-row > p {
  margin: 0 0 10px;
}

.weekly-review-period-picker {
  display: grid;
  flex: 0 1 360px;
  gap: 5px;
  min-width: 240px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.weekly-review-period-picker select {
  width: 100%;
  min-width: 0;
}

.weekly-review-scoreboard-shortcuts {
  display: grid;
  gap: 14px;
}

.weekly-review-scoreboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.weekly-review-scoreboard-actions .ghost {
  flex: 0 1 180px;
}

.self-checkin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.self-checkin-heading h2 {
  margin: 0;
}

.self-checkin-score-inline {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  padding: 8px 11px;
  color: var(--muted);
  border: 1px solid rgba(52, 120, 246, 0.17);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  white-space: nowrap;
}

.self-checkin-score-inline span {
  font-size: 12px;
  font-weight: 800;
}

.self-checkin-score-inline strong {
  color: var(--text);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.self-checkin-score-inline b {
  color: var(--primary);
  font-size: 20px;
}

.self-checkin-task-state {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  padding: 12px 13px;
  border: 1px solid rgba(52, 120, 246, 0.17);
  border-radius: 17px;
  background: rgba(52, 120, 246, 0.07);
}

.self-checkin-task-state > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.self-checkin-task-state strong {
  color: var(--text);
  font-size: 17px;
}

.self-checkin-task-state p,
.self-checkin-task-state small {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.self-checkin-task-state small {
  overflow-wrap: anywhere;
}

.self-checkin-task-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--primary);
  border-radius: 13px;
  background: rgba(52, 120, 246, 0.11);
  font-size: 20px;
  font-weight: 900;
}

.self-checkin-task-state.submitted,
.self-checkin-task-state.approved {
  border-color: rgba(52, 199, 89, 0.24);
  background: rgba(52, 199, 89, 0.08);
}

.self-checkin-task-state.submitted .self-checkin-task-icon,
.self-checkin-task-state.approved .self-checkin-task-icon {
  color: #168c45;
  background: rgba(52, 199, 89, 0.14);
}

.self-checkin-task-state.returned {
  border-color: rgba(255, 149, 0, 0.3);
  background: rgba(255, 149, 0, 0.09);
}

.self-checkin-task-state.returned .self-checkin-task-icon {
  color: #b96500;
  background: rgba(255, 149, 0, 0.15);
}

.self-checkin-task-state.closed {
  border-color: rgba(116, 128, 154, 0.2);
  background: rgba(116, 128, 154, 0.08);
}

.self-checkin-copy-action {
  min-height: 40px;
  padding: 8px 13px;
  white-space: nowrap;
}

.checkin-editing-notice {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 11px;
  color: #1767d1;
  border: 1px solid rgba(52, 120, 246, 0.18);
  border-radius: 13px;
  background: rgba(52, 120, 246, 0.09);
  font-size: 13px;
  font-weight: 850;
}

.self-checkin-form {
  gap: 12px;
  margin-top: 12px;
}

.self-checkin-form .button {
  min-width: 180px;
}

.self-checkin-form textarea {
  min-height: 76px;
}

.self-checkin-primary-action {
  min-height: 48px;
}

.self-checkin-items {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.self-checkin-items .checkin-item-button:nth-child(-n + 3) {
  grid-column: span 2;
}

.self-checkin-items .checkin-item-button:nth-child(n + 4) {
  grid-column: span 3;
}

.checkin-item-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  min-height: 88px;
  padding: 16px 14px;
  cursor: pointer;
  color: #65728f;
  border: 1.5px solid rgba(116, 128, 154, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  font: inherit;
  user-select: none;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.72);
  transition: transform 160ms ease, color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.checkin-item-button:active {
  transform: scale(0.975);
}

.checkin-item-button.selected {
  color: #146b62;
  border-color: rgba(52, 157, 190, 0.5);
  background: linear-gradient(135deg, rgba(52, 120, 246, 0.16), rgba(52, 199, 137, 0.2));
  box-shadow: 0 11px 24px rgba(43, 143, 160, 0.14), inset 0 1px rgba(255, 255, 255, 0.7);
}

.checkin-item-button:disabled {
  cursor: default;
  opacity: 0.76;
}

.checkin-item-icon {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
}

.checkin-item-button strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 0;
}

.self-checkin-preview {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid rgba(52, 120, 246, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.48);
}

.self-checkin-preview-title {
  font-size: 15px;
}

.self-checkin-preview-items {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.self-checkin-preview-items > span {
  padding: 7px 10px;
  color: #147a3c;
  border: 1px solid rgba(52, 199, 89, 0.22);
  border-radius: 999px;
  background: rgba(52, 199, 89, 0.09);
  font-size: 13px;
  font-weight: 800;
}

.self-checkin-preview-row {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(116, 128, 154, 0.12);
}

.self-checkin-preview-row small {
  color: var(--muted);
  font-weight: 800;
}

.self-checkin-preview-row a {
  color: var(--primary);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.self-checkin-preview-row .self-checkin-preview-link {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
}

.self-checkin-preview-row p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.self-checkin-preview-note {
  margin: 0;
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 13px;
  background: rgba(116, 128, 154, 0.07);
  font-size: 13px;
  font-weight: 700;
}

.self-checkin-validation-zone {
  min-width: 0;
  margin: -7px;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 18px;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.self-checkin-validation-zone.validation-error {
  border-color: rgba(255, 59, 48, 0.68);
  background: rgba(255, 59, 48, 0.075);
  box-shadow: 0 8px 22px rgba(255, 59, 48, 0.1);
}

.self-checkin-validation-zone.validation-error input {
  border-color: rgba(255, 59, 48, 0.75);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.1);
}

.self-checkin-inline-error {
  display: none;
  margin: 2px 2px 0;
  color: #d92d20;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.4;
}

.self-checkin-validation-zone.validation-error .self-checkin-inline-error {
  display: block;
}

.self-checkin-validation-zone.validation-pulse {
  animation: self-checkin-validation-pulse 420ms ease-in-out 2;
}

@keyframes self-checkin-validation-pulse {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-4px); }
  65% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .self-checkin-validation-zone.validation-pulse {
    animation: none;
  }
}

.self-checkin-locked {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 15px 17px;
  border: 1px solid rgba(52, 199, 89, 0.22);
  border-radius: 18px;
  background: rgba(52, 199, 89, 0.08);
}

.self-checkin-locked strong {
  color: #19964b;
  font-size: 24px;
}

.self-checkin-locked span {
  color: var(--muted);
  font-weight: 700;
}

.self-checkin-locked a,
.self-review-source a {
  color: var(--primary);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.self-checkin-review-page {
  display: grid;
  gap: 11px;
  max-width: 1120px;
  margin-inline: auto;
  padding-bottom: 120px;
}

.self-review-page-heading {
  display: grid;
  gap: 8px;
}

.self-review-page-heading .module-title {
  margin: 0;
}

.self-review-sticky-header {
  position: sticky;
  top: 0;
  z-index: 34;
  display: grid;
  gap: 6px;
  padding: 7px 9px;
  background: rgba(248, 251, 255, 0.78);
  border-color: rgba(172, 198, 255, 0.46);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(35, 52, 91, 0.12);
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
}

body.dark .self-review-sticky-header {
  background: rgba(16, 22, 35, 0.82);
  border-color: rgba(255, 255, 255, 0.12);
}

.self-review-header-main {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.self-review-header-main .week-picker {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 3px 8px;
  font-size: 12px;
}

.self-review-header-main .week-picker select {
  min-height: 24px;
  font-size: 12px;
}

.self-review-week-picker {
  width: 100%;
  min-width: 0;
}

.self-review-week-picker select {
  width: 100%;
}

.self-review-compact-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.self-review-compact-summary::-webkit-scrollbar {
  display: none;
}

.self-review-compact-summary span {
  flex: 0 0 auto;
  padding: 4px 8px;
  color: var(--muted);
  border: 1px solid rgba(116, 128, 154, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  font-size: 12px;
  font-weight: 800;
}

.self-review-compact-summary strong {
  color: var(--ink);
  font-size: 13px;
}

body.dark .self-review-compact-summary span {
  background: rgba(255, 255, 255, 0.06);
}

.self-review-timer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
  padding: 6px;
  border: 1px solid rgba(52, 120, 246, 0.13);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(52, 120, 246, 0.08), rgba(49, 183, 170, 0.06)),
    rgba(255, 255, 255, 0.42);
}

body.dark .self-review-timer {
  background:
    linear-gradient(135deg, rgba(52, 120, 246, 0.14), rgba(49, 183, 170, 0.1)),
    rgba(255, 255, 255, 0.05);
  border-color: rgba(117, 156, 255, 0.16);
}

.self-review-timer span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.42);
}

body.dark .self-review-timer span {
  background: rgba(255, 255, 255, 0.06);
}

.self-review-timer small {
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.self-review-timer strong {
  min-width: 0;
  color: var(--ink);
  font-size: clamp(15px, 2.6vw, 19px);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.self-review-header-controls {
  display: block;
  align-items: center;
  min-width: 0;
}

.self-review-filter-tabs {
  min-width: 0;
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.self-review-filter-tabs::-webkit-scrollbar {
  display: none;
}

.self-review-filter-tabs button {
  flex: 0 0 auto;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(116, 128, 154, 0.18);
  border-radius: 999px;
  font-weight: 800;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 100ms ease;
}

.self-review-filter-tabs button:active {
  transform: scale(0.97);
}

.self-review-filter-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, #3478f6, #31b7aa);
  border-color: rgba(52, 120, 246, 0.4);
  box-shadow: 0 8px 18px rgba(52, 120, 246, 0.2);
}

.self-review-filter-tabs button.has-count:not(.active) {
  color: var(--ink);
  border-color: rgba(52, 120, 246, 0.2);
  background: rgba(52, 120, 246, 0.07);
}

.self-review-filter-tabs button.is-zero:not(.active) {
  opacity: 0.52;
  background: rgba(255, 255, 255, 0.36);
}

.self-review-filter-tabs button strong {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(116, 128, 154, 0.12);
  font-size: 12px;
}

.self-review-filter-tabs button.active strong {
  background: rgba(255, 255, 255, 0.22);
}

.self-review-search-trigger {
  min-height: 30px;
  padding: 5px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(116, 128, 154, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.self-review-search-trigger.active,
.self-review-search-trigger[aria-expanded="true"] {
  color: var(--primary);
  border-color: rgba(52, 120, 246, 0.32);
  background: rgba(52, 120, 246, 0.09);
}

.self-review-search {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(116, 128, 154, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

body.dark .self-review-filter-tabs button,
body.dark .self-review-search-trigger {
  background: rgba(255, 255, 255, 0.06);
}

.self-review-search-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: rgba(102, 116, 145, 0.92);
}

.self-review-search-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.self-review-search input {
  min-width: 0;
  width: 100%;
  min-height: 28px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-size: 14px;
}

.self-review-search input:focus {
  outline: none;
}

.self-review-search:focus-within {
  border-color: rgba(52, 120, 246, 0.42);
  box-shadow: 0 0 0 3px rgba(52, 120, 246, 0.12);
}

.self-review-search-clear {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(116, 128, 154, 0.12);
  border: 0;
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
}

body.dark .self-review-search {
  background: rgba(255, 255, 255, 0.07);
}

body.dark .self-review-search-icon {
  color: rgba(192, 203, 224, 0.78);
}

.self-review-page-note {
  margin: 0 2px;
}

.self-review-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 16px 0 12px;
}

.self-review-summary > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(116, 128, 154, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
}

.self-review-summary small,
.self-review-card-head small,
.self-review-source small {
  color: var(--muted);
  font-weight: 750;
}

.self-review-summary strong {
  color: var(--ink);
  font-size: 23px;
}

.self-review-list {
  display: grid;
  gap: 13px;
}

.self-review-card {
  display: block;
  padding: 0;
  border-radius: 20px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.self-review-card.expanded {
  box-shadow: 0 12px 30px rgba(31, 55, 98, 0.13);
}

.self-review-card.ready {
  border-color: rgba(52, 199, 89, 0.42);
  background:
    linear-gradient(135deg, rgba(52, 199, 89, 0.08), transparent 45%),
    var(--panel);
}

.self-review-card.rejected {
  border-color: rgba(255, 69, 58, 0.34);
}

.self-review-card-headline {
  display: block;
  min-width: 0;
}

.self-review-card-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 38px 62px minmax(120px, 1fr) minmax(108px, 0.82fr) 72px auto 24px;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 11px 13px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: inherit;
  transition: background 160ms ease, transform 100ms ease;
}

.self-review-open-link {
  align-self: center;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  padding: 7px 12px;
  color: var(--primary);
  background: rgba(52, 120, 246, 0.08);
  border: 1px solid rgba(52, 120, 246, 0.22);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, transform 100ms ease;
}

.self-review-open-link:hover {
  background: rgba(52, 120, 246, 0.13);
  border-color: rgba(52, 120, 246, 0.34);
}

.self-review-open-link:active {
  transform: scale(0.97);
}

.self-review-avatar {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #3478f6, #31b7aa);
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(52, 120, 246, 0.16);
  font-size: 16px;
  font-weight: 900;
}

.self-review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.self-review-card-toggle:hover {
  background: rgba(52, 120, 246, 0.05);
}

.self-review-card-toggle:active {
  transform: scale(0.995);
}

.self-review-card-toggle:focus-visible {
  outline: 3px solid rgba(52, 120, 246, 0.25);
  outline-offset: -3px;
}

.self-review-summary-no,
.self-review-summary-member,
.self-review-summary-date,
.self-review-summary-score {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.self-review-summary-no small,
.self-review-summary-member small,
.self-review-summary-date small,
.self-review-summary-score small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.self-review-summary-no strong,
.self-review-summary-member strong,
.self-review-summary-date strong,
.self-review-summary-score strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.self-review-summary-no strong {
  color: var(--primary);
  font-size: 18px;
}

.self-review-summary-member strong {
  font-size: 18px;
}

.self-review-summary-date {
  color: var(--ink);
}

.self-review-summary-date strong {
  font-size: 16px;
}

.self-review-summary-score {
  justify-items: center;
}

.self-review-summary-score strong {
  font-size: 21px;
}

.self-review-summary-status {
  max-width: 116px;
  justify-self: end;
  padding: 6px 10px;
  border: 1px solid transparent;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.self-review-summary-status.status-blue {
  color: #fff;
  background: #3478f6;
  border-color: rgba(52, 120, 246, 0.35);
}

.self-review-summary-status.status-orange {
  color: #7a4300;
  background: #ffd89a;
  border-color: rgba(255, 149, 0, 0.42);
}

.self-review-summary-status.status-red {
  color: #fff;
  background: #ff5b66;
  border-color: rgba(255, 59, 48, 0.4);
}

.self-review-summary-status.status-green {
  color: #fff;
  background: #34c759;
  border-color: rgba(52, 199, 89, 0.42);
}

.self-review-summary-chevron {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--muted);
  transition: transform 180ms ease;
}

.self-review-card.expanded .self-review-summary-chevron {
  transform: rotate(180deg);
}

.self-review-card-body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    grid-template-rows 220ms cubic-bezier(.2, .8, .2, 1),
    opacity 180ms ease,
    transform 220ms cubic-bezier(.2, .8, .2, 1),
    padding 220ms ease,
    border-color 180ms ease;
  gap: 9px;
  min-width: 0;
  padding: 0 13px;
  border-top: 1px solid transparent;
}

.self-review-card.expanded .self-review-card-body {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  padding-bottom: 13px;
  border-top-color: rgba(116, 128, 154, 0.1);
}

.self-review-card-body-inner {
  min-height: 0;
  display: grid;
  gap: 9px;
  overflow: hidden;
}

.self-review-workflow {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding-top: 12px;
}

.self-review-flags {
  gap: 7px;
  padding-top: 10px;
}

.self-review-items {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.self-review-items .checkin-item-button:nth-child(-n + 3) {
  grid-column: span 2;
}

.self-review-items .checkin-item-button:nth-child(n + 4) {
  grid-column: span 3;
}

.self-review-items .checkin-item-button {
  border-width: 1.5px;
}

.self-review-items .checkin-item-button:not(.selected):not(:disabled) {
  background: rgba(255, 255, 255, 0.72);
}

.self-review-items .checkin-item-button.selected {
  color: #0f695f;
  border-color: rgba(38, 166, 138, 0.68);
  background:
    linear-gradient(135deg, rgba(52, 120, 246, 0.18), rgba(52, 199, 137, 0.26)),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 22px rgba(43, 143, 160, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.self-review-items .checkin-item-button:disabled {
  color: rgba(101, 114, 143, 0.58);
  border-style: dashed;
  background: rgba(116, 128, 154, 0.06);
  box-shadow: none;
}

.self-review-source {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(116, 128, 154, 0.07);
}

.self-review-source-toggle {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  color: var(--muted);
  background: rgba(116, 128, 154, 0.05);
  border: 1px solid rgba(116, 128, 154, 0.13);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 750;
}

.self-review-source-toggle:hover {
  color: var(--primary);
  border-color: rgba(52, 120, 246, 0.25);
}

.self-review-source-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.self-review-source-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.d001-standard-modal:has(.review-correction-modal-summary) {
  max-height: min(90vh, 760px);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.d001-standard-modal:has(.review-correction-modal-summary) .d001-modal-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 16px;
}

.d001-standard-modal:has(.review-correction-modal-summary) .d001-modal-footer {
  position: relative;
  z-index: 1;
  padding-top: 12px;
  border-top: 1px solid rgba(116, 128, 154, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.94));
}

body.dark .d001-standard-modal:has(.review-correction-modal-summary) .d001-modal-footer {
  background:
    linear-gradient(180deg, rgba(27, 36, 52, 0.82), rgba(21, 29, 43, 0.96));
  border-color: rgba(255, 255, 255, 0.1);
}

.review-correction-modal-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(92px, 0.7fr);
  gap: 8px;
  min-width: 0;
}

.review-correction-modal-summary > span {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(116, 128, 154, 0.16);
  border-radius: 10px;
  background: rgba(116, 128, 154, 0.07);
}

.review-correction-modal-summary small {
  color: var(--muted);
  font-size: 12px;
}

.review-correction-modal-summary strong {
  overflow-wrap: anywhere;
}

.review-correction-modal-section {
  display: grid;
  gap: 10px;
}

.review-correction-modal-heading {
  display: grid;
  gap: 3px;
}

.review-correction-modal-heading > div {
  display: flex;
  align-items: center;
  gap: 4px;
}

.review-correction-modal-heading span,
.review-correction-modal-note span span {
  color: #ff3b30;
}

.review-correction-modal-heading small {
  color: var(--muted);
  font-weight: 500;
}

.review-correction-modal-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.review-correction-modal-item {
  min-width: 0;
  min-height: 46px;
  padding: 8px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(116, 128, 154, 0.24);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 100ms ease;
}

.review-correction-modal-item:hover {
  border-color: rgba(255, 59, 48, 0.42);
}

.review-correction-modal-item:active {
  transform: scale(0.97);
}

.review-correction-modal-item:focus-visible {
  outline: 3px solid rgba(255, 59, 48, 0.2);
  outline-offset: 2px;
}

.review-correction-modal-item.selected {
  color: #a9232b;
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.18), rgba(255, 149, 0, 0.12));
  border-color: rgba(255, 59, 48, 0.72);
  box-shadow: 0 8px 18px rgba(200, 50, 57, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.review-correction-modal-note textarea {
  min-height: 112px;
  max-height: 30vh;
}

.review-skip-correction-warning {
  display: grid;
  gap: 5px;
  padding: 13px 15px;
  color: #9a4b00;
  background: rgba(255, 149, 0, 0.11);
  border: 1px solid rgba(255, 149, 0, 0.28);
  border-radius: 14px;
  overflow-wrap: anywhere;
}

.review-skip-correction-warning strong {
  color: #8b3f00;
}

.review-skip-correction-warning span {
  font-size: 13px;
  line-height: 1.5;
}

body.dark .review-correction-modal-summary > span,
body.dark .review-correction-modal-item {
  background: rgba(255, 255, 255, 0.06);
}

body.dark .review-correction-modal-item.selected {
  color: #ff9b95;
  background: rgba(255, 59, 48, 0.16);
}

body.dark .review-skip-correction-warning {
  color: #ffc078;
  background: rgba(255, 149, 0, 0.14);
  border-color: rgba(255, 178, 72, 0.3);
}

body.dark .review-skip-correction-warning strong {
  color: #ffd09a;
}

@media (max-width: 520px) {
  .d001-standard-modal:has(.review-correction-modal-summary) {
    width: 95%;
    max-height: 88vh;
  }

  .review-correction-modal-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-correction-modal-summary > span:first-child {
    grid-column: 1 / -1;
  }

  .review-correction-modal-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.self-review-source > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.self-review-source-link-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.self-review-source-url {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.self-review-source-open {
  margin-right: 0;
}

.self-review-source p {
  margin: 0;
}

.self-review-score-check {
  display: grid;
  gap: 2px;
  padding: 10px 13px;
  border-radius: 13px;
  font-size: 13px;
}

.self-review-score-check.match {
  color: #147a3c;
  background: rgba(52, 199, 89, 0.1);
}

.self-review-score-check.mismatch {
  color: #c23b34;
  background: rgba(255, 69, 58, 0.09);
}

.self-review-link-review {
  width: 100%;
  flex: 0 0 100%;
  min-height: 42px;
  margin: 0;
  border-radius: 12px;
  padding: 9px 14px;
  color: #2365d6;
  background: #eaf2ff;
  border: 1px solid rgba(52, 120, 246, 0.34);
  font-size: 16px;
  font-weight: 900;
  justify-self: stretch;
  box-shadow: none;
}

.self-review-link-review:hover {
  color: #1f5fcf;
  background: #dfeaff;
  border-color: rgba(52, 120, 246, 0.48);
}

.self-review-link-review:active {
  transform: scale(0.97);
}

body.dark .self-review-link-review {
  color: #9fc0ff;
  background: #1d3157;
  border-color: rgba(143, 177, 255, 0.42);
}

.self-review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding-top: 1px;
}

.self-review-actions > button {
  min-height: 42px;
  border-radius: 12px;
  padding: 9px 14px;
  font-weight: 850;
}

.self-review-primary-action,
.self-review-danger-action {
  min-width: 148px;
}

.self-review-danger-action {
  color: #c83239;
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.32);
  box-shadow: none;
}

.self-review-danger-action:hover:not(:disabled) {
  color: #b5242c;
  background: rgba(255, 59, 48, 0.13);
  border-color: rgba(255, 59, 48, 0.46);
}

.self-review-secondary-action {
  color: var(--muted);
}

.self-review-actions .reviewed {
  background: #34c759;
}

.self-review-more-menu {
  position: relative;
  margin-left: auto;
}

.self-review-more-menu > summary {
  width: auto;
  min-width: 72px;
  min-height: 42px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(116, 128, 154, 0.08);
  border: 1px solid rgba(116, 128, 154, 0.16);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  list-style: none;
}

.self-review-more-menu > summary::-webkit-details-marker {
  display: none;
}

.self-review-more-menu > summary:hover,
.self-review-more-menu[open] > summary {
  color: var(--ink);
  background: rgba(116, 128, 154, 0.14);
}

.self-review-more-menu > summary:focus-visible {
  outline: 3px solid rgba(52, 120, 246, 0.24);
  outline-offset: 2px;
}

.self-review-more-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  min-width: 176px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(116, 128, 154, 0.22);
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(28, 42, 70, 0.22);
}

.self-review-more-popover button {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: #c83239;
  text-align: left;
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.16);
  border-radius: 10px;
  font-weight: 850;
}

.self-review-more-popover button:hover {
  color: #b3242c;
  background: rgba(255, 59, 48, 0.14);
  border-color: rgba(255, 59, 48, 0.28);
}

body.dark .self-review-card-toggle:hover,
body.dark .self-review-source-toggle,
body.dark .self-review-more-menu > summary {
  background: rgba(255, 255, 255, 0.06);
}

body.dark .self-review-more-popover {
  background: #151c2b;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
}

body.dark .self-review-more-popover button {
  color: #ff8b91;
  background: rgba(255, 69, 58, 0.14);
  border-color: rgba(255, 69, 58, 0.24);
}

body.dark .self-review-more-popover button:hover {
  color: #ffadb1;
  background: rgba(255, 69, 58, 0.2);
  border-color: rgba(255, 69, 58, 0.34);
}

.self-review-completed summary {
  cursor: pointer;
  font-weight: 850;
}

.self-review-completed.is-filtered {
  display: grid;
  gap: 10px;
}

.self-review-completed-list {
  padding-top: 6px;
}

.self-review-completed-row {
  min-width: 0;
}

.self-review-completed-row strong,
.self-review-completed-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.self-review-failed {
  border-color: rgba(255, 59, 48, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 244, 245, 0.92), rgba(255, 255, 255, 0.9));
}

body.dark .self-review-failed {
  background:
    linear-gradient(145deg, rgba(52, 26, 31, 0.66), rgba(28, 33, 45, 0.92));
}

.self-review-failed-row {
  display: grid;
  gap: 6px;
  align-items: start;
  border-left: 3px solid rgba(239, 91, 99, 0.58);
}

.self-review-failed-row small {
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.self-review-submit-bar {
  position: sticky;
  z-index: 24;
  bottom: calc(92px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border-color: rgba(52, 120, 246, 0.26);
  box-shadow: 0 18px 42px rgba(34, 62, 112, 0.18);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.self-review-submit-bar .button {
  min-width: 148px;
}

.self-review-submit-actions {
  display: grid;
  gap: 8px;
  min-width: 292px;
}

.self-review-submit-actions > .button {
  width: 100%;
}

.self-review-scoreboard-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.self-review-scoreboard-shortcuts .ghost {
  flex: 1 1 136px;
  min-width: 0;
}

.self-review-submit-confirm {
  display: grid;
  gap: 12px;
}

.self-review-submit-warning {
  margin: 0;
  padding: 12px 14px;
  color: #9a5a00;
  border-radius: 14px;
  background: rgba(255, 149, 0, 0.12);
  font-weight: 850;
  line-height: 1.55;
}

.self-review-complete-modal {
  display: grid;
  gap: 12px;
}

.self-review-complete-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.self-review-complete-stats span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(52, 120, 246, 0.14);
  border-radius: 14px;
  background: rgba(52, 120, 246, 0.07);
}

.self-review-complete-stats small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.self-review-complete-stats strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.self-review-complete-praise {
  margin: 0;
  padding: 12px 14px;
  color: #147a3c;
  border-radius: 14px;
  background: rgba(52, 199, 89, 0.11);
  font-weight: 850;
  line-height: 1.5;
}

body.dark .self-review-complete-stats span {
  background: rgba(52, 120, 246, 0.12);
}

body.dark .self-review-complete-praise {
  color: #87e1a8;
  background: rgba(52, 199, 89, 0.14);
}

body:has(#app[data-view="checkinReview"]) .tabbar,
body.checkin-review-mode .tabbar,
body:has(#app[data-view="checkinReview"]) .tab-search-button,
body.checkin-review-mode .tab-search-button,
body:has(#app[data-view="checkinReview"]) .search-dock,
body.checkin-review-mode .search-dock,
body:has(#app[data-view="checkinReview"]) .global-search-results {
  display: none !important;
}

body.checkin-review-mode .global-search-results {
  display: none !important;
}

body:has(#app[data-view="checkinReview"]) .app-shell,
body.checkin-review-mode .app-shell {
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

#app[data-view="checkinReview"] .self-review-submit-bar {
  bottom: max(8px, env(safe-area-inset-bottom));
}

@media (prefers-reduced-motion: reduce) {
  .self-review-card-body {
    transition: none;
  }
}

@media (max-width: 720px) {
  .weekly-review-app-tabs {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .weekly-review-app-tabs button {
    width: 100%;
  }

  .weekly-review-current-meta,
  .weekly-review-diagnostic-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .weekly-review-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weekly-review-period-row {
    align-items: stretch;
    flex-direction: column;
  }

  .weekly-review-period-picker {
    flex-basis: auto;
    min-width: 0;
  }

  .weekly-review-scoreboard-actions .ghost {
    flex: 1 1 100%;
    width: 100%;
  }

  .self-checkin-panel {
    padding: 14px;
  }

  .weekly-mission-panel {
    padding: 15px;
  }

  .weekly-mission-confirm-panel .picker-actions {
    gap: 10px;
  }

  .weekly-mission-confirm-panel .picker-actions button {
    min-width: 0;
    flex: 1;
  }

  .weekly-mission-period {
    margin-top: 12px;
    font-size: 14px;
  }

  .weekly-mission-form input,
  .weekly-mission-form textarea {
    padding: 10px 12px;
  }

  .my-overview-card {
    grid-template-columns: 1fr;
  }

  .my-week-score-card {
    min-height: 92px;
  }

  .my-record-list > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .my-record-list strong {
    text-align: left;
  }

  .weekly-summary-simple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weekly-summary-simple > div:last-child {
    grid-column: 1 / -1;
  }

  .weekly-review-card-head {
    grid-template-columns: 58px minmax(0, 1fr) 132px;
  }

  .weekly-review-confirmed-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .self-checkin-heading {
    gap: 8px;
  }

  .self-checkin-score-inline {
    gap: 5px;
    padding: 7px 9px;
  }

  .self-checkin-score-inline span {
    font-size: 11px;
  }

  .self-checkin-score-inline strong {
    font-size: 13px;
  }

  .self-checkin-score-inline b {
    font-size: 18px;
  }

  .self-checkin-task-state {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    margin-top: 10px;
    padding: 11px;
  }

  .self-checkin-task-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 18px;
  }

  .self-checkin-copy-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .self-checkin-items {
    gap: 8px;
  }

  .checkin-item-button {
    min-height: 70px;
    padding: 9px 6px;
    gap: 7px;
    border-radius: 16px;
  }

  .checkin-item-icon {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
  }

  .checkin-item-button strong {
    font-size: 18px;
  }

  .self-checkin-items .checkin-item-button:nth-child(n + 4) strong,
  .self-review-items .checkin-item-button:nth-child(n + 4) strong {
    font-size: 20px;
  }

  .self-checkin-form .button {
    width: 100%;
  }

  .self-checkin-locked {
    grid-template-columns: auto 1fr;
    gap: 8px 11px;
  }

  .self-checkin-locked a {
    grid-column: 1 / -1;
  }

  .self-checkin-preview {
    padding: 13px;
  }

  .self-checkin-review-page {
    gap: 10px;
    padding-bottom: 130px;
  }

  .self-review-sticky-header {
    top: 0;
    gap: 5px;
    padding: 7px;
    border-radius: 16px;
  }

  .self-review-header-main {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .self-review-header-main .week-picker {
    width: 100%;
    justify-content: space-between;
    min-height: 30px;
  }

  .self-review-header-main .week-picker select {
    max-width: 168px;
  }

  .self-review-timer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 6px;
    border-radius: 14px;
  }

  .self-review-timer span {
    padding: 7px 8px;
    border-radius: 10px;
  }

  .self-review-timer small {
    font-size: 10px;
  }

  .self-review-timer strong {
    font-size: 16px;
  }

  .self-review-header-controls {
    display: block;
  }

  .self-review-filter-tabs {
    padding-bottom: 0;
  }

  .self-review-filter-tabs button {
    min-height: 31px;
    padding: 5px 8px;
    font-size: 12px;
  }

  .self-review-filter-tabs button strong {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 11px;
  }

  .self-review-search {
    padding: 6px 9px;
  }

  .self-review-page-note {
    font-size: 13px;
  }

  .self-review-summary {
    gap: 5px;
  }

  .self-review-summary > span {
    padding: 8px 5px;
    text-align: center;
  }

  .self-review-summary small {
    font-size: 10px;
    line-height: 1.2;
  }

  .self-review-summary strong {
    font-size: 19px;
  }

  .self-review-card {
    padding: 0;
  }

  .self-review-card-headline {
    display: block;
  }

  .self-review-card-toggle {
    grid-template-columns: 30px 30px minmax(54px, 1fr) minmax(62px, 0.82fr) 32px minmax(42px, auto) 15px;
    gap: 4px;
    padding: 8px 7px 8px 8px;
  }

  .self-review-avatar {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 13px;
  }

  .self-review-summary-no small,
  .self-review-summary-member small,
  .self-review-summary-score small {
    font-size: 9px;
  }

  .self-review-summary-no strong {
    font-size: 15px;
  }

  .self-review-summary-member strong {
    font-size: 15px;
  }

  .self-review-summary-date strong {
    font-size: 13px;
  }

  .self-review-summary-score strong {
    font-size: 17px;
  }

  .self-review-summary-status {
    max-width: 64px;
    padding: 4px 6px;
    font-size: 10px;
  }

  .self-review-summary-chevron {
    width: 18px;
    height: 18px;
  }

  .self-review-card-body {
    gap: 7px;
    padding-inline: 9px;
  }

  .self-review-card.expanded .self-review-card-body {
    padding-bottom: 9px;
  }

  .self-review-card-body-inner {
    gap: 7px;
  }

  .self-review-workflow {
    gap: 8px;
    padding-top: 10px;
  }

  .self-review-items {
    gap: 8px;
  }

  .self-review-source-link-row {
    grid-template-columns: 1fr;
  }

  .self-review-source-open {
    width: 100%;
    min-height: 34px;
  }

  .self-review-complete-stats {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .self-review-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .self-review-actions > button {
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
  }

  .self-review-link-review {
    grid-column: 1 / -1;
  }

  .self-review-primary-action,
  .self-review-danger-action {
    min-width: 0;
  }

  .self-review-more-menu {
    margin-left: 0;
  }

  .self-review-more-menu > summary {
    width: 100%;
    min-width: 0;
  }

  .self-review-more-popover {
    right: 0;
    left: 0;
    min-width: 0;
  }

  .self-review-submit-bar {
    bottom: calc(78px + env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 10px;
  }

  #app[data-view="checkinReview"] .self-review-submit-bar {
    bottom: max(6px, env(safe-area-inset-bottom));
  }

  .self-review-submit-bar .button {
    width: 100%;
  }

  .self-review-submit-actions {
    min-width: 0;
  }
}


/* ===== 网站备案信息 ===== */

.site-record-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 12px;
  font-size: 13px;
  color: #8a8f9c;
}

.site-record-footer a {
  color: inherit;
  text-decoration: none;
}

.site-record-footer a:hover {
  opacity: 0.8;
}

.mps-record-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.record-divider {
  color: #c5c7ce;
}

.site-release-version {
  flex: 0 0 100%;
  width: 100%;
  margin-top: 2px;
  color: #a0a6b2;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 480px) {
  .site-release-version {
    font-size: 10px;
  }
}

/* ===== 管理员测试时间 ===== */

.test-time-banner {
  position: sticky;
  top: calc(10px + env(safe-area-inset-top));
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
  padding: 11px 14px;
  color: #7a3500;
  border: 1px solid rgba(255, 149, 0, 0.38);
  border-radius: 18px;
  background: rgba(255, 238, 211, 0.9);
  box-shadow: 0 12px 28px rgba(168, 93, 0, 0.16);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.test-time-banner span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.test-time-banner strong {
  font-size: 14px;
}

.test-time-banner small {
  overflow-wrap: anywhere;
  font-weight: 700;
}

.test-time-banner button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 13px;
  color: #8a3f00;
  font-weight: 800;
  border: 1px solid rgba(255, 149, 0, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.test-time-banner.global {
  color: #7a2800;
  border-color: rgba(255, 69, 58, 0.34);
  background: rgba(255, 232, 220, 0.94);
  box-shadow: 0 12px 30px rgba(180, 55, 20, 0.18);
}

.test-time-banner.global button {
  color: #9b2d12;
  border-color: rgba(255, 69, 58, 0.28);
}

.test-time-banner.override {
  color: #075f63;
  border-color: rgba(0, 154, 162, 0.28);
  background: rgba(222, 250, 249, 0.94);
  box-shadow: 0 12px 30px rgba(16, 120, 128, 0.16);
}

.test-time-banner.override button {
  color: #067078;
  border-color: rgba(0, 154, 162, 0.28);
}

.time-override-card {
  border-color: rgba(0, 154, 162, 0.20);
  background:
    linear-gradient(135deg, rgba(226, 251, 249, 0.76), rgba(255, 255, 255, 0.74)),
    var(--glass);
}

.test-time-tools {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border-color: rgba(255, 149, 0, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 244, 225, 0.74), rgba(255, 255, 255, 0.72)),
    var(--glass);
}

.test-time-tools-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.test-time-tools-heading h2,
.test-time-tools-heading p {
  margin: 0;
}

.test-time-tools-heading .muted {
  margin-top: 5px;
}

.test-time-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  color: #7a3500;
  border: 1px solid rgba(255, 149, 0, 0.26);
  border-radius: 14px;
  background: rgba(255, 149, 0, 0.1);
}

.test-time-current span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.test-time-current small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.global-test-time-tools {
  border-color: rgba(255, 69, 58, 0.25);
  background:
    linear-gradient(135deg, rgba(255, 236, 225, 0.72), rgba(235, 246, 255, 0.72)),
    var(--glass);
}

.test-time-switch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.56);
  cursor: pointer;
}

.test-time-switch > span {
  display: grid;
  gap: 2px;
}

.test-time-switch small {
  color: var(--muted);
}

.test-time-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.test-time-switch i {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: rgba(122, 137, 165, 0.28);
  box-shadow: inset 0 0 0 1px rgba(91, 107, 137, 0.14);
  transition: background 180ms ease;
}

.test-time-switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(32, 48, 78, 0.22);
  transition: transform 180ms ease;
}

.test-time-switch input:checked + i {
  background: #34c759;
}

.test-time-switch input:checked + i::after {
  transform: translateX(20px);
}

.test-time-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.test-time-presets .restore {
  color: #9a4d00;
  border-color: rgba(255, 149, 0, 0.32);
}

@media (max-width: 720px) {
  .test-time-banner {
    top: calc(6px + env(safe-area-inset-top));
    align-items: stretch;
    margin-inline: 2px;
  }

  .test-time-banner button {
    padding-inline: 10px;
  }

  .test-time-tools {
    padding: 14px;
  }

  .test-time-tools-heading,
  .test-time-current {
    align-items: flex-start;
  }

  .test-time-current {
    display: grid;
    gap: 3px;
  }

  .test-time-fields {
    grid-template-columns: 1fr 1fr;
  }

  .test-time-presets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .test-time-presets button {
    min-width: 0;
    padding-inline: 8px;
  }
}

@media (max-width: 720px) {
  .my-share-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .my-share-stats .metric:last-child {
    grid-column: 1 / -1;
  }

  .my-share-stats .metric {
    min-height: 92px;
  }

  .my-share-filter {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .my-share-filter button {
    min-width: 0;
    padding-inline: 10px;
  }

  .my-album-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .my-album-stats .metric:last-child {
    grid-column: 1 / -1;
  }

  .my-album-stats .metric {
    min-height: 92px;
  }

  .album-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .album-event-body {
    padding: 10px 11px 12px;
  }

  .album-event-body strong {
    font-size: 16px;
  }

  .album-event-body small {
    font-size: 11px;
  }

  .album-detail-card {
    padding: 14px;
    border-radius: 22px;
  }

  .album-detail-head {
    display: grid;
  }

  .album-detail-tags {
    justify-content: flex-start;
  }

  .album-detail-toolbar .button,
  .album-detail-toolbar .ghost {
    min-height: 42px;
    padding: 9px 12px;
  }

  .album-upload-backdrop {
    place-items: end center;
    padding: 0;
  }

  .album-upload-dialog {
    width: 100%;
    max-height: 90dvh;
    padding: 18px 14px max(18px, env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
  }

  .album-upload-summary {
    align-items: flex-start;
  }

  .album-upload-item {
    padding: 9px 10px;
  }

  .album-upload-dialog-actions > * {
    flex: 1;
  }

  .album-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .album-photo-card > button {
    border-radius: 15px;
  }
}

@media (max-width: 380px) {
  .album-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  .my-share-stats {
    grid-template-columns: 1fr;
  }

  .my-share-stats .metric:last-child {
    grid-column: auto;
  }

  .my-share-stats .metric {
    min-width: 0;
    min-height: 84px;
  }
}

/* Home UX V1.2.3-C: task-first visual system */
.dashboard-home-page {
  --home-card-radius: 22px;
  --home-card-padding: 16px;
  --home-card-gap: 12px;
  display: grid;
  gap: var(--home-card-gap);
  margin: 16px 0;
}

.dashboard-home-page .section {
  margin: 0;
}

.home-task-flow,
.home-task-list {
  display: grid;
  gap: var(--home-card-gap);
}

.dashboard-home-page .home-card,
.dashboard-home-page .dashboard-priority-charts > .panel {
  padding: var(--home-card-padding);
  border-color: rgba(116, 128, 154, 0.16);
  border-radius: var(--home-card-radius);
  background: rgba(255, 255, 255, 0.57);
  box-shadow: 0 12px 30px rgba(35, 52, 91, 0.08), inset 0 1px rgba(255, 255, 255, 0.68);
}

body.dark .dashboard-home-page .home-card,
body.dark .dashboard-home-page .dashboard-priority-charts > .panel {
  background: rgba(26, 31, 42, 0.7);
}

.dashboard-home-page .home-card:hover,
.dashboard-home-page .dashboard-priority-charts > .panel:hover {
  transform: translateY(-1px);
  border-color: rgba(52, 120, 246, 0.24);
  box-shadow: 0 15px 34px rgba(35, 52, 91, 0.11), inset 0 1px rgba(255, 255, 255, 0.7);
}

.home-card-heading,
.home-card-title,
.home-task-status-line {
  display: flex;
  align-items: center;
}

.home-card-heading {
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.home-card-title {
  gap: 10px;
  min-width: 0;
}

.home-card-title h2,
.dashboard-home-page .home-card h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
}

.home-card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  color: var(--blue);
  border-radius: 12px;
  background: rgba(52, 120, 246, 0.1);
}

.home-task-icon-svg,
.home-card-icon svg,
.self-checkin-score-inline svg {
  width: 21px;
  height: 21px;
}

.self-checkin-score-inline span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.self-checkin-score-inline span svg {
  width: 14px;
  height: 14px;
  color: #f0a400;
}

.home-status-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.home-status-tag.is-not-started {
  color: #6f7682;
  border-color: rgba(142, 142, 147, 0.22);
  background: rgba(142, 142, 147, 0.1);
}

.home-status-tag.is-action {
  color: #1e63cf;
  border-color: rgba(52, 120, 246, 0.24);
  background: rgba(52, 120, 246, 0.11);
}

.home-status-tag.is-pending {
  color: #b86200;
  border-color: rgba(255, 149, 0, 0.26);
  background: rgba(255, 149, 0, 0.12);
}

.home-status-tag.is-returned {
  color: #d32f2f;
  border-color: rgba(255, 59, 48, 0.26);
  background: rgba(255, 59, 48, 0.11);
}

.home-status-tag.is-complete {
  color: #168a43;
  border-color: rgba(52, 199, 89, 0.26);
  background: rgba(52, 199, 89, 0.11);
}

.home-status-tag.is-closed {
  color: #4b5563;
  border-color: rgba(75, 85, 99, 0.25);
  background: rgba(75, 85, 99, 0.12);
}

.home-task-status-line {
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.home-task-status-line > strong {
  min-width: 0;
}

.home-week-tag {
  min-height: 27px;
  padding: 5px 9px;
  color: var(--muted);
  border: 1px solid rgba(116, 128, 154, 0.17);
  border-radius: 999px;
  background: rgba(116, 128, 154, 0.07);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.home-overview-card {
  min-height: 0;
  padding: 13px 16px;
  border-radius: var(--home-card-radius);
}

.dashboard-home-page .home-overview-card > .row:first-of-type {
  min-height: 40px;
  height: auto;
  padding-right: 128px;
}

.home-overview-copy {
  min-width: 0;
  max-width: 100%;
}

.home-overview-card .daily-quote {
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 750;
}

.home-overview-card .dashboard-meeting-float {
  top: 12px;
  right: 14px;
  min-height: 40px;
  padding: 0 15px;
  font-size: 14px;
  box-shadow: 0 10px 22px rgba(52, 120, 246, 0.18);
}

.dashboard-home-page .home-overview-card > .row.home-overview-top {
  min-height: 40px;
  padding-right: 0;
  flex-wrap: nowrap;
}

.home-overview-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

.home-overview-actions .dashboard-meeting-float {
  position: static;
  inset: auto;
}

.dashboard-message-entry {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--text);
  border: 1px solid rgba(116, 128, 154, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 22px rgba(35, 52, 91, 0.1);
  backdrop-filter: blur(18px) saturate(1.2);
}

.dashboard-message-entry:hover {
  color: var(--blue);
  border-color: rgba(52, 120, 246, 0.32);
  background: rgba(235, 243, 255, 0.84);
}

.dashboard-message-entry:active {
  transform: scale(0.96);
}

.dashboard-message-entry svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-message-entry.has-unread {
  color: var(--blue);
  box-shadow: 0 10px 24px rgba(52, 120, 246, 0.18);
}

.dashboard-message-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  color: #fff;
  border: 2px solid rgba(247, 250, 255, 0.96);
  border-radius: 999px;
  background: #ff3b30;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

body.dark .dashboard-message-entry {
  background: rgba(255, 255, 255, 0.08);
}

body.dark .dashboard-message-badge {
  border-color: rgba(24, 29, 40, 0.96);
}

.home-task-list {
  gap: 7px;
  margin-top: 12px;
}

.home-task-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 54px;
  padding: 9px 11px;
  color: var(--text);
  text-align: left;
  border: 1px solid rgba(116, 128, 154, 0.14);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.4);
  transition: border-color 160ms ease, background 160ms ease, transform 100ms ease;
}

.home-task-row:hover {
  border-color: rgba(52, 120, 246, 0.25);
  background: rgba(52, 120, 246, 0.055);
}

.home-task-row:active {
  transform: scale(0.99);
}

.home-task-row > span:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.home-task-row strong,
.home-task-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-task-row small {
  color: var(--muted);
  font-size: 12px;
}

.home-row-action {
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.dashboard-home-page .button,
.dashboard-home-page .ghost,
.dashboard-home-page .danger {
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 850;
}

.dashboard-ios-hero {
  position: relative;
  display: grid;
  gap: 20px;
  min-height: min(820px, calc(100svh - 118px));
  padding: 34px 20px 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 38px;
  background:
    radial-gradient(circle at 16% 7%, rgba(255, 255, 255, 0.96), transparent 10rem),
    radial-gradient(circle at 82% 14%, rgba(118, 203, 255, 0.42), transparent 15rem),
    radial-gradient(circle at 18% 72%, rgba(52, 120, 246, 0.38), transparent 16rem),
    linear-gradient(158deg, rgba(248, 252, 255, 0.98), rgba(216, 237, 255, 0.86) 48%, rgba(240, 250, 255, 0.93));
  box-shadow: 0 28px 80px rgba(52, 120, 246, 0.17);
  isolation: isolate;
}

.dashboard-ios-ambient {
  position: absolute;
  inset: auto -15% -16% 10%;
  height: 260px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 35%, rgba(52, 120, 246, 0.22), transparent 48%),
    radial-gradient(circle at 72% 40%, rgba(47, 184, 117, 0.18), transparent 48%);
  filter: blur(20px);
  opacity: 0.9;
  z-index: -1;
}

.dashboard-ios-wave {
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.dashboard-ios-wave.one {
  inset: 25% -24% auto -22%;
  height: 310px;
  border-radius: 46% 54% 45% 55% / 44% 60% 40% 56%;
  background: linear-gradient(120deg, rgba(52, 120, 246, 0.2), rgba(255, 255, 255, 0.58), rgba(95, 210, 255, 0.2));
  transform: rotate(-9deg);
  filter: blur(1px);
}

.dashboard-ios-wave.two {
  inset: 47% -18% auto -18%;
  height: 270px;
  border-radius: 50% 44% 55% 45% / 58% 44% 56% 42%;
  background: linear-gradient(140deg, rgba(52, 120, 246, 0.46), rgba(155, 220, 255, 0.14), rgba(255, 255, 255, 0.76));
  transform: rotate(18deg);
  opacity: 0.82;
}

.dashboard-ios-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}

.dashboard-ios-greeting {
  min-width: 0;
}

.dashboard-ios-greeting p,
.dashboard-ios-greeting h2,
.dashboard-ios-greeting span {
  margin: 0;
}

.dashboard-ios-greeting p {
  margin-top: 18px;
  color: rgba(20, 38, 72, 0.72);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.55;
}

.dashboard-ios-greeting h2 {
  color: #142447;
  font-size: clamp(24px, 5.8vw, 32px);
  line-height: 1.08;
  letter-spacing: 0;
}

.dashboard-ios-greeting span {
  display: inline-block;
  margin-top: 10px;
  color: rgba(35, 52, 91, 0.64);
  font-size: 17px;
  font-weight: 750;
}

.dashboard-ios-profile {
  position: relative;
  display: inline-grid;
  grid-template-columns: 54px auto;
  align-items: center;
  gap: 7px;
  min-width: 112px;
  border: 0;
  padding: 7px 11px 7px 7px;
  color: #1769e8;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
  overflow: hidden;
  isolation: isolate;
}

.dashboard-ios-profile-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 24px;
  white-space: nowrap;
}

.dashboard-ios-profile strong {
  color: #1769e8;
  font-size: 16px;
}

.dashboard-ios-profile i {
  display: inline-flex;
  align-items: center;
  color: rgba(35, 52, 91, 0.34);
  font-style: normal;
  font-size: 24px;
  line-height: 1;
}

.dashboard-ios-avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #4ba0ff, #2fb875);
  box-shadow: 0 16px 32px rgba(52, 120, 246, 0.18);
  font-size: 24px;
}

.dashboard-ios-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dashboard-orb-stage {
  display: grid;
  place-items: center;
  min-height: min(29vh, 230px);
  margin: 4px 0 0;
}

.home-glass-surface {
  position: relative;
  isolation: isolate;
}

.home-glass-surface > .ds-material-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0.8;
  mix-blend-mode: screen;
}

.home-glass-surface > :not(.ds-material-canvas) {
  position: relative;
  z-index: 1;
}

.hero-checkin-v2 {
  --hero-checkin-size: min(43vw, 182px);
  --hero-checkin-ring-spread: 19px;
  position: relative;
  width: calc(var(--hero-checkin-size) + var(--hero-checkin-ring-spread) * 2);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: #12213f;
  background: transparent;
  cursor: pointer;
  isolation: isolate;
}

.hero-checkin-v2-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 59%, rgba(255, 255, 255, 0.72) 60%, rgba(151, 205, 255, 0.34) 67%, transparent 71%),
    conic-gradient(from 18deg, rgba(80, 150, 255, 0.1), rgba(255, 255, 255, 0.82), rgba(104, 185, 255, 0.42), rgba(255, 255, 255, 0.42), rgba(80, 150, 255, 0.1));
  box-shadow:
    0 18px 48px rgba(52, 120, 246, 0.18),
    inset 0 0 24px rgba(255, 255, 255, 0.4);
  opacity: 0.86;
}

.hero-checkin-v2-glass {
  position: relative;
  width: var(--hero-checkin-size);
  aspect-ratio: 1;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.48) 25%, rgba(190, 228, 255, 0.24) 62%, rgba(255, 255, 255, 0.28)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.54), rgba(154, 214, 255, 0.16));
  box-shadow:
    inset 0 10px 24px rgba(255, 255, 255, 0.8),
    inset 0 -18px 30px rgba(68, 136, 255, 0.14),
    0 24px 54px rgba(52, 120, 246, 0.18);
  backdrop-filter: blur(22px) saturate(1.35);
}

.hero-checkin-v2-glass::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.hero-checkin-v2.is-complete .hero-checkin-v2-ring {
  background:
    radial-gradient(circle at 50% 50%, transparent 59%, rgba(255, 255, 255, 0.7) 60%, rgba(68, 214, 135, 0.22) 67%, transparent 71%),
    conic-gradient(from 18deg, rgba(80, 150, 255, 0.08), rgba(255, 255, 255, 0.82), rgba(65, 214, 137, 0.28), rgba(255, 255, 255, 0.42), rgba(80, 150, 255, 0.08));
  box-shadow:
    0 18px 48px rgba(52, 120, 246, 0.16),
    0 0 28px rgba(47, 184, 117, 0.14),
    inset 0 0 24px rgba(255, 255, 255, 0.4);
}

.hero-checkin-v2.is-complete .hero-checkin-v2-glass {
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.5) 25%, rgba(190, 228, 255, 0.24) 62%, rgba(255, 255, 255, 0.3)),
    radial-gradient(circle at 74% 80%, rgba(58, 214, 135, 0.12), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.54), rgba(154, 214, 255, 0.16));
}

.hero-checkin-v2.home-checkin-orb--correction .hero-checkin-v2-ring {
  background:
    radial-gradient(circle at 50% 50%, transparent 55%, rgba(255, 255, 255, 0.76) 58%, rgba(255, 94, 94, 0.34) 66%, rgba(255, 52, 52, 0.12) 72%, transparent 76%),
    conic-gradient(from 18deg, rgba(255, 143, 143, 0.2), rgba(255, 255, 255, 0.9), rgba(255, 64, 64, 0.48), rgba(255, 255, 255, 0.48), rgba(255, 143, 143, 0.2));
  box-shadow:
    0 20px 54px rgba(203, 44, 59, 0.24),
    0 0 42px rgba(255, 76, 90, 0.34),
    0 0 88px rgba(255, 106, 106, 0.18),
    inset 0 0 24px rgba(255, 255, 255, 0.4);
}

.hero-checkin-v2.home-checkin-orb--correction .hero-checkin-v2-glass {
  border-color: rgba(239, 91, 99, 0.42);
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.56) 25%, rgba(255, 214, 214, 0.24) 62%, rgba(255, 255, 255, 0.34)),
    radial-gradient(circle at 76% 78%, rgba(255, 84, 84, 0.28), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 187, 187, 0.22));
  box-shadow:
    inset 0 10px 24px rgba(255, 255, 255, 0.8),
    inset 0 -18px 30px rgba(255, 112, 112, 0.18),
    0 24px 54px rgba(203, 44, 59, 0.2),
    0 0 0 1px rgba(239, 91, 99, 0.2);
}

.hero-checkin-v2.home-checkin-orb--pending-review .hero-checkin-v2-ring {
  background:
    radial-gradient(circle at 50% 50%, transparent 58%, rgba(255, 255, 255, 0.7) 60%, rgba(245, 159, 50, 0.18) 67%, transparent 72%),
    conic-gradient(from 18deg, rgba(80, 150, 255, 0.08), rgba(255, 255, 255, 0.82), rgba(245, 159, 50, 0.2), rgba(255, 255, 255, 0.42), rgba(80, 150, 255, 0.08));
  box-shadow:
    0 18px 48px rgba(52, 120, 246, 0.14),
    0 0 30px rgba(245, 159, 50, 0.14),
    inset 0 0 24px rgba(255, 255, 255, 0.4);
}

.hero-checkin-v2.home-checkin-orb--pending-review .hero-checkin-v2-glass {
  border-color: rgba(245, 159, 50, 0.25);
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.5) 25%, rgba(190, 228, 255, 0.24) 62%, rgba(255, 255, 255, 0.3)),
    radial-gradient(circle at 74% 80%, rgba(245, 159, 50, 0.14), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.54), rgba(154, 214, 255, 0.16));
}

.hero-checkin-v2-title {
  position: absolute !important;
  inset: 0;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  color: #132441;
  font-size: clamp(40px, 9vw, 54px);
  font-weight: 950;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.72);
}

.hero-checkin-v2-status {
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: 18px;
  min-height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 14px;
  color: rgba(35, 52, 91, 0.62);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.home-correction-entry {
  width: min(440px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: -8px auto 16px;
  padding: 12px 14px;
  color: #21304e;
  border: 1px solid rgba(239, 91, 99, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.78), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(239, 91, 99, 0.07));
  box-shadow:
    0 18px 42px rgba(52, 120, 246, 0.1),
    0 10px 26px rgba(239, 91, 99, 0.08);
  text-align: left;
  backdrop-filter: blur(20px) saturate(1.2);
}

.home-correction-entry-dot {
  color: #ff3b30;
  font-size: 13px;
  text-shadow: 0 0 14px rgba(255, 59, 48, 0.34);
}

.home-correction-entry-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.home-correction-entry-copy strong {
  font-size: 15px;
  line-height: 1.2;
}

.home-correction-entry-copy small,
.home-correction-entry-action {
  color: rgba(35, 52, 91, 0.62);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.home-correction-entry-action {
  white-space: nowrap;
}

.dashboard-checkin-orb {
  position: relative;
  width: min(56vw, 270px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  align-self: center;
  margin: 0;
  padding: 0;
  overflow: visible;
  color: #142447;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.44) 20%, rgba(182, 224, 255, 0.22) 58%, rgba(255, 255, 255, 0.28)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(151, 211, 255, 0.18));
  box-shadow:
    inset 0 12px 28px rgba(255, 255, 255, 0.86),
    inset 0 -28px 42px rgba(52, 120, 246, 0.18),
    0 28px 74px rgba(52, 120, 246, 0.24),
    0 0 0 16px rgba(142, 198, 255, 0.13);
  backdrop-filter: blur(24px) saturate(1.45);
  cursor: pointer;
}

.dashboard-checkin-orb::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.18);
}

.dashboard-checkin-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.dashboard-checkin-ring.outer {
  inset: -18px;
  border: 2px solid rgba(114, 174, 255, 0.4);
  box-shadow: 0 0 36px rgba(52, 120, 246, 0.16);
}

.dashboard-checkin-ring.inner {
  inset: 13px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 0 34px rgba(52, 120, 246, 0.14);
}

.dashboard-checkin-orb-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.5), transparent 28%);
  opacity: 0.9;
}

.dashboard-checkin-orb strong,
.dashboard-checkin-orb small {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
  text-shadow: 0 2px 16px rgba(255, 255, 255, 0.58);
}

.dashboard-checkin-orb strong {
  font-size: clamp(36px, 11vw, 66px);
  line-height: 1;
  font-weight: 950;
}

.dashboard-checkin-orb small {
  max-width: 9em;
  margin-top: 8px;
  color: rgba(35, 52, 91, 0.66);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.dashboard-checkin-orb.is-green,
.dashboard-checkin-orb.is-done {
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.46) 20%, rgba(190, 236, 255, 0.22) 58%, rgba(255, 255, 255, 0.28)),
    radial-gradient(circle at 72% 78%, rgba(60, 214, 128, 0.22), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.52), rgba(151, 211, 255, 0.18));
  box-shadow:
    inset 0 12px 28px rgba(255, 255, 255, 0.86),
    inset 0 -28px 42px rgba(52, 120, 246, 0.15),
    0 28px 74px rgba(52, 120, 246, 0.22),
    0 0 0 16px rgba(47, 184, 117, 0.13);
}

.dashboard-checkin-orb.is-red {
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.16) 18%, transparent 34%),
    linear-gradient(145deg, #ff8a7e, #ff3b30 58%, #ffb36a);
}

.dashboard-checkin-orb.is-gray,
.dashboard-checkin-orb.is-dark {
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.14) 18%, transparent 34%),
    linear-gradient(145deg, #a4afc2, #586276 58%, #9fc0ff);
}

.dashboard-ios-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 44px rgba(52, 120, 246, 0.1);
  backdrop-filter: blur(24px) saturate(1.35);
}

.dashboard-ios-quick-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 92px;
  padding: 6px 4px;
  color: #142447;
  border: 0;
  border-radius: 18px;
  background: transparent;
  text-align: center;
}

.dashboard-ios-quick-card strong,
.dashboard-ios-quick-card span,
.dashboard-ios-quick-card small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-ios-quick-card strong {
  font-size: 15px;
}

.dashboard-ios-quick-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #1769e8;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.96), transparent 40%),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 30px rgba(52, 120, 246, 0.14);
  font-size: 26px;
  font-weight: 950;
}

.dashboard-ios-quick-card small {
  color: rgba(35, 52, 91, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.home-template-items-card {
  border: 1px solid rgba(255, 255, 255, 0.64);
  background:
    radial-gradient(circle at 0% 0%, rgba(74, 173, 255, 0.16), transparent 38%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.72), rgba(242, 248, 255, 0.5));
}

.home-template-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
}

.home-template-item-pill {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(82, 156, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.home-template-item-pill strong {
  color: #143160;
  font-size: 14px;
}

.home-template-item-pill small {
  color: rgba(35, 52, 91, 0.66);
  font-size: 12px;
  font-weight: 760;
}

.dashboard-ios-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 22px 56px rgba(52, 120, 246, 0.12);
  backdrop-filter: blur(26px) saturate(1.35);
}

.dashboard-ios-overview-main {
  min-width: 0;
  display: grid;
  gap: 24px;
}

.dashboard-ios-overview-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-ios-overview-title h3 {
  margin: 0;
  color: #142447;
  font-size: 22px;
}

.dashboard-ios-overview-title button {
  flex: 0 0 auto;
  border: 0;
  color: rgba(35, 52, 91, 0.5);
  background: transparent;
  font-weight: 850;
  align-self: flex-start;
  white-space: nowrap;
}

.dashboard-ios-progress {
  display: grid;
  gap: 8px;
}

.dashboard-ios-progress small,
.dashboard-ios-summary-row span,
.dashboard-ios-score-ring span,
.dashboard-ios-score-ring small {
  color: rgba(35, 52, 91, 0.62);
  font-size: 14px;
  font-weight: 800;
}

.dashboard-ios-progress strong {
  color: #142447;
  font-size: clamp(42px, 12vw, 64px);
  line-height: 0.92;
}

.dashboard-ios-progress strong span {
  font-size: 24px;
}

.dashboard-ios-progress p {
  margin: 0;
  color: rgba(35, 52, 91, 0.66);
  font-size: 17px;
  font-weight: 800;
}

.dashboard-ios-progress p b {
  color: #1769e8;
}

.dashboard-ios-progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(52, 120, 246, 0.12);
}

.dashboard-ios-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f7df6, #7b5cff);
}

.dashboard-ios-score-ring {
  width: 138px;
  height: 138px;
  place-self: center;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, rgba(255, 255, 255, 0.78) 70%, transparent 72%),
    conic-gradient(#2f7df6 var(--score-progress), rgba(52, 120, 246, 0.16) 0);
  box-shadow: 0 18px 40px rgba(52, 120, 246, 0.18);
}

.dashboard-ios-score-ring strong {
  color: #142447;
  font-size: 44px;
  line-height: 0.92;
}

.dashboard-ios-summary-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(92, 105, 132, 0.12);
}

.dashboard-ios-summary-row > div {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 0 8px;
  border-right: 1px solid rgba(92, 105, 132, 0.12);
  text-align: center;
}

.dashboard-ios-summary-row > div:last-child {
  border-right: 0;
}

.dashboard-ios-summary-row strong {
  color: #142447;
  font-size: 24px;
}

.dashboard-ios-summary-row small {
  color: rgba(35, 52, 91, 0.62);
  font-size: 13px;
}

.home-checkin-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  background: rgba(18, 31, 54, 0.42);
  backdrop-filter: blur(18px) saturate(1.2);
  animation: fadeIn 180ms ease;
}

.home-checkin-dialog {
  width: min(640px, 100%);
  max-height: min(90vh, 820px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 28px;
  background:
    radial-gradient(circle at 0% 0%, rgba(52, 120, 246, 0.13), transparent 15rem),
    rgba(248, 251, 255, 0.92);
  box-shadow: 0 30px 90px rgba(18, 31, 54, 0.24);
}

.home-checkin-dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 18px 10px;
}

.home-checkin-dialog-header h2 {
  margin: 0;
}

.home-checkin-dialog-body {
  min-height: 0;
  overflow-y: auto;
  padding: 0 14px 16px;
  overscroll-behavior: contain;
}

.home-checkin-dialog-body .self-checkin-panel {
  margin: 0;
  box-shadow: none;
}

.weekly-review-entry-card {
  margin-top: 12px;
}

.weekly-review-entry-head {
  align-items: flex-start;
}

.weekly-review-entry-head .home-card-title > div {
  display: grid;
  gap: 4px;
}

.weekly-review-entry-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.weekly-review-entry-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.weekly-review-entry-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.weekly-review-entry-meta strong {
  font-size: 15px;
}

.weekly-review-entry-meta small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-correction-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1350;
  display: grid;
  align-items: end;
  padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  background: rgba(18, 31, 54, 0.48);
  backdrop-filter: blur(16px) saturate(1.15);
}

.dashboard-correction-dialog {
  width: min(520px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.68);
  border-radius: 28px 28px 20px 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(239, 91, 99, 0.12), transparent 42%),
    rgba(248, 251, 255, 0.96);
  box-shadow: 0 28px 80px rgba(18, 31, 54, 0.24);
  animation: sheetUp 0.24s cubic-bezier(.2,.8,.2,1);
}

.dashboard-correction-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 10px;
}

.dashboard-correction-header h2 {
  margin: 0;
}

.dashboard-correction-body {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
}

.dashboard-correction-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(239,91,99,0.18);
  border-radius: 20px;
  background: rgba(239,91,99,0.05);
}

.dashboard-correction-row {
  display: grid;
  gap: 6px;
}

.dashboard-correction-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-correction-row p {
  margin: 0;
  line-height: 1.6;
}

.dashboard-correction-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-correction-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.dashboard-correction-actions .button,
.dashboard-correction-actions .ghost {
  min-width: 116px;
}

body.dark .dashboard-correction-dialog {
  background:
    radial-gradient(circle at 100% 0%, rgba(239, 91, 99, 0.16), transparent 42%),
    rgba(27, 37, 58, 0.96);
  border-color: rgba(255,255,255,0.12);
}

body.dark .dashboard-correction-card {
  background: rgba(239,91,99,0.08);
  border-color: rgba(239,91,99,0.22);
}

body.dark .dashboard-correction-row small {
  color: rgba(219, 228, 244, 0.68);
}

body.dark .dashboard-correction-row strong,
body.dark .dashboard-correction-row p,
body.dark .dashboard-correction-header h2 {
  color: #f4f8ff;
}

body.dark .checkin-correction-mode-banner {
  border-color: rgba(255, 149, 0, 0.22);
  background: rgba(255, 149, 0, 0.1);
}

body.dark .checkin-correction-mode-banner strong {
  color: #ffd27a;
}

body.dark .checkin-correction-mode-banner small {
  color: rgba(219, 228, 244, 0.74);
}

body.dark .dashboard-ios-hero {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 18% 8%, rgba(64, 115, 196, 0.26), transparent 10rem),
    radial-gradient(circle at 82% 18%, rgba(77, 178, 226, 0.18), transparent 15rem),
    linear-gradient(160deg, rgba(27, 37, 58, 0.94), rgba(18, 30, 49, 0.92));
}

body.dark .dashboard-ios-greeting p,
body.dark .dashboard-ios-greeting span,
body.dark .dashboard-ios-progress small,
body.dark .dashboard-ios-progress p,
body.dark .dashboard-ios-summary-row span,
body.dark .dashboard-ios-summary-row small,
body.dark .dashboard-ios-score-ring span,
body.dark .dashboard-ios-score-ring small,
body.dark .dashboard-ios-quick-card small {
  color: rgba(219, 228, 244, 0.68);
}

body.dark .dashboard-ios-greeting h2,
body.dark .dashboard-ios-overview-title h3,
body.dark .dashboard-ios-progress strong,
body.dark .dashboard-ios-summary-row strong,
body.dark .dashboard-ios-score-ring strong,
body.dark .dashboard-ios-quick-card {
  color: #f4f8ff;
}

body.dark .dashboard-ios-profile,
body.dark .dashboard-ios-quick-card,
body.dark .dashboard-ios-quick-grid,
body.dark .dashboard-ios-overview,
body.dark .home-checkin-dialog {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark .dashboard-ios-quick-icon {
  color: #9fc0ff;
  background: rgba(255, 255, 255, 0.12);
}

body.dark .dashboard-ios-profile strong {
  color: #9fc0ff;
}

body.dark .dashboard-ios-profile i {
  color: rgba(219, 228, 244, 0.48);
}

body.dark .hero-checkin-v2-ring {
  background:
    radial-gradient(circle at 50% 50%, transparent 59%, rgba(244, 248, 255, 0.32) 60%, rgba(111, 163, 244, 0.28) 67%, transparent 71%),
    conic-gradient(from 18deg, rgba(111, 163, 244, 0.12), rgba(244, 248, 255, 0.3), rgba(104, 185, 255, 0.24), rgba(244, 248, 255, 0.18), rgba(111, 163, 244, 0.12));
  box-shadow:
    0 18px 48px rgba(26, 82, 155, 0.22),
    inset 0 0 24px rgba(255, 255, 255, 0.12);
}

body.dark .hero-checkin-v2-glass {
  border-color: rgba(244, 248, 255, 0.28);
  background:
    radial-gradient(circle at 35% 24%, rgba(244, 248, 255, 0.3), rgba(244, 248, 255, 0.13) 28%, rgba(97, 157, 235, 0.16) 62%, rgba(18, 30, 49, 0.2)),
    linear-gradient(145deg, rgba(244, 248, 255, 0.13), rgba(75, 136, 214, 0.14));
  box-shadow:
    inset 0 10px 24px rgba(255, 255, 255, 0.16),
    inset 0 -18px 30px rgba(68, 136, 255, 0.12),
    0 24px 54px rgba(8, 18, 35, 0.3);
}

body.dark .hero-checkin-v2-title {
  color: #f6f9ff;
  text-shadow: 0 2px 18px rgba(111, 163, 244, 0.34);
}

body.dark .hero-checkin-v2-status {
  color: rgba(219, 228, 244, 0.7);
}

body.dark .hero-checkin-v2.is-complete .hero-checkin-v2-ring {
  background:
    radial-gradient(circle at 50% 50%, transparent 59%, rgba(244, 248, 255, 0.3) 60%, rgba(89, 222, 156, 0.2) 67%, transparent 71%),
    conic-gradient(from 18deg, rgba(111, 163, 244, 0.1), rgba(244, 248, 255, 0.3), rgba(89, 222, 156, 0.18), rgba(244, 248, 255, 0.16), rgba(111, 163, 244, 0.1));
  box-shadow:
    0 18px 48px rgba(26, 82, 155, 0.2),
    0 0 26px rgba(89, 222, 156, 0.1),
    inset 0 0 24px rgba(255, 255, 255, 0.12);
}

body.dark .hero-checkin-v2.home-checkin-orb--correction .hero-checkin-v2-glass {
  border-color: rgba(255, 115, 115, 0.4);
  background:
    radial-gradient(circle at 35% 24%, rgba(244, 248, 255, 0.34), rgba(244, 248, 255, 0.15) 28%, rgba(255, 126, 126, 0.18) 62%, rgba(18, 30, 49, 0.2)),
    radial-gradient(circle at 76% 80%, rgba(255, 84, 84, 0.24), transparent 30%),
    linear-gradient(145deg, rgba(244, 248, 255, 0.16), rgba(180, 58, 58, 0.16));
}

body.dark .hero-checkin-v2.home-checkin-orb--pending-review .hero-checkin-v2-glass {
  border-color: rgba(245, 159, 50, 0.3);
  background:
    radial-gradient(circle at 35% 24%, rgba(244, 248, 255, 0.3), rgba(244, 248, 255, 0.13) 28%, rgba(97, 157, 235, 0.14) 62%, rgba(18, 30, 49, 0.2)),
    radial-gradient(circle at 76% 80%, rgba(245, 159, 50, 0.15), transparent 28%),
    linear-gradient(145deg, rgba(244, 248, 255, 0.13), rgba(75, 136, 214, 0.12));
}

body.dark .home-correction-entry {
  color: #f4f8ff;
  border-color: rgba(239, 91, 99, 0.24);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.11), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(239, 91, 99, 0.09));
}

body.dark .home-correction-entry-copy small,
body.dark .home-correction-entry-action {
  color: rgba(219, 228, 244, 0.68);
}

.dashboard-home-page .self-checkin-panel,
.dashboard-home-page .weekly-mission-panel {
  background: rgba(255, 255, 255, 0.57);
}

.dashboard-home-page .self-checkin-task-state {
  margin-top: 11px;
  padding: 11px 12px;
  border-radius: 15px;
}

.dashboard-home-page .self-checkin-task-state.waiting {
  border-color: rgba(142, 142, 147, 0.22);
  background: rgba(142, 142, 147, 0.08);
}

.dashboard-home-page .self-checkin-task-state.waiting .self-checkin-task-icon {
  color: #6f7682;
  background: rgba(142, 142, 147, 0.12);
}

.dashboard-home-page .self-checkin-task-state.submitted {
  border-color: rgba(255, 149, 0, 0.25);
  background: rgba(255, 149, 0, 0.09);
}

.dashboard-home-page .self-checkin-task-state.submitted .self-checkin-task-icon {
  color: #b86200;
  background: rgba(255, 149, 0, 0.14);
}

.dashboard-home-page .self-checkin-task-state.returned {
  border-color: rgba(255, 59, 48, 0.26);
  background: rgba(255, 59, 48, 0.085);
}

.dashboard-home-page .self-checkin-task-state.returned .self-checkin-task-icon {
  color: #d32f2f;
  background: rgba(255, 59, 48, 0.13);
}

.dashboard-home-page .self-checkin-task-state.closed {
  border-color: rgba(75, 85, 99, 0.25);
  background: rgba(75, 85, 99, 0.1);
}

.dashboard-home-page .self-checkin-form,
.dashboard-home-page .weekly-mission-form {
  gap: 11px;
  margin-top: 11px;
}

.checkin-correction-mode-banner {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 149, 0, 0.24);
  border-radius: 14px;
  background: rgba(255, 149, 0, 0.08);
}

.checkin-correction-mode-banner strong {
  color: #9c5a00;
  font-size: 14px;
}

.checkin-correction-mode-banner small {
  color: rgba(35, 52, 91, 0.72);
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-home-page .self-checkin-preview {
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 15px;
}

.dashboard-home-page .weekly-mission-period {
  margin: 7px 0 0;
  font-size: 13px;
}

.dashboard-home-page .weekly-mission-status,
.dashboard-home-page .weekly-summary-body {
  margin-top: 10px;
}

.home-overview-status {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid rgba(116, 128, 154, 0.14);
}

.home-overview-status .home-card-title h2 {
  font-size: 18px;
}

.home-overview-status .home-card-icon {
  flex-basis: 31px;
  width: 31px;
  height: 31px;
  border-radius: 10px;
}

.home-personal-status-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.home-personal-status-body > div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(116, 128, 154, 0.12);
  border-radius: 14px;
  background: rgba(116, 128, 154, 0.055);
}

.home-personal-status-body small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.home-personal-status-body strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.home-personal-status-body > .home-today-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 850;
}

.home-today-state > span {
  display: inline-flex;
  flex: 0 0 auto;
}

.home-today-state .home-task-icon-svg {
  width: 20px;
  height: 20px;
}

.home-today-state.is-action {
  color: #1e63cf;
  border-color: rgba(52, 120, 246, 0.24);
  background: rgba(52, 120, 246, 0.1);
}

.home-today-state.is-pending {
  color: #b86200;
  border-color: rgba(255, 149, 0, 0.26);
  background: rgba(255, 149, 0, 0.11);
}

.home-today-state.is-returned {
  color: #d32f2f;
  border-color: rgba(255, 59, 48, 0.26);
  background: rgba(255, 59, 48, 0.1);
}

.home-today-state.is-complete {
  color: #168a43;
  border-color: rgba(52, 199, 89, 0.26);
  background: rgba(52, 199, 89, 0.1);
}

.home-today-state.is-closed {
  color: #4b5563;
  border-color: rgba(75, 85, 99, 0.25);
  background: rgba(75, 85, 99, 0.11);
}

.home-overview-status .dashboard-score-line {
  height: 7px;
}

.dashboard-home-page .dashboard-priority-charts {
  gap: var(--home-card-gap);
}

.dashboard-home-page .dashboard-action-panel {
  gap: 8px;
}

@media (max-width: 720px) {
  .dashboard-home-page {
    --home-card-padding: 13px;
    --home-card-gap: 10px;
    margin: 12px 0;
  }

  .home-card-title {
    gap: 8px;
  }

  .home-card-title h2,
  .dashboard-home-page .home-card h2 {
    font-size: 19px;
  }

  .home-card-icon {
    flex-basis: 33px;
    width: 33px;
    height: 33px;
    border-radius: 11px;
  }

  .home-card-icon svg {
    width: 19px;
    height: 19px;
  }

  .home-status-tag {
    min-height: 25px;
    padding: 4px 8px;
    font-size: 11px;
  }

  .home-overview-card {
    padding: 11px 13px;
  }

  .dashboard-home-page .home-overview-card > .row:first-of-type {
    min-height: 38px;
    height: auto;
    padding-right: 112px;
  }

  .home-overview-card .dashboard-meeting-float {
    top: 9px;
    right: 10px;
    min-height: 38px;
    padding-inline: 12px;
  }

  .home-overview-status {
    gap: 8px;
    margin-top: 9px;
    padding-top: 9px;
  }

  .home-task-row {
    min-height: 50px;
    padding: 8px 9px;
  }

  .dashboard-home-page .self-checkin-items {
    gap: 7px;
  }

  .dashboard-home-page .checkin-item-button {
    min-height: 66px;
    border-radius: 14px;
  }

  .dashboard-home-page .self-checkin-task-state {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 10px;
  }

  .dashboard-home-page .self-checkin-task-icon {
    width: 32px;
    height: 32px;
  }

  .home-personal-status-body {
    gap: 6px;
  }

  .home-personal-status-body > div {
    padding: 8px;
  }

  .dashboard-home-page .dashboard-action-grid {
    gap: 7px;
  }

  .dashboard-home-page .dashboard-action-card {
    min-height: 88px;
    padding: 11px;
    border-radius: 16px;
  }
}

@media (max-width: 430px) {
  .dashboard-ios-hero {
    min-height: calc(100svh - 118px);
    padding: 28px 14px 18px;
    border-radius: 34px;
    gap: 16px;
  }

  .dashboard-ios-top {
    align-items: flex-start;
  }

  .dashboard-ios-greeting h2 {
    font-size: clamp(22px, 6vw, 27px);
  }

  .dashboard-ios-greeting p {
    margin-top: 14px;
    font-size: 14px;
  }

  .dashboard-ios-profile {
    grid-template-columns: 48px auto;
    min-width: 98px;
    padding: 6px 9px 6px 6px;
  }

  .dashboard-ios-avatar {
    width: 48px;
    height: 48px;
  }

  .dashboard-ios-profile strong {
    font-size: 15px;
  }

  .dashboard-ios-profile i {
    font-size: 22px;
  }

  .dashboard-orb-stage {
    min-height: min(31vh, 260px);
  }

  .hero-checkin-v2 {
    --hero-checkin-size: min(44vw, 174px);
    --hero-checkin-ring-spread: 17px;
  }

  .hero-checkin-v2-title {
    font-size: clamp(38px, 10vw, 48px);
  }

  .hero-checkin-v2-status {
    bottom: 16px;
    font-size: 14px;
  }

  .home-correction-entry {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 10px;
    margin-top: -4px;
    padding: 11px 12px;
  }

  .home-correction-entry-action {
    grid-column: 2;
    justify-self: start;
  }

  .dashboard-ios-quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 14px 10px;
    border-radius: 26px;
  }

  .dashboard-ios-quick-card {
    min-height: 78px;
    padding: 4px 2px;
    border-radius: 18px;
  }

  .dashboard-ios-quick-icon {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .dashboard-ios-quick-card small {
    display: none;
  }

  .dashboard-ios-overview {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 12px;
    padding: 18px 14px;
    border-radius: 28px;
  }

  .dashboard-ios-overview-main {
    gap: 18px;
  }

  .dashboard-ios-overview-title h3 {
    font-size: 21px;
  }

  .dashboard-ios-overview-title button {
    font-size: 13px;
  }

  .weekly-review-entry-body,
  .dashboard-correction-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .duty-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-ios-score-ring {
    width: 106px;
    height: 106px;
  }

  .dashboard-ios-score-ring strong {
    font-size: 34px;
  }

  .dashboard-ios-summary-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding-top: 14px;
  }

  .dashboard-ios-summary-row > div {
    padding: 0 4px;
  }

  .dashboard-ios-summary-row strong {
    font-size: 20px;
  }

  .home-checkin-dialog {
    width: 100%;
    max-height: 90vh;
    border-radius: 26px;
  }

  .home-checkin-dialog-body {
    padding-inline: 10px;
  }

  .member-makeup-form {
    padding: 12px;
  }

  .member-makeup-item-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-home-page .home-overview-card > .row.home-overview-top {
    padding-right: 0;
  }

  .home-overview-card .daily-quote {
    font-size: 13px;
  }

  .home-overview-actions {
    gap: 6px;
  }

  .dashboard-message-entry {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .home-overview-actions .dashboard-meeting-float {
    min-height: 38px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .dashboard-home-page .home-card-heading {
    gap: 7px;
  }

  .dashboard-home-page .self-checkin-score-inline {
    padding: 6px 8px;
  }

  .dashboard-home-page .self-checkin-score-inline > span {
    font-size: 0;
  }

  .dashboard-home-page .self-checkin-score-inline > span svg {
    width: 15px;
    height: 15px;
  }

  .message-center-page {
    padding: 12px;
  }

  .message-center-summary {
    gap: 7px;
  }

  .message-center-summary > div {
    min-height: 72px;
    padding: 10px 11px;
  }

  .message-center-summary strong {
    font-size: 25px;
  }

  .message-center-filters {
    display: grid;
    max-width: none;
  }

  .message-center-card {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 11px;
    border-radius: 17px;
  }

  .message-center-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .message-center-icon svg {
    width: 22px;
    height: 22px;
  }

  .message-center-meta {
    flex-wrap: wrap;
  }

  .message-center-meta time {
    width: 100%;
    margin-left: 0;
  }

  .message-center-title-row h3 {
    font-size: 16px;
  }

  .message-center-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .message-center-actions button:only-child {
    grid-column: 1 / -1;
  }
}

/* Check-in Flow Center: post-submission progress, review and correction states. */
.checkin-flow-center {
  --flow-blue: #3478f6;
  --flow-green: #23ad67;
  --flow-orange: #e78917;
  --flow-red: #e5484d;
  position: relative;
  min-width: 0;
  margin-top: 12px;
  padding: 15px 0 13px;
  overflow: hidden;
  border: 1px solid rgba(52, 120, 246, 0.14);
  border-radius: 20px;
  background: rgba(248, 251, 255, 0.54);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.72);
  outline: none;
}

.checkin-flow-center:focus-visible {
  box-shadow: 0 0 0 3px rgba(52, 120, 246, 0.16), inset 0 1px rgba(255, 255, 255, 0.72);
}

.checkin-flow-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--checkin-flow-count), minmax(0, 1fr));
  gap: 2px;
  margin: 0 13px 14px;
}

.checkin-flow-progress-line {
  position: absolute;
  z-index: 0;
  top: 11px;
  right: calc(50% / var(--checkin-flow-count));
  left: calc(50% / var(--checkin-flow-count));
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(116, 128, 154, 0.16);
}

.checkin-flow-progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--flow-blue), var(--flow-green));
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.checkin-flow-progress-node {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  padding: 0;
  color: #8993a8;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.checkin-flow-progress-node:disabled {
  cursor: default;
  opacity: 0.68;
}

.checkin-flow-progress-node i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: white;
  border: 3px solid rgba(247, 250, 255, 0.96);
  border-radius: 50%;
  background: #c8cfdb;
  box-shadow: 0 0 0 1px rgba(116, 128, 154, 0.13);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.checkin-flow-progress-node span {
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkin-flow-progress-node.is-done {
  color: #188c51;
}

.checkin-flow-progress-node.is-done i {
  background: var(--flow-green);
}

.checkin-flow-progress-node.is-current {
  color: var(--text);
}

.checkin-flow-progress-node.is-current i {
  background: var(--flow-blue);
  box-shadow: 0 0 0 5px rgba(52, 120, 246, 0.12), 0 0 16px rgba(52, 120, 246, 0.28);
  animation: checkin-flow-breathe 2s ease-in-out infinite;
}

.checkin-flow-progress-node.is-selected span {
  color: var(--text);
  font-weight: 900;
}

.checkin-flow-track {
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 0 12px 5px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-padding-inline: 12px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.checkin-flow-track::-webkit-scrollbar {
  display: none;
}

.checkin-flow-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc(100% - 24px);
  min-width: 0;
  min-height: 226px;
  padding: 14px;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  color: var(--text);
  border: 1px solid rgba(116, 128, 154, 0.17);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 24px rgba(44, 60, 96, 0.07), inset 0 1px rgba(255, 255, 255, 0.8);
  opacity: 0.78;
  transform: scale(0.985);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.checkin-flow-card.is-active {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(52, 120, 246, 0.27);
  box-shadow: 0 12px 28px rgba(44, 80, 150, 0.1), inset 0 1px rgba(255, 255, 255, 0.86);
}

.checkin-flow-card.is-current.is-review {
  border-color: rgba(231, 137, 23, 0.3);
  background: linear-gradient(145deg, rgba(255, 249, 239, 0.82), rgba(255, 255, 255, 0.72));
}

.checkin-flow-card.is-current.is-correction {
  border-color: rgba(229, 72, 77, 0.3);
  background: linear-gradient(145deg, rgba(255, 244, 245, 0.84), rgba(255, 255, 255, 0.72));
}

.checkin-flow-card.is-current.is-success,
.checkin-flow-card.is-done.is-success {
  border-color: rgba(35, 173, 103, 0.28);
  background: linear-gradient(145deg, rgba(240, 252, 246, 0.85), rgba(255, 255, 255, 0.72));
}

.checkin-flow-card-title {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
}

.checkin-flow-card-title > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--flow-blue);
  border-radius: 11px;
  background: rgba(52, 120, 246, 0.1);
  font-size: 13px;
  font-weight: 900;
}

.checkin-flow-card-title h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.checkin-flow-card-title-copy {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 5px;
}

.checkin-flow-title-time {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkin-flow-card-title em {
  padding: 5px 8px;
  color: #7d879a;
  border-radius: 999px;
  background: rgba(116, 128, 154, 0.1);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.checkin-flow-card.is-current .checkin-flow-card-title em {
  color: #b66300;
  background: rgba(255, 149, 0, 0.13);
}

.checkin-flow-card.is-done .checkin-flow-card-title em {
  color: #168c45;
  background: rgba(52, 199, 89, 0.12);
}

.checkin-flow-card-heading {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.checkin-flow-card-heading > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.checkin-flow-card-heading strong {
  font-size: 16px;
}

.checkin-flow-card-heading small {
  color: var(--muted);
  line-height: 1.4;
}

.checkin-flow-card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--flow-blue);
  border-radius: 13px;
  background: rgba(52, 120, 246, 0.1);
}

.checkin-flow-card-icon svg {
  width: 21px;
  height: 21px;
}

.checkin-flow-card .self-checkin-preview {
  margin-top: 11px;
  padding: 10px;
  border-radius: 13px;
}

.checkin-flow-card .self-checkin-preview-title {
  font-size: 13px;
}

.checkin-flow-message,
.checkin-flow-review-note {
  margin-top: 13px;
  padding: 11px 12px;
  border-radius: 13px;
  background: rgba(116, 128, 154, 0.08);
  color: var(--muted);
  line-height: 1.45;
}

.checkin-flow-message.pending {
  color: #9a5700;
  background: rgba(255, 149, 0, 0.1);
}

.checkin-flow-message.complete {
  color: #157a42;
  background: rgba(52, 199, 89, 0.1);
}

.checkin-flow-review-note small {
  color: #b22f35;
  font-weight: 800;
}

.checkin-flow-review-note p {
  margin: 4px 0 0;
  color: var(--text);
}

.checkin-correction-items {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.checkin-correction-items > small,
.checkin-correction-note > span {
  color: var(--muted);
  font-weight: 800;
}

.checkin-correction-items > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.checkin-correction-link {
  margin-top: 12px;
}

.checkin-correction-note {
  margin-top: 12px;
}

.checkin-flow-action {
  width: 100%;
  margin-top: auto;
}

.checkin-flow-card .self-checkin-copy-action {
  width: 100%;
  margin-top: auto;
}

.checkin-flow-card .checkin-flow-secondary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 44px;
  padding: 9px 14px;
  color: var(--flow-blue);
  border: 1.5px solid rgba(52, 120, 246, 0.42);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 20px rgba(52, 120, 246, 0.08), inset 0 1px rgba(255, 255, 255, 0.75);
  font-weight: 900;
  line-height: 1.1;
  transition: transform 140ms ease, color 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.checkin-flow-card .checkin-flow-secondary-action:hover {
  color: #1767d1;
  border-color: rgba(52, 120, 246, 0.62);
  background: rgba(52, 120, 246, 0.08);
  box-shadow: 0 10px 24px rgba(52, 120, 246, 0.12), inset 0 1px rgba(255, 255, 255, 0.78);
}

.checkin-flow-card .checkin-flow-secondary-action:active {
  transform: scale(0.985);
}

.checkin-edit-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: max(22px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
  background: rgba(18, 28, 45, 0.34);
  backdrop-filter: blur(16px) saturate(1.25);
  animation: checkin-edit-modal-fade 160ms ease both;
}

.checkin-edit-modal {
  width: min(420px, 100%);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 24px;
  background: rgba(250, 252, 255, 0.9);
  box-shadow: 0 24px 70px rgba(22, 36, 68, 0.24), inset 0 1px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(26px) saturate(1.18);
  animation: checkin-edit-modal-in 190ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.checkin-edit-modal h2 {
  margin: 4px 0 9px;
}

.checkin-edit-modal .picker-actions {
  margin-top: 18px;
}

.self-checkin-submit-confirm-modal {
  width: min(460px, calc(100vw - 28px));
}

.self-checkin-submit-confirm-summary {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(82, 156, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.self-checkin-submit-confirm-summary small {
  display: block;
  margin-bottom: 8px;
  color: rgba(35, 52, 91, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.self-checkin-submit-confirm-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.self-checkin-submit-confirm-items > span {
  padding: 7px 11px;
  color: #147a3c;
  border: 1px solid rgba(52, 199, 89, 0.22);
  border-radius: 999px;
  background: rgba(52, 199, 89, 0.1);
  font-size: 13px;
  font-weight: 820;
}

.self-checkin-submit-confirm-score {
  padding-top: 4px;
  border-top: 1px solid rgba(116, 128, 154, 0.12);
}

.self-checkin-submit-confirm-score strong {
  color: #133565;
  font-size: 28px;
  font-weight: 950;
}

.self-checkin-submit-confirm-note {
  margin: 14px 0 0;
  padding: 11px 13px;
  color: #b4471a;
  border-radius: 16px;
  background: rgba(255, 149, 0, 0.1);
  font-weight: 760;
  line-height: 1.5;
}

.detected-checkin-link-modal {
  width: min(460px, calc(100vw - 28px));
}

.detected-checkin-link-card {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(82, 156, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.detected-checkin-link-card small {
  color: rgba(35, 52, 91, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.detected-checkin-link-text {
  display: block;
  overflow: hidden;
  color: #1769e8;
  font-size: 14px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detected-checkin-link-note {
  margin: 14px 0 0;
  padding: 11px 13px;
  color: #4d5f86;
  border-radius: 16px;
  background: rgba(52, 120, 246, 0.08);
  font-weight: 760;
  line-height: 1.5;
}

body.dark .checkin-edit-modal {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(28, 34, 48, 0.9);
}

body.dark .self-checkin-submit-confirm-summary {
  border-color: rgba(120, 172, 255, 0.16);
  background: rgba(17, 28, 46, 0.74);
}

body.dark .self-checkin-submit-confirm-summary small {
  color: rgba(219, 228, 244, 0.72);
}

body.dark .self-checkin-submit-confirm-score {
  border-top-color: rgba(123, 139, 169, 0.18);
}

body.dark .self-checkin-submit-confirm-score strong {
  color: #f3f7ff;
}

body.dark .self-checkin-submit-confirm-note {
  color: #ffd39a;
  background: rgba(255, 149, 0, 0.12);
}

body.dark .detected-checkin-link-card {
  border-color: rgba(120, 172, 255, 0.16);
  background: rgba(17, 28, 46, 0.74);
}

body.dark .detected-checkin-link-card small {
  color: rgba(219, 228, 244, 0.72);
}

body.dark .detected-checkin-link-text {
  color: #9dc6ff;
}

body.dark .detected-checkin-link-note {
  color: rgba(219, 228, 244, 0.82);
  background: rgba(52, 120, 246, 0.14);
}

@keyframes checkin-edit-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes checkin-edit-modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.checkin-flow-card.has-form {
  flex-basis: calc(100% - 24px);
  min-height: 0;
}

.checkin-flow-form-shell {
  display: flex;
  flex: 1;
  min-width: 0;
  touch-action: pan-y;
}

.checkin-flow-form-shell .self-checkin-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 0;
}

.checkin-flow-form-shell .self-checkin-primary-action {
  margin-top: auto;
}

.checkin-flow-form-shell input,
.checkin-flow-form-shell textarea,
.checkin-flow-form-shell button {
  touch-action: manipulation;
}

.checkin-flow-swipe-hint {
  margin: 4px 14px 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.checkin-flow-switcher {
  display: grid;
  grid-template-columns: repeat(var(--checkin-flow-switch-count, var(--checkin-flow-count)), minmax(0, 1fr));
  gap: 4px;
  margin: 0 11px;
  padding: 4px;
  border: 1px solid rgba(116, 128, 154, 0.13);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.5);
}

.checkin-flow-switcher.is-review-return {
  grid-template-columns: minmax(0, 1fr);
}

.checkin-flow-switcher.is-review-return button {
  color: var(--flow-blue);
  background: rgba(52, 120, 246, 0.1);
}

.checkin-flow-switcher.is-review-return button.is-return-current {
  color: #0f8f68;
  background: rgba(52, 199, 89, 0.14);
}

.checkin-flow-switcher button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 38px;
  padding: 6px 4px;
  overflow: hidden;
  color: #7d879a;
  border: 0;
  border-radius: 11px;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.checkin-flow-switcher button.is-active {
  color: var(--flow-blue);
  background: rgba(52, 120, 246, 0.12);
  box-shadow: inset 0 0 0 1px rgba(52, 120, 246, 0.13);
}

.checkin-flow-correction-form {
  margin-top: 12px;
  padding-top: 1px;
  border-top: 1px solid rgba(229, 72, 77, 0.13);
  scroll-margin-top: 90px;
}

.checkin-flow-center.is-flow-advancing {
  animation: checkin-flow-advance 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.checkin-flow-center.is-flow-advancing .checkin-flow-progress-line span {
  animation: checkin-flow-progress-advance 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.checkin-flow-center.is-flow-advancing .checkin-flow-progress-node.is-current i {
  animation: checkin-flow-node-arrive 680ms cubic-bezier(0.22, 1, 0.36, 1) both,
    checkin-flow-breathe 2s ease-in-out 680ms infinite;
}

@keyframes checkin-flow-progress-advance {
  0% { filter: saturate(0.55); transform: scaleX(0.72); transform-origin: left center; }
  100% { filter: saturate(1); transform: scaleX(1); transform-origin: left center; }
}

@keyframes checkin-flow-node-arrive {
  0% { opacity: 0.5; transform: scale(0.68); }
  62% { opacity: 1; transform: scale(1.18); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes checkin-flow-breathe {
  0%, 100% { box-shadow: 0 0 0 4px rgba(52, 120, 246, 0.1), 0 0 10px rgba(52, 120, 246, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(52, 120, 246, 0.035), 0 0 20px rgba(52, 120, 246, 0.34); }
}

@keyframes checkin-flow-advance {
  0% { opacity: 0.72; transform: translateY(8px); box-shadow: 0 0 0 rgba(52, 120, 246, 0); }
  58% { opacity: 1; transform: translateY(0); box-shadow: 0 0 0 5px rgba(52, 120, 246, 0.09); }
  100% { opacity: 1; transform: translateY(0); box-shadow: inset 0 1px rgba(255, 255, 255, 0.72); }
}

@media (max-width: 430px) {
  .checkin-flow-center {
    margin-top: 10px;
    padding-top: 13px;
    border-radius: 17px;
  }

  .checkin-flow-progress {
    margin-inline: 8px;
  }

  .checkin-flow-progress-node span {
    font-size: 10px;
  }

  .checkin-flow-track {
    gap: 8px;
    padding-inline: 8px;
    scroll-padding-inline: 8px;
  }

  .checkin-flow-card {
    flex-basis: calc(100% - 16px);
    min-height: 218px;
    padding: 12px;
    border-radius: 16px;
  }

  .checkin-flow-card-title {
    grid-template-columns: 31px minmax(0, 1fr) auto;
    gap: 7px;
  }

  .checkin-flow-card-title > span {
    width: 31px;
    height: 31px;
  }

  .checkin-flow-card-title h3 {
    font-size: 16px;
  }

  .checkin-flow-switcher {
    margin-inline: 7px;
    gap: 2px;
  }

  .checkin-flow-switcher button {
    min-height: 36px;
    padding-inline: 2px;
    font-size: 10px;
  }
}

@media (min-width: 760px) {
  .checkin-flow-card {
    flex-basis: min(82%, 720px);
  }

  .checkin-flow-card.has-form {
    flex-basis: calc(100% - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .checkin-flow-center,
  .checkin-flow-progress-node.is-current i,
  .checkin-flow-progress-line span,
  .checkin-flow-card {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 390px) {
  .dashboard-home-page {
    --home-card-padding: 12px;
    --home-card-gap: 9px;
  }

  .home-status-tag {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .home-personal-status-body strong {
    font-size: 14px;
  }

  .home-overview-status .home-card-title h2 {
    font-size: 17px;
  }

  .home-overview-status .home-card-icon {
    flex-basis: 29px;
    width: 29px;
    height: 29px;
  }

  .home-task-row {
    gap: 7px;
  }
}

/* Duty reminder center */
.duty-reminder-page {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto 32px;
}

.duty-reminder-header {
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--line);
}

.duty-reminder-title-row,
.duty-reminder-section-heading,
.duty-reminder-modal-header,
.duty-reminder-template-title,
.duty-reminder-template-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.duty-reminder-title-row h1 {
  margin: 2px 0 0;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

.duty-reminder-title-row > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.duty-reminder-overview {
  margin-top: 24px;
}

.duty-center-meta {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(130px, 0.7fr) minmax(220px, 1.5fr);
  gap: 10px;
  margin-top: 18px;
}

.duty-center-meta > span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border-left: 3px solid #3478c9;
  background: var(--soft);
}

.duty-center-meta small,
.duty-center-period-bar span,
.duty-assignment-card small,
.duty-handover-note small {
  color: var(--muted);
  font-size: 12px;
}

.duty-center-meta strong,
.duty-center-period-bar strong,
.duty-assignment-card strong,
.duty-assignment-card p,
.duty-handover-note p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.duty-center-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 18px 0 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.duty-center-nav button {
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
}

.duty-center-nav button.active {
  color: #174d89;
  background: var(--panel);
  box-shadow: 0 1px 4px rgba(23, 52, 82, 0.12);
}

.duty-center-section-content {
  display: grid;
  gap: 22px;
  margin-top: 18px;
}

.duty-center-panel,
.duty-work-history {
  min-width: 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.duty-center-panel + .duty-center-panel,
.duty-center-panel + .duty-work-history,
.duty-work-history + .duty-center-panel {
  margin-top: -23px;
  border-top: 0;
}

.duty-center-heading,
.duty-center-period-bar,
.duty-work-history > summary,
.duty-work-history-head,
.duty-work-history-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.duty-center-heading {
  margin-bottom: 16px;
}

.duty-center-heading h2 {
  margin: 2px 0 0;
  font-size: 20px;
  letter-spacing: 0;
}

.duty-center-period-bar {
  flex-wrap: wrap;
  padding-bottom: 4px;
}

.duty-center-period-bar > div {
  display: grid;
  gap: 3px;
}

.duty-assignment-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.duty-assignment-list.compact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.duty-assignment-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.duty-assignment-card > div:not(.field) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.duty-assignment-member {
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.duty-assignment-member > span {
  display: grid;
  width: 38px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  color: #174d89;
  background: rgba(47, 111, 180, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.duty-assignment-card textarea,
.duty-work-form-panel textarea,
.duty-handover-note-field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  resize: vertical;
}

.duty-work-form-panel textarea {
  min-height: 250px;
  line-height: 1.7;
}

.duty-work-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.duty-handover-note,
.duty-handover-note-field {
  margin-top: 14px;
}

.duty-handover-note {
  display: grid;
  gap: 5px;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}

.duty-assignment-empty {
  padding: 24px 14px;
  color: var(--muted);
  text-align: center;
}

.duty-assignment-empty p {
  margin: 5px 0 0;
}

.duty-assignment-admin-create {
  margin-top: 14px;
}

.duty-work-history {
  padding-top: 0;
}

.duty-work-history > summary {
  min-height: 64px;
  padding: 14px 2px;
  cursor: pointer;
  list-style: none;
}

.duty-work-history > summary::-webkit-details-marker {
  display: none;
}

.duty-work-history > summary span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.duty-work-history > summary small,
.duty-work-history-meta {
  color: var(--muted);
  font-size: 12px;
}

.duty-work-history > summary b {
  flex: 0 0 auto;
  color: #2f6fb4;
  font-size: 13px;
}

.duty-work-history-list {
  display: grid;
  gap: 10px;
  padding: 4px 0 18px;
}

.duty-work-history-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.duty-work-history-head span,
.duty-work-history-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.duty-work-history-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.duty-work-history-content {
  min-width: 0;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.duty-today-handover .duty-work-history-content {
  padding: 14px;
  border-left: 3px solid #3e9b73;
  background: var(--soft);
}

.duty-summary-extensions {
  display: grid;
  gap: 18px;
  margin-top: 20px;
  padding-top: 2px;
  border-top: 1px solid var(--line);
}

.duty-summary-extensions .duty-center-panel.embedded,
.duty-summary-extensions .duty-work-history {
  margin: 0;
  padding-bottom: 0;
  border: 0;
  background: transparent;
}

.duty-reminder-overview > h2,
.duty-reminder-section-heading h2,
.duty-reminder-template-heading h3 {
  margin: 0;
  letter-spacing: 0;
}

.duty-reminder-overview > h2 {
  margin-bottom: 12px;
  font-size: 18px;
}

.duty-reminder-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.duty-reminder-metrics .metric {
  min-width: 0;
  min-height: 104px;
  border-radius: 8px;
  box-shadow: none;
}

.duty-reminder-metrics .metric:nth-child(1) { border-top: 3px solid #d95757; }
.duty-reminder-metrics .metric:nth-child(2) { border-top: 3px solid #d08a2e; }
.duty-reminder-metrics .metric:nth-child(3) { border-top: 3px solid #3478c9; }
.duty-reminder-metrics .metric:nth-child(4) { border-top: 3px solid #3e9b73; }
.duty-reminder-metrics .metric:nth-child(5) { border-top: 3px solid #7358a8; }

.duty-reminder-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin-top: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.duty-reminder-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 42px;
  padding: 8px;
  color: var(--muted);
  border: 0;
  border-radius: 6px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
  cursor: pointer;
}

.duty-reminder-tabs button b {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--text);
  background: var(--panel);
  font-size: 11px;
}

.duty-reminder-tabs button.active {
  color: #174d89;
  background: var(--panel);
  box-shadow: 0 1px 4px rgba(23, 52, 82, 0.12);
}

.duty-reminder-tabs button.active b {
  color: #fff;
  background: #2f6fb4;
}

.duty-reminder-future-tabs,
.duty-reminder-future-templates,
.duty-reminder-variable-list {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 0 2px;
  scrollbar-width: none;
}

.duty-reminder-future-tabs::-webkit-scrollbar,
.duty-reminder-future-templates::-webkit-scrollbar,
.duty-reminder-variable-list::-webkit-scrollbar {
  display: none;
}

.duty-reminder-future-tabs button,
.duty-reminder-future-templates span,
.duty-reminder-variable-list code {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0;
}

.duty-reminder-tab-panel,
.duty-reminder-log-section {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.duty-reminder-section-heading p {
  margin: 3px 0 0;
}

.duty-reminder-section-heading h2 {
  font-size: 19px;
}

.duty-reminder-list,
.duty-reminder-log-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.duty-reminder-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.duty-reminder-member {
  display: grid;
  grid-template-columns: 38px minmax(80px, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 150px;
}

.duty-reminder-member > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 34px;
  border-radius: 6px;
  color: #174d89;
  background: rgba(47, 111, 180, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.duty-reminder-member strong,
.duty-reminder-detail strong,
.duty-reminder-detail span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.duty-reminder-detail {
  display: grid;
  flex: 1 1 240px;
  gap: 3px;
  min-width: 0;
}

.duty-reminder-detail small,
.duty-reminder-detail span {
  color: var(--muted);
  font-size: 12px;
}

.duty-reminder-row-actions,
.duty-reminder-bulk-actions,
.duty-reminder-modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.duty-reminder-row-actions {
  margin-left: auto;
}

.duty-reminder-row-actions button,
.duty-reminder-bulk-actions button,
.duty-reminder-modal-actions button {
  max-width: 100%;
  white-space: normal;
}

.duty-reminder-bulk-actions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.duty-reminder-empty {
  display: grid;
  min-height: 116px;
  place-items: center;
  color: #267252;
  text-align: center;
}

.duty-reminder-group-composer {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.duty-reminder-group-composer .duty-reminder-template-heading {
  margin-top: 0;
}

.duty-reminder-group-composer > pre {
  max-height: 300px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: var(--panel);
  font: inherit;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.duty-reminder-group-actions {
  display: grid;
  gap: 8px;
  width: min(360px, 100%);
  margin-top: 12px;
}

.duty-reminder-group-actions > button {
  width: 100%;
  min-height: 42px;
  white-space: normal;
}

.duty-reminder-group-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.duty-reminder-group-actions > div button {
  flex: 1 1 150px;
  min-width: 0;
  white-space: normal;
}

.duty-reminder-template-group + .duty-reminder-template-group {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.duty-reminder-template-heading {
  margin: 16px 0 10px;
}

.duty-reminder-template-heading h3 {
  font-size: 16px;
}

.duty-reminder-template-heading span {
  color: var(--muted);
  font-size: 12px;
}

.duty-reminder-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.duty-reminder-template-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.duty-reminder-template-card pre {
  flex: 1;
  max-height: 220px;
  margin: 12px 0;
  padding: 10px;
  overflow: auto;
  border-radius: 6px;
  color: var(--text);
  background: var(--panel);
  font: inherit;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.duty-reminder-variable-list {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.duty-reminder-modal-variables {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.duty-reminder-variable-list code {
  border-style: solid;
  color: #175f52;
  background: rgba(46, 148, 116, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.duty-reminder-log-list article {
  display: grid;
  grid-template-columns: 58px minmax(110px, 0.7fr) minmax(120px, 1fr) minmax(100px, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.duty-reminder-log-list article:last-child {
  border-bottom: 0;
}

.duty-reminder-log-list time,
.duty-reminder-log-list span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.duty-reminder-modal-backdrop {
  z-index: 1200;
  padding: 18px;
}

.duty-reminder-modal {
  width: min(680px, 100%);
  max-height: min(820px, calc(100dvh - 36px));
  padding: 20px;
  overflow: auto;
  border-radius: 8px;
}

.duty-reminder-modal-header {
  margin-bottom: 16px;
}

.duty-reminder-modal-header h2 {
  margin: 2px 0 0;
  font-size: 20px;
}

.duty-reminder-modal textarea {
  min-height: 220px;
  resize: vertical;
}

.duty-reminder-unified-actions {
  margin-top: 16px;
}

.duty-reminder-unified-editor textarea {
  min-height: 260px;
}

.home-duty-reminder-entry {
  display: grid;
  gap: 14px;
}

.home-duty-reminder-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.home-duty-reminder-stats > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.home-duty-reminder-stats small {
  color: var(--muted);
}

.home-duty-reminder-stats strong {
  font-size: 16px;
  overflow-wrap: anywhere;
}

.home-duty-reminder-complete {
  padding: 18px;
  color: #267252;
  text-align: center;
}

body.dark .duty-reminder-tabs button.active {
  color: #b8d7ff;
}

body.dark .duty-center-nav button.active,
body.dark .duty-assignment-member > span {
  color: #b8d7ff;
}

body.dark .duty-reminder-member > span {
  color: #b8d7ff;
  background: rgba(74, 144, 226, 0.18);
}

body.dark .duty-reminder-variable-list code,
body.dark .duty-reminder-empty,
body.dark .home-duty-reminder-complete {
  color: #8ed8ba;
}

@media (max-width: 820px) {
  .duty-center-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .duty-center-meta > span:last-child {
    grid-column: 1 / -1;
  }

  .duty-reminder-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .duty-reminder-metrics .metric:last-child {
    grid-column: 1 / -1;
  }

  .duty-reminder-tabs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .duty-reminder-tabs::-webkit-scrollbar {
    display: none;
  }

  .duty-reminder-tabs button {
    flex: 0 0 min(168px, 46vw);
    scroll-snap-align: start;
  }

  .duty-reminder-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .duty-reminder-row-actions {
    flex: 1 0 100%;
    margin-left: 0;
  }

  .duty-reminder-row-actions button {
    flex: 1 1 128px;
  }
}

@media (max-width: 520px) {
  .duty-reminder-page {
    width: min(100% - 18px, 1180px);
    margin-bottom: 88px;
  }

  .duty-reminder-header {
    padding-top: 10px;
  }

  .duty-reminder-title-row h1 {
    font-size: 24px;
  }

  .duty-center-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .duty-center-meta > span:last-child {
    grid-column: auto;
  }

  .duty-center-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .duty-center-nav button {
    min-height: 42px;
  }

  .duty-center-section-content {
    gap: 16px;
  }

  .duty-center-panel,
  .duty-work-history {
    padding: 18px 0;
  }

  .duty-center-panel + .duty-center-panel,
  .duty-center-panel + .duty-work-history,
  .duty-work-history + .duty-center-panel {
    margin-top: -17px;
  }

  .duty-center-heading,
  .duty-work-history-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .duty-center-heading > button,
  .duty-center-heading > .pill {
    width: 100%;
  }

  .duty-assignment-list,
  .duty-assignment-list.compact {
    grid-template-columns: minmax(0, 1fr);
  }

  .duty-work-form-panel textarea {
    min-height: 220px;
  }

  .duty-work-form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .duty-work-form-actions button,
  .duty-assignment-panel > .button,
  .duty-handover-content > button {
    width: 100%;
  }

  .duty-work-history > summary {
    min-height: 72px;
  }

  .duty-work-history > summary span {
    overflow-wrap: anywhere;
  }

  .duty-reminder-metrics {
    gap: 7px;
  }

  .duty-reminder-metrics .metric {
    min-height: 92px;
    padding: 11px;
  }

  .duty-reminder-tab-panel,
  .duty-reminder-log-section {
    padding: 14px;
  }

  .duty-reminder-section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .duty-reminder-section-heading > button {
    width: 100%;
  }

  .duty-reminder-member {
    min-width: min(150px, 100%);
  }

  .duty-reminder-row > .pill {
    margin-left: auto;
  }

  .duty-reminder-detail {
    flex-basis: 100%;
    order: 3;
  }

  .duty-reminder-row-actions {
    order: 4;
  }

  .duty-reminder-bulk-actions,
  .duty-reminder-modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .duty-reminder-bulk-actions button,
  .duty-reminder-modal-actions button {
    width: 100%;
  }

  .duty-reminder-template-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .duty-reminder-log-list article {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 5px 10px;
  }

  .duty-reminder-log-list article span {
    grid-column: 2;
  }

  .duty-reminder-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .duty-reminder-modal {
    width: 100%;
    max-height: 92dvh;
    padding: 16px;
    border-radius: 8px 8px 0 0;
  }

  .duty-reminder-unified-backdrop {
    align-items: center;
    padding: 10px;
  }

  .duty-reminder-unified-editor {
    width: min(100%, 680px);
    max-height: calc(100dvh - 20px);
    border-radius: 8px;
  }

  .duty-reminder-modal textarea {
    min-height: 180px;
  }

  .duty-reminder-unified-editor textarea {
    min-height: 220px;
  }

  .duty-reminder-group-composer {
    padding: 12px;
  }

  .duty-reminder-group-actions {
    width: 100%;
  }

  .duty-reminder-group-actions > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .duty-reminder-unified-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .home-duty-reminder-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.system-diagnostics-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 96px;
}

.system-diagnostics-page > .section,
.system-diagnostics-header {
  width: 100%;
}

.diagnostic-error {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(205, 70, 70, 0.32);
  border-radius: 8px;
  color: var(--danger, #b42318);
  background: rgba(205, 70, 70, 0.08);
}

.diagnostic-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.diagnostic-section-head h2,
.diagnostic-transition-block h3 {
  margin: 0;
}

.diagnostic-status-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.diagnostic-status-grid .card {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.diagnostic-status-grid span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

.diagnostic-status-grid strong {
  font-size: 24px;
}

.diagnostic-table table {
  min-width: 720px;
}

.diagnostic-table td,
.diagnostic-table th {
  vertical-align: top;
}

.diagnostic-table code,
.diagnostic-log-list code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.diagnostic-transition-block {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.diagnostic-transition-block h3 {
  font-size: 16px;
}

.diagnostic-log-list {
  display: grid;
  gap: 8px;
}

.diagnostic-log-list article {
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(120px, auto) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.diagnostic-log-list time {
  color: var(--muted);
  font-size: 12px;
}

.diagnostic-tag {
  display: inline-flex;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--muted);
}

.diagnostic-tag-eisdir,
.diagnostic-tag-leave-debug {
  color: var(--danger, #b42318);
}

.diagnostic-tag-weekly-debug {
  color: #8a5a00;
}

.diagnostic-tag-performance-debug {
  color: #08705b;
}

.diagnostic-log-message {
  min-width: 240px;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .system-diagnostics-page {
    width: min(100% - 18px, 1180px);
  }

  .diagnostic-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diagnostic-status-grid .card:last-child {
    grid-column: 1 / -1;
  }

  .diagnostic-section-head {
    flex-wrap: wrap;
  }

  .diagnostic-log-list article {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }
}
