@font-face {
  font-family: "Noto Serif SC Premium";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/iphone-premium/fonts/noto-serif-sc-subset.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --page: #f7f3ea;
  --pearl: rgba(255, 253, 248, 0.9);
  --pearl-strong: rgba(255, 254, 251, 0.97);
  --celadon: rgba(228, 241, 235, 0.86);
  --celadon-soft: rgba(241, 247, 243, 0.88);
  --ink: #173f35;
  --ink-deep: #122d29;
  --muted: #6d7d77;
  --soft: #95a29d;
  --jade: #176c59;
  --jade-bright: #2b967a;
  --blue: #2d6fa3;
  --amber: #ae6f19;
  --amber-deep: #8b5714;
  --red: #a74c49;
  --gold: #c59a56;
  --gold-soft: rgba(197, 154, 86, 0.38);
  --line: rgba(99, 139, 126, 0.2);
  --line-strong: rgba(74, 119, 104, 0.34);
  --shadow-soft: 0 16px 42px rgba(44, 76, 67, 0.09);
  --shadow-key: 0 8px 22px rgba(50, 80, 72, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  --display: "Noto Serif SC Premium", "Songti SC", "STSong", serif;
  --ui: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--page);
  -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--page);
  background-image: url("assets/iphone-premium/background-pearl-clouds.png");
  background-attachment: fixed;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--ink-deep);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

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

.hidden {
  display: none !important;
}

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

.topbar,
.top-actions,
.title-meta,
.section-heading,
.sheet-head,
.sheet-actions,
.status-board-head,
.quick-action {
  display: flex;
  align-items: center;
}

.topbar {
  position: relative;
  z-index: 20;
  justify-content: space-between;
  gap: 18px;
  min-height: 132px;
  margin-bottom: 18px;
  padding: 8px 4px 6px;
}

.brand-block {
  min-width: 0;
}

.brand-title {
  margin-bottom: 8px;
  color: var(--jade);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.17em;
  line-height: 1;
}

h1 {
  color: var(--jade);
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 600;
  letter-spacing: 0.045em;
  line-height: 1.08;
}

h2 {
  color: var(--ink-deep);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.25;
}

h3 {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.25;
}

.title-meta {
  gap: 10px;
  margin-top: 14px;
}

.connection-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  border: 1px solid rgba(174, 151, 112, 0.34);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 253, 248, 0.76);
  color: #4f615b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
  font-size: 12px;
  font-weight: 560;
  white-space: nowrap;
  backdrop-filter: blur(14px);
}

.connection-badge::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--jade-bright);
  box-shadow: 0 0 0 4px rgba(43, 150, 122, 0.1);
  content: "";
  animation: connection-pulse 2.8s ease-in-out infinite;
}

.top-actions,
.sheet-actions {
  gap: 9px;
}

.icon-button {
  display: inline-grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(185, 153, 104, 0.38);
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.82);
  color: var(--jade);
  box-shadow: var(--shadow-key);
  backdrop-filter: blur(16px);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease, color 170ms ease;
}

.icon-button .ti {
  font-size: 22px;
}

.icon-button:hover,
.icon-button.is-active {
  border-color: var(--gold);
  color: var(--amber-deep);
  box-shadow: 0 10px 28px rgba(79, 92, 82, 0.14), inset 0 1px 0 #fff;
  transform: translateY(-1px);
}

.command-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  animation: panel-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.search-box {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 254, 250, 0.88);
  box-shadow: var(--shadow-key);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.search-box:focus-within {
  border-color: var(--jade-bright);
  box-shadow: 0 0 0 4px rgba(43, 150, 122, 0.1), var(--shadow-key);
}

.search-box > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--jade);
  font-size: 20px;
}

.search-box input {
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 0;
  outline: 0;
  padding: 0 16px 0 0;
  background: transparent;
  color: var(--ink-deep);
  font-size: 16px;
  font-weight: 520;
}

.search-box input::placeholder {
  color: #87938f;
  opacity: 1;
}

.tool-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.home-view {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.78fr);
  grid-template-areas:
    "priority-head tools-head"
    "priority tools";
  align-items: start;
  gap: 12px 28px;
  animation: view-enter 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-view > .section-heading:first-child {
  grid-area: priority-head;
}

.quick-grid {
  display: grid;
  grid-area: priority;
  gap: 14px;
  min-width: 0;
}

.service-heading {
  grid-area: tools-head;
}

.category-grid {
  display: grid;
  grid-area: tools;
  gap: 10px;
  min-width: 0;
}

.section-heading {
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}

.eyebrow,
.section-heading .eyebrow {
  margin-bottom: 5px;
  color: var(--amber-deep);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.14em;
  line-height: 1;
}

.section-heading > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--jade);
  font-size: 12px;
  font-weight: 650;
}

.section-heading > span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jade-bright);
  box-shadow: 0 0 0 4px rgba(43, 150, 122, 0.1);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  border: 0;
  padding: 0 4px;
  background: transparent;
  color: var(--jade);
  font-size: 13px;
  font-weight: 650;
}

.section-link span {
  font-size: 20px;
}

.ops-status-board {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(197, 154, 86, 0.42);
  border-radius: 34px 48px 34px 26px;
  padding: 22px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--ink-deep);
  box-shadow: 0 26px 70px rgba(73, 88, 79, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.98);
  overflow: hidden;
  backdrop-filter: blur(20px);
  animation: status-in 500ms 80ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.status-board-head {
  position: relative;
  z-index: 3;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  margin-bottom: 14px;
}

.status-board-head > div {
  display: grid;
  gap: 3px;
}

.status-board-head span {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.status-board-head small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 520;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hero-urgent {
  position: relative;
  display: grid;
  min-height: 188px;
  border: 1px solid rgba(197, 154, 86, 0.25);
  border-radius: 26px 38px 24px 20px;
  padding: 24px 48% 22px 22px;
  background: rgba(255, 254, 251, 0.74);
  color: var(--amber-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.98), 0 12px 28px rgba(71, 92, 81, 0.07);
  text-decoration: none;
  overflow: hidden;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.hero-urgent:hover {
  border-color: rgba(174, 111, 25, 0.56);
  box-shadow: inset 0 1px 0 #fff, 0 16px 34px rgba(92, 91, 65, 0.12);
  transform: translateY(-2px);
}

.hero-urgent-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.hero-urgent-copy small {
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.hero-urgent-copy strong {
  display: inline-flex;
  align-items: baseline;
  color: var(--amber);
  font-family: var(--display);
  font-size: clamp(64px, 8vw, 92px);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero-urgent-copy em {
  margin-left: 8px;
  border: 1px solid rgba(174, 111, 25, 0.34);
  border-radius: 999px;
  padding: 5px 8px;
  font-family: var(--ui);
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
  letter-spacing: 0;
}

.hero-urgent-copy b {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 560;
}

.hero-go {
  position: absolute;
  bottom: 20px;
  left: 22px;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(197, 154, 86, 0.46);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 6px 16px rgba(92, 91, 65, 0.12), inset 0 1px 0 #fff;
  font-size: 20px;
}

.hero-baoxiang {
  position: absolute;
  top: 50%;
  right: -4%;
  z-index: 1;
  width: min(50%, 238px);
  height: auto;
  transform: translateY(-50%);
  opacity: 0.88;
  pointer-events: none;
}

.status-metrics {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(239, 247, 243, 0.68);
  overflow: hidden;
}

.status-metric {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px 16px;
  border-left: 1px solid var(--line);
}

.status-metric:first-child {
  border-left: 0;
}

.status-metric span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-metric strong {
  color: var(--jade);
  font-family: var(--display);
  font-size: 25px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
}

.status-metric em {
  margin-left: 3px;
  color: var(--muted);
  font-family: var(--ui);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}

.status-metric:nth-child(2) strong {
  color: var(--blue);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quick-card {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  border: 1px solid rgba(90, 137, 120, 0.26);
  border-radius: 22px 18px 22px 18px;
  padding: 14px;
  background: rgba(250, 253, 250, 0.79);
  color: var(--ink-deep);
  box-shadow: var(--shadow-key);
  text-decoration: none;
  overflow: hidden;
  backdrop-filter: blur(14px);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  animation: task-in 420ms calc(160ms + var(--enter-index) * 55ms) cubic-bezier(0.22, 1, 0.36, 1) both;
}

.quick-card:hover {
  border-color: rgba(23, 108, 89, 0.48);
  box-shadow: 0 14px 34px rgba(44, 76, 67, 0.13), inset 0 1px 0 #fff;
  transform: translateY(-2px);
}

.quick-card.priority-amber {
  border-color: rgba(197, 154, 86, 0.56);
  background-color: rgba(255, 251, 241, 0.9);
  background-image: url("assets/iphone-premium/fee-flame-panel.png");
  background-position: left center;
  background-repeat: no-repeat;
  background-size: cover;
}

.quick-icon,
.category-icon,
.tool-icon {
  display: grid;
  place-items: center;
  border: 1px solid rgba(73, 132, 111, 0.25);
  border-radius: 50%;
  background: rgba(239, 247, 243, 0.88);
  color: var(--jade);
  box-shadow: inset 0 1px 0 #fff, 0 6px 14px rgba(57, 87, 77, 0.09);
}

.quick-icon {
  width: 46px;
  height: 46px;
  font-size: 23px;
}

.priority-neutral .quick-icon {
  border-color: rgba(45, 111, 163, 0.24);
  background: rgba(236, 244, 250, 0.9);
  color: var(--blue);
}

.priority-amber .quick-icon {
  border-color: rgba(174, 111, 25, 0.3);
  background: rgba(255, 249, 236, 0.92);
  color: var(--amber-deep);
}

.quick-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.quick-copy small {
  overflow: hidden;
  color: var(--ink-deep);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-copy b {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-action {
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(73, 132, 111, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  color: var(--jade);
  font-size: 18px;
}

.priority-amber .quick-action {
  border-color: rgba(174, 111, 25, 0.32);
  color: var(--amber-deep);
}

.dashboard-overview {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(197, 154, 86, 0.4);
  border-radius: 32px 43px 32px 24px;
  padding: 22px;
  background: rgba(255, 254, 250, 0.91);
  color: var(--ink-deep);
  box-shadow: 0 24px 64px rgba(50, 78, 69, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.98);
  overflow: hidden;
  backdrop-filter: blur(20px);
  animation: status-in 500ms 80ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dashboard-watermark {
  position: absolute;
  top: 40%;
  right: -9%;
  z-index: 0;
  width: min(47%, 330px);
  height: auto;
  opacity: 0.065;
  filter: grayscale(1) sepia(0.24) brightness(0.66) contrast(1.18);
  mix-blend-mode: multiply;
  pointer-events: none;
  transform: translateY(-50%);
}

.dashboard-overview > *:not(.dashboard-watermark),
.focus-task > *,
.work-item > * {
  position: relative;
  z-index: 1;
}

.dashboard-board-head,
.dashboard-kicker,
.refresh-summary,
.completion-row,
.connection-row,
.status-chip,
.focus-task-action,
.work-board-head,
.work-item-end {
  display: flex;
  align-items: center;
}

.dashboard-board-head {
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  margin-bottom: 12px;
}

.dashboard-kicker {
  gap: 7px;
  color: var(--jade);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.dashboard-kicker i {
  color: var(--jade-bright);
  font-size: 19px;
}

.refresh-summary {
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  border: 1px solid rgba(76, 119, 105, 0.24);
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(247, 251, 248, 0.76);
  color: var(--jade);
  font-size: 11px;
  font-weight: 650;
}

.refresh-summary .ti {
  font-size: 15px;
}

.refresh-summary.is-loading .ti {
  animation: refresh-turn 900ms linear infinite;
}

.completion-row {
  justify-content: space-between;
  gap: 14px;
}

.completion-copy {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 8px;
  min-width: 0;
}

.completion-copy > span {
  grid-column: 1 / -1;
  margin-bottom: 1px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.completion-copy strong {
  color: var(--jade);
  font-family: var(--display);
  font-size: clamp(46px, 6vw, 66px);
  font-variant-numeric: tabular-nums;
  font-weight: 550;
  letter-spacing: -0.04em;
  line-height: 1;
}

.completion-copy strong em {
  color: var(--soft);
  font-size: 22px;
  font-style: normal;
  letter-spacing: -0.01em;
}

.completion-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.overview-status {
  border: 1px solid rgba(43, 150, 122, 0.2);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(232, 244, 238, 0.86);
  color: var(--jade);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.overview-status.needs-action {
  border-color: rgba(174, 111, 25, 0.28);
  background: rgba(255, 247, 230, 0.86);
  color: var(--amber-deep);
}

.overview-progress,
.work-progress {
  display: block;
  overflow: hidden;
  background: rgba(86, 124, 111, 0.14);
}

.overview-progress {
  height: 6px;
  margin: 11px 0 13px;
  border-radius: 999px;
}

.overview-progress span,
.work-progress b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--jade-bright);
}

.connection-row {
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.status-chip {
  gap: 5px;
  min-height: 27px;
  border: 1px solid rgba(92, 129, 117, 0.18);
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(247, 250, 248, 0.74);
  color: var(--muted);
  font-size: 10px;
  font-weight: 620;
}

.status-chip.is-ready {
  color: var(--jade);
}

.status-chip.is-warning {
  color: var(--amber-deep);
}

.status-chip .ti {
  font-size: 14px;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(239, 247, 243, 0.7);
  overflow: hidden;
}

.dashboard-metric {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px 14px;
  border-left: 1px solid var(--line);
}

.dashboard-metric:first-child {
  border-left: 0;
}

.dashboard-metric > span,
.dashboard-metric small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-metric strong {
  color: var(--jade);
  font-family: var(--display);
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1.05;
}

.dashboard-metric strong em {
  margin-left: 3px;
  color: var(--muted);
  font-family: var(--ui);
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
}

.dashboard-metric small {
  color: var(--jade);
}

.focus-task {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-width: 0;
  min-height: 96px;
  border: 1px solid rgba(174, 111, 25, 0.38);
  border-radius: 23px 18px 23px 17px;
  padding: 15px 16px;
  background: rgba(255, 251, 242, 0.9);
  color: var(--ink-deep);
  box-shadow: var(--shadow-key);
  text-decoration: none;
  overflow: hidden;
  backdrop-filter: blur(14px);
  animation: task-in 420ms 160ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.focus-task::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("assets/iphone-premium/fee-flame-panel.png");
  background-position: left center;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  opacity: 0.075;
  pointer-events: none;
}

.focus-task.is-ready {
  border-color: rgba(43, 150, 122, 0.3);
  background: rgba(244, 251, 247, 0.9);
}

.focus-task.is-ready::after {
  opacity: 0;
}

.focus-task-icon,
.work-item-icon {
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 1px 0 #fff;
}

.focus-task-icon {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(174, 111, 25, 0.3);
  background: rgba(255, 248, 232, 0.92);
  color: var(--amber-deep);
  font-size: 22px;
}

.focus-task.is-ready .focus-task-icon {
  border-color: rgba(43, 150, 122, 0.26);
  background: rgba(235, 247, 241, 0.92);
  color: var(--jade);
}

.focus-task-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.focus-task-copy small {
  color: var(--amber-deep);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.focus-task.is-ready .focus-task-copy small {
  color: var(--jade);
}

.focus-task-copy strong {
  overflow: hidden;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-task-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 540;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-task-action {
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  border-radius: 999px;
  padding: 0 12px;
  background: var(--amber-deep);
  color: #fffdf7;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.focus-task.is-ready .focus-task-action {
  background: var(--jade);
}

.focus-task-action .ti {
  font-size: 15px;
}

.work-board {
  border: 1px solid rgba(90, 137, 120, 0.24);
  border-radius: 26px 22px 26px 19px;
  padding: 16px;
  background: rgba(255, 254, 250, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.work-board-head {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.work-board-head > div {
  display: grid;
  gap: 2px;
}

.work-board-head span {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
}

.work-board-head small {
  color: var(--muted);
  font-size: 9px;
}

.work-board-head > em {
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(238, 246, 242, 0.9);
  color: var(--jade);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

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

.work-item {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 94px;
  border: 1px solid rgba(90, 137, 120, 0.2);
  border-radius: 18px 15px 18px 14px;
  padding: 11px;
  background: rgba(250, 253, 250, 0.76);
  color: var(--ink-deep);
  text-decoration: none;
  overflow: hidden;
}

.work-item.tone-amber {
  border-color: rgba(174, 111, 25, 0.28);
  background: rgba(255, 250, 240, 0.78);
}

.work-item.tone-red {
  border-color: rgba(167, 76, 73, 0.28);
  background: rgba(255, 246, 244, 0.78);
}

.work-item.tone-blue {
  border-color: rgba(45, 111, 163, 0.24);
  background: rgba(242, 248, 252, 0.78);
}

.work-item-icon {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(43, 150, 122, 0.22);
  background: rgba(237, 248, 242, 0.9);
  color: var(--jade);
  font-size: 18px;
}

.tone-amber .work-item-icon {
  border-color: rgba(174, 111, 25, 0.25);
  background: rgba(255, 247, 231, 0.9);
  color: var(--amber-deep);
}

.tone-red .work-item-icon {
  border-color: rgba(167, 76, 73, 0.23);
  background: rgba(255, 239, 237, 0.9);
  color: var(--red);
}

.tone-blue .work-item-icon {
  border-color: rgba(45, 111, 163, 0.22);
  background: rgba(236, 244, 250, 0.9);
  color: var(--blue);
}

.work-item-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.work-item-copy small,
.work-item-copy strong,
.work-item-copy > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-item-copy small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.work-item-copy strong {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
}

.work-item-copy > span {
  color: var(--muted);
  font-size: 9px;
}

.work-progress {
  width: 100%;
  height: 3px;
  margin-top: 2px;
  border-radius: 999px;
}

.work-item-end {
  align-self: stretch;
  flex-direction: column;
  justify-content: space-between;
  color: var(--jade);
}

.work-item-end em {
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}

.work-item-end .ti {
  font-size: 15px;
}

@keyframes refresh-turn {
  to { transform: rotate(360deg); }
}

.category-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
  background: rgba(255, 254, 250, 0.78);
  color: var(--ink-deep);
  box-shadow: var(--shadow-key);
  text-align: left;
  backdrop-filter: blur(14px);
  transition: transform 160ms ease, border-color 160ms ease;
}

.category-card:hover {
  border-color: rgba(23, 108, 89, 0.44);
  transform: translateY(-2px);
}

.category-icon {
  width: 42px;
  height: 42px;
  font-size: 21px;
}

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

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

.category-copy strong {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
}

.category-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 520;
}

.category-badge {
  min-width: 26px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  text-align: right;
}

.category-arrow {
  color: var(--jade);
  font-size: 18px;
  line-height: 1;
}

.tool-section {
  animation: view-enter 340ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.detail-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.detail-heading > div {
  min-width: 0;
}

.detail-heading h2,
.detail-heading p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.back-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 0 14px 0 9px;
  background: rgba(255, 254, 250, 0.86);
  color: var(--jade);
  box-shadow: var(--shadow-key);
  font-size: 13px;
  font-weight: 620;
}

.back-button span {
  font-size: 20px;
}

.list-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  max-width: 420px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 4px;
  background: rgba(235, 244, 239, 0.76);
  backdrop-filter: blur(14px);
}

.list-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}

.list-tabs button.active {
  background: rgba(255, 254, 250, 0.92);
  color: var(--jade);
  box-shadow: var(--shadow-key);
}

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

.tool-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 13px;
  background: rgba(255, 254, 250, 0.84);
  box-shadow: var(--shadow-key);
  backdrop-filter: blur(14px);
  transition: transform 160ms ease, border-color 160ms ease;
}

.tool-card:hover {
  border-color: rgba(23, 108, 89, 0.44);
  transform: translateY(-2px);
}

.tool-card.is-unavailable {
  opacity: 0.66;
}

.tool-icon {
  width: 46px;
  height: 46px;
  font-size: 22px;
}

.tool-main {
  display: grid;
  gap: 5px;
  min-width: 0;
  text-decoration: none;
}

.tool-main h3,
.tool-main p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-main h3 {
  font-family: var(--display);
  font-weight: 600;
}

.tool-main p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 520;
}

.favorite-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: var(--celadon-soft);
  color: var(--soft);
  font-size: 20px;
}

.favorite-button.is-favorite {
  border-color: var(--gold-soft);
  background: rgba(252, 243, 224, 0.86);
  color: var(--amber);
}

.offline-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 620;
  white-space: nowrap;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 16px;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(calc(100% - 32px), 680px);
  min-height: 72px;
  margin: 0 auto;
  border: 1px solid rgba(126, 143, 135, 0.26);
  border-radius: 26px;
  padding: 6px;
  background: rgba(255, 254, 251, 0.91);
  box-shadow: 0 18px 48px rgba(49, 72, 65, 0.18), inset 0 1px 0 #fff;
  backdrop-filter: blur(20px);
  transition: transform 220ms ease, opacity 180ms ease;
  animation: dock-in 480ms 230ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bottom-nav button {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 58px;
  place-items: center;
  gap: 3px;
  border: 0;
  border-radius: 19px;
  padding: 6px 2px;
  background: transparent;
  color: #717b77;
  font-size: 10px;
  font-weight: 600;
}

.bottom-nav .ti {
  font-size: 24px;
}

.bottom-nav button.active {
  background: rgba(228, 241, 235, 0.82);
  color: var(--jade);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.bottom-nav button.active::after {
  position: absolute;
  bottom: 3px;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--jade);
  content: "";
}

.keyboard-open .bottom-nav {
  pointer-events: none;
  opacity: 0;
  transform: translateY(120%);
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(24, 53, 47, 0.46);
  backdrop-filter: blur(8px);
  animation: veil-in 180ms ease both;
}

.sheet-card {
  width: min(100%, 540px);
  border: 1px solid rgba(197, 154, 86, 0.42);
  border-radius: 28px 28px 20px 20px;
  padding: 20px;
  background: rgba(255, 254, 250, 0.96);
  box-shadow: 0 32px 78px rgba(24, 45, 39, 0.3), inset 0 1px 0 #fff;
  animation: sheet-in 340ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.sheet-head {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
}

.field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink-deep);
  outline: 0;
  font-size: 16px;
  font-weight: 520;
}

.field input:focus {
  border-color: var(--jade-bright);
  box-shadow: 0 0 0 4px rgba(43, 150, 122, 0.1);
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  border-radius: 16px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 650;
}

.primary-button {
  border: 1px solid #115947;
  background: var(--jade);
  color: #fff;
  box-shadow: 0 8px 20px rgba(23, 108, 89, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: var(--pearl-strong);
  color: var(--ink-deep);
  box-shadow: var(--shadow-key);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(104px + env(safe-area-inset-bottom));
  z-index: 60;
  max-width: min(88vw, 420px);
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 12px 16px;
  background: rgba(23, 63, 53, 0.93);
  color: #fff;
  box-shadow: 0 16px 36px rgba(24, 45, 39, 0.24);
  font-size: 13px;
  font-weight: 620;
  text-align: center;
  animation: toast-in 210ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.empty-state {
  margin-top: 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 22px;
  padding: 28px 16px;
  background: rgba(255, 254, 250, 0.78);
  color: var(--muted);
  font-size: 14px;
  font-weight: 560;
  text-align: center;
  backdrop-filter: blur(14px);
}

.icon-button:active,
.category-card:active,
.quick-card:active,
.tool-card:active,
.section-link:active,
.primary-button:active,
.secondary-button:active,
.back-button:active,
.favorite-button:active,
.bottom-nav button:active {
  transform: translateY(1px) scale(0.985);
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--jade-bright);
  outline-offset: 3px;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes status-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes task-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes view-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dock-in {
  from { opacity: 0; transform: translateY(90px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sheet-in {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes veil-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 8px) scale(0.98); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@keyframes connection-pulse {
  0%, 100% { opacity: 0.7; box-shadow: 0 0 0 3px rgba(43, 150, 122, 0.08); }
  50% { opacity: 1; box-shadow: 0 0 0 5px rgba(43, 150, 122, 0.14); }
}

@media (max-width: 900px) {
  .home-view {
    grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.72fr);
    column-gap: 18px;
  }
}

@media (max-width: 840px) {
  body {
    background-attachment: scroll;
    background-size: auto max(100vh, 844px);
  }

  .app-shell {
    padding: calc(18px + env(safe-area-inset-top)) 16px calc(98px + env(safe-area-inset-bottom));
  }

  .topbar {
    min-height: 124px;
    margin-bottom: 4px;
    padding: 4px 2px 8px;
  }

  .brand-title {
    margin-bottom: 7px;
    font-size: 10px;
  }

  h1 {
    font-size: 42px;
    letter-spacing: 0.035em;
  }

  .title-meta {
    margin-top: 11px;
  }

  .connection-badge {
    min-height: 31px;
    padding: 0 12px;
    font-size: 11px;
  }

  .top-actions {
    align-self: flex-start;
    gap: 7px;
    padding-top: 6px;
  }

  .icon-button {
    width: 43px;
    height: 43px;
  }

  .share-button {
    display: none;
  }

  .command-area {
    display: none;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 14px;
  }

  .command-area.is-open {
    display: grid;
  }

  .tool-count {
    justify-self: end;
  }

  .home-view {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "priority"
      "tools-head"
      "tools";
    gap: 12px;
  }

  .home-view > .section-heading:first-child {
    display: none;
  }

  .service-heading {
    margin-top: 10px;
  }

  .ops-status-board {
    border-radius: 29px 38px 29px 22px;
    padding: 15px;
  }

  .status-board-head {
    min-height: 30px;
    margin-bottom: 10px;
  }

  .status-board-head span {
    font-size: 20px;
  }

  .status-board-head > small {
    font-size: 9px;
  }

  .hero-urgent {
    min-height: 164px;
    border-radius: 22px 31px 21px 17px;
    padding: 20px 47% 18px 18px;
  }

  .hero-urgent-copy small {
    font-size: 16px;
  }

  .hero-urgent-copy strong {
    font-size: 62px;
  }

  .hero-urgent-copy em {
    margin-left: 5px;
    padding: 4px 7px;
    font-size: 11px;
  }

  .hero-urgent-copy b {
    margin-top: 5px;
    font-size: 10px;
  }

  .hero-go {
    bottom: 14px;
    left: 18px;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .hero-baoxiang {
    right: -8%;
    width: 56%;
  }

  .status-metrics {
    margin-top: 10px;
    border-radius: 16px;
  }

  .status-metric {
    gap: 4px;
    padding: 11px 8px;
    text-align: center;
  }

  .status-metric span {
    font-size: 9px;
  }

  .status-metric strong {
    font-size: 21px;
  }

  .quick-actions {
    gap: 9px;
  }

  .quick-card {
    grid-template-columns: 40px minmax(0, 1fr) 24px;
    gap: 9px;
    min-height: 78px;
    border-radius: 19px 16px 19px 15px;
    padding: 11px;
  }

  .quick-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .quick-copy small {
    font-size: 15px;
  }

  .quick-copy b {
    font-size: 9px;
  }

  .quick-action {
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
    font-size: 16px;
  }

  .dashboard-overview {
    border-radius: 27px 35px 27px 20px;
    padding: 16px;
  }

  .dashboard-watermark {
    top: 34%;
    right: -17%;
    width: 66%;
    opacity: 0.06;
  }

  .dashboard-board-head {
    min-height: 32px;
    margin-bottom: 9px;
  }

  .dashboard-kicker {
    font-size: 17px;
  }

  .refresh-summary {
    min-height: 31px;
    padding: 0 9px;
  }

  .completion-copy strong {
    font-size: 50px;
  }

  .completion-copy strong em {
    font-size: 18px;
  }

  .overview-status {
    padding: 6px 9px;
    font-size: 10px;
  }

  .connection-row {
    margin-bottom: 11px;
  }

  .dashboard-metrics {
    border-radius: 16px;
  }

  .dashboard-metric {
    padding: 10px 8px;
    text-align: center;
  }

  .dashboard-metric strong {
    font-size: 23px;
  }

  .focus-task {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    min-height: 112px;
    border-radius: 21px 17px 21px 15px;
    padding: 13px;
  }

  .focus-task-icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .focus-task-copy strong {
    font-size: 17px;
  }

  .focus-task-action {
    grid-column: 2;
    justify-self: start;
    min-height: 31px;
    padding: 0 10px;
  }

  .work-board {
    border-radius: 23px 19px 23px 17px;
    padding: 14px;
  }

  .work-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .work-item {
    grid-template-columns: 40px minmax(0, 1fr) 28px;
    min-height: 78px;
    padding: 10px;
  }

  .work-item-icon {
    width: 40px;
    height: 40px;
    font-size: 19px;
  }

  .work-item-copy strong {
    font-size: 15px;
  }

  .work-item-copy > span {
    font-size: 9px;
  }

  .work-item-end {
    align-items: center;
  }

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

  .bottom-nav {
    bottom: 0;
    width: 100%;
    min-height: calc(72px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 34px rgba(49, 72, 65, 0.13), inset 0 1px 0 #fff;
  }

  .bottom-nav button {
    min-height: 58px;
    border-radius: 17px;
  }

  .bottom-nav .ti {
    font-size: 23px;
  }

  .sheet {
    padding: 12px;
  }

  input,
  textarea,
  select {
    font-size: 16px;
  }
}

@media (max-width: 390px) {
  .app-shell {
    padding-right: 13px;
    padding-left: 13px;
  }

  h1 {
    font-size: 39px;
  }

  .hero-urgent {
    min-height: 158px;
  }

  .hero-urgent-copy strong {
    font-size: 58px;
  }

  .quick-card {
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    gap: 7px;
    padding: 10px 9px;
  }

  .quick-icon {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 350px) {
  .work-item-copy strong {
    font-size: 14px;
  }

  .quick-card {
    grid-template-columns: 34px minmax(0, 1fr) 14px;
    gap: 5px;
    padding: 10px 8px;
  }

  .quick-icon {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .quick-copy small {
    font-size: 13px;
    letter-spacing: 0;
  }

  .quick-action {
    width: 14px;
    height: 24px;
    font-size: 14px;
  }
}

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