:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --page: #f5f6f8;
  --surface: #fff;
  --text: #17191d;
  --secondary: #878d97;
  --muted: #a6a8ad;
  --brand: #356ad3;
  --alert: #dc7468;
  --divider: #eceef1;
  --annotation-number: #ad482a;
  --annotation-text: #596473;
  color: var(--text);
  background: var(--page);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--page);
}

button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid #91b7ff; outline-offset: 2px; }

.canvas {
  width: 440px;
  height: 956px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(var(--canvas-scale, 1));
  transform-origin: center;
}

.screen {
  width: 440px;
  height: 956px;
  position: relative;
  overflow: hidden;
  background: var(--page);
  box-shadow: 0 16px 54px rgba(30, 42, 61, .16);
}

.status-bar {
  height: 58px;
  padding: 0 30px 0 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 650;
  color: #101216;
}

.status-bar > span:first-child, .system-status { display: flex; align-items: center; gap: 6px; }
.status-bar svg { width: 17px; height: 18px; fill: #111; stroke: #111; stroke-width: 1.8; }
.system-status { gap: 8px; }
.signal { display: flex; align-items: end; gap: 2px; height: 16px; }
.signal b { width: 4px; background: #111; border-radius: 2px; }
.signal b:nth-child(1) { height: 6px; }.signal b:nth-child(2) { height: 9px; }.signal b:nth-child(3) { height: 12px; }.signal b:nth-child(4) { height: 16px; }
.wifi { width: 19px; height: 13px; border: 3px solid #111; border-color: #111 transparent transparent; border-radius: 50%; transform: translateY(3px); position: relative; }
.wifi::after { content: ""; width: 5px; height: 5px; background: #111; border-radius: 50%; position: absolute; left: 4px; top: 5px; }
.battery { min-width: 29px; padding: 2px 4px; color: white; background: #111; font-style: normal; font-size: 12px; border-radius: 5px; position: relative; text-align: center; }
.battery::after { content: ""; position: absolute; width: 3px; height: 7px; right: -4px; top: 4px; border-radius: 0 3px 3px 0; background: #111; }

.app-view { display: none; position: absolute; inset: 58px 0 0; }
.app-view.active { display: flex; flex-direction: column; }
.splash-view { align-items: center; justify-content: center; background: #fff; text-align: center; }
.splash-brand { margin-top: -20px; }
.splash-logo { color: #172f61; font-size: 38px; line-height: 1.2; font-weight: 750; }
.splash-logo span { color: #d75553; }
.splash-brand p { margin: 10px 0 0; color: #7e8590; font-size: 15px; }
.splash-footer { position: absolute; bottom: 36px; color: #a5a9b0; font-size: 12px; }
.home-header { height: 65px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; }
.brand { font-size: 27px; font-weight: 750; color: #172f61; }
.brand span { color: #d75553; }
.icon-button { border: 0; background: transparent; display: grid; place-items: center; }
.settings-shortcut { width: 40px; height: 40px; }
.settings-shortcut svg { width: 22px; height: 22px; fill: none; stroke: #7a818c; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.search-box { height: 42px; margin: 2px 18px 0; padding: 0 15px; border-radius: 9px; background: var(--surface); display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.search-box svg { height: 19px; width: 19px; fill: none; stroke: var(--secondary); stroke-width: 2; stroke-linecap: round; }
.search-box input { width: 100%; border: 0; outline: 0; padding: 0; color: #252933; background: transparent; font-size: 17px; }
.search-box input::placeholder { color: #b5b8bf; }
.filters { height: 61px; display: flex; justify-content: space-between; align-items: center; padding: 0 48px; flex: 0 0 auto; }
.filter-button { border: 0; padding: 10px 8px; background: transparent; font-size: 17px; color: #16181d; }
.filter-button span { font-size: 18px; color: #c0c3c8; margin-left: 5px; }
.meeting-list { overflow-y: auto; flex: 1 1 auto; padding: 0 18px 8px; scrollbar-width: none; }
.meeting-list::-webkit-scrollbar { display: none; }
.meeting-card { min-height: 143px; margin-bottom: 13px; padding: 14px 17px 13px; border-radius: 14px; background: var(--surface); display: flex; gap: 13px; }
.badge { width: 56px; height: 56px; margin-top: 1px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: white; font-size: 25px; font-weight: 700; }
.badge.blue { background: #4b8ff0; }.badge.pink { background: #ec3e79; }.badge.slate { background: #566b9e; font-size: 16px; }.badge.green { background: #39ad4b; }.badge.orange { background: #e8843c; }
.meeting-info { min-width: 0; }
.meeting-info h2 { margin: 0 0 4px; font-size: 22px; line-height: 1.22; font-weight: 550; letter-spacing: -.2px; white-space: nowrap; }
.category { margin: 0; font-size: 14px; line-height: 1.45; color: #282b30; white-space: nowrap; }
.meeting-date { margin: 9px 0 0; color: #a6a8ad; font-size: 14px; white-space: nowrap; }
.countdown { margin: 8px 0 0; display: flex; align-items: center; gap: 6px; color: var(--alert); font-size: 18px; font-weight: 650; white-space: nowrap; }
.countdown svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.empty-state { padding: 72px 20px; text-align: center; color: #9297a0; font-size: 15px; }

.bottom-nav { height: 79px; flex: 0 0 auto; padding: 6px 13px 8px; background: rgba(255,255,255,.97); border-top: 1px solid var(--divider); display: grid; grid-template-columns: repeat(3, 1fr); }
.nav-item { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #92979e; font-size: 12px; }
.nav-item svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.selected { color: var(--brand); }

.subpage { background: var(--page); }
.subpage-header { min-height: 58px; flex: 0 0 auto; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; padding: 0 18px; }
.subpage-header h1 { margin: 0; text-align: center; font-size: 18px; font-weight: 600; }
.back-button { width: 36px; height: 36px; padding: 0; background: transparent; border: 0; display: grid; place-items: center; }
.back-button svg { width: 22px; height: 22px; fill: none; stroke: #282c33; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.settings-content { padding: 17px 18px; flex: 1; }
.settings-group { overflow: hidden; border-radius: 10px; background: var(--surface); }
.settings-row { min-height: 58px; width: 100%; padding: 0 16px; background: var(--surface); border: 0; display: flex; justify-content: space-between; align-items: center; text-align: left; font-size: 16px; }
.settings-row + .settings-row { border-top: 1px solid #f0f1f3; }
.settings-row > svg, .row-meta svg { width: 18px; height: 18px; fill: none; stroke: #b5bac2; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.row-meta { display: flex; align-items: center; gap: 7px; color: #9a9fa7; font-size: 13px; }
.update-available-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--alert); }
.settings-row:disabled { cursor: not-allowed; }
.feedback-content { flex: 1; overflow: auto; padding: 20px 18px; }
.field-label { display: block; margin: 0 2px 9px; color: #353a42; font-size: 14px; font-weight: 550; }
.field-label > span:first-child { color: #d84b4b; }
.feedback-input-wrap { position: relative; padding: 12px 13px 31px; border: 1px solid #e5e8ed; border-radius: 9px; background: #fff; }
.feedback-input-wrap:focus-within, .contact-input:focus { border-color: #8eb1ed; outline: 2px solid rgba(53,106,211,.12); }
.feedback-input-wrap textarea { display: block; width: 100%; height: 13.2em; padding: 0; border: 0; outline: 0; overflow-y: auto; resize: none; background: transparent; color: var(--text); font-size: 15px; line-height: 1.65; }
.feedback-input-wrap textarea::placeholder, .contact-input::placeholder { color: #b3b8c1; }
.character-count { position: absolute; right: 12px; bottom: 9px; color: #a2a8b1; font-size: 12px; }
.contact-label { margin-top: 22px; }
.optional-label { margin-left: 5px; color: #a2a8b1 !important; font-size: 12px; font-weight: 400; }
.contact-input { width: 100%; height: 46px; padding: 0 13px; border: 1px solid #e5e8ed; border-radius: 8px; outline: 0; background: white; color: var(--text); font-size: 14px; }
.submit-feedback { width: 100%; height: 46px; margin-top: 18px; border-radius: 8px; font-size: 15px; }
.feedback-result { margin: 13px 2px 0; color: #797f89; font-size: 13px; line-height: 1.6; }
.about-view { background: #f6f6f8; }
.about-content { min-height: 0; flex: 1; padding: 0 25px 35px; display: flex; flex-direction: column; overflow: auto; }
.about-brand { padding: 56px 0 49px; text-align: center; }
.about-app-icon { width: 98px; height: 98px; margin: 0 auto; border: 1px solid #e7eaf0; border-radius: 22px; background: var(--surface); box-shadow: 0 9px 28px rgba(40,55,80,.07); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.about-app-icon span { color: #172f61; font-size: 29px; line-height: 1.12; font-weight: 750; }
.about-app-icon small { margin-top: 3px; color: #d75553; font-size: 17px; font-weight: 750; }
.about-brand h2 { margin: 20px 0 7px; font-size: 21px; font-weight: 650; }
.about-brand p { margin: 0; color: var(--secondary); font-size: 14px; }
.about-links { width: 100%; }
.about-link { width: 100%; min-height: 62px; padding: 0 7px; border: 0; border-bottom: 1px solid #dedfe3; background: transparent; display: flex; align-items: center; gap: 17px; text-align: left; font-size: 17px; }
.about-link > svg:first-child { width: 21px; height: 21px; flex: 0 0 auto; color: #30343a; stroke-width: 1.8; }
.about-link span { flex: 1; }
.about-link > svg:last-child { width: 19px; height: 19px; color: #a5a9b0; stroke-width: 1.8; }
.about-footer { margin-top: auto; padding-top: 34px; text-align: center; color: #a0a4ac; font-size: 12px; line-height: 1.45; }
.about-icp { min-height: 35px; display: inline-flex; align-items: center; gap: 2px; color: inherit; text-decoration: none; }
.about-icp svg { width: 14px; height: 14px; stroke-width: 1.8; }
.about-icp:hover, .about-icp:focus-visible { color: var(--brand); }
.about-footer p { margin: 7px 0 0; }
.legal-content { overflow: auto; flex: 1; padding: 10px 24px 28px; background: var(--surface); font-size: 14px; line-height: 1.8; color: #4b5058; font-synthesis: style; }
.legal-content .effective-date { color: #999fa8; font-size: 12px; }
.legal-content h2 { margin: 22px 0 12px; color: #20242b; font-size: 19px; line-height: 1.4; }
.legal-content h3 { margin: 20px 0 6px; color: #252a32; font-size: 15px; }
.legal-content p { margin: 8px 0; }

.modal-backdrop { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 24px; background: rgba(20,24,31,.4); }
.modal-backdrop[hidden] { display: none; }
.update-modal, .cache-modal { width: 100%; padding: 25px 22px 21px; border-radius: 14px; background: #fff; position: relative; text-align: center; box-shadow: 0 12px 40px rgba(12,23,41,.2); }
.modal-close { position: absolute; top: 11px; right: 11px; width: 30px; height: 30px; padding: 6px; border: 0; background: transparent; color: #9197a0; }
.modal-close svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.update-mark { width: 56px; height: 56px; margin: 2px auto 13px; border-radius: 50%; background: #edf4ff; display: grid; place-items: center; color: #3471d5; }
.update-mark svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.update-modal h2 { margin: 0; font-size: 20px; font-weight: 650; }
.cache-modal h2 { margin: 0 0 10px; font-size: 20px; font-weight: 650; }
.cache-modal p { margin: 0 0 23px; color: #858b95; font-size: 14px; line-height: 1.6; }
#upgrade-actions[hidden] { display: none; }
.download-label { margin: 0 0 8px; color: var(--annotation-text); font-size: 14px; }
.download-confirm { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--divider); }
.download-confirm p { margin: 0 0 9px; font-size: 15px; font-weight: 650; }
.download-meter { display: flex; align-items: center; gap: 12px; }
.download-meter progress { flex: 1; min-width: 0; height: 8px; appearance: none; border: 0; border-radius: 999px; overflow: hidden; background: var(--divider); }
.download-meter progress::-webkit-progress-bar { background: var(--divider); }
.download-meter progress::-webkit-progress-value { background: var(--brand); border-radius: 999px; }
.download-meter progress::-moz-progress-bar { background: var(--brand); border-radius: 999px; }
.download-meter span { min-width: 4ch; text-align: right; color: var(--brand); font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.modal-version { margin: 7px 0 0; font-size: 14px; color: #555b65; }
.modal-copy { max-height: 240px; overflow-y: auto; margin: 9px 0 23px; font-size: 13px; line-height: 1.6; color: #858b95; white-space: pre-line; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-actions button { height: 42px; border-radius: 7px; font-size: 15px; }
.secondary-button { background: white; border: 1px solid #dfe2e7; color: #4e545d; }
.primary-button { background: #326ed6; border: 1px solid #326ed6; color: white; }
.consent-backdrop { z-index: 11; background: rgba(20,24,31,.46); }
.consent-modal { width: 100%; max-width: 370px; padding: 25px 22px 21px; border-radius: 13px; background: #fff; text-align: center; box-shadow: 0 12px 40px rgba(12,23,41,.2); }
.consent-mark { margin-bottom: 17px; color: #172f61; font-size: 21px; font-weight: 750; }
.consent-mark span { color: #d75553; }
.consent-modal h2 { margin: 0 0 13px; font-size: 19px; font-weight: 650; }
.consent-modal p { margin: 0; color: #5e646e; font-size: 14px; line-height: 1.65; }
.consent-links { display: flex; justify-content: center; align-items: center; gap: 3px; margin: 2px 0 9px; color: #5e646e; font-size: 14px; }
.text-link { padding: 1px 0; border: 0; background: transparent; color: #326ed6; font-size: inherit; }
.consent-modal .consent-copy { color: #898f99; font-size: 12px; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.consent-actions button { min-width: 0; height: 43px; border-radius: 7px; font-size: 14px; }
.decline-modal { padding-top: 26px; }
.decline-modal h2 { margin-bottom: 10px; }
.toast { position: absolute; z-index: 12; left: 50%; bottom: 100px; max-width: 360px; padding: 10px 15px; border-radius: 7px; background: rgba(30,34,40,.88); color: white; font-size: 13px; text-align: center; transform: translate(-50%, 8px); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

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

html { scroll-snap-type: y mandatory; }
body { overflow-x: hidden; overflow-y: auto; background: #f1f3f6; }
.project-directory { position: fixed; inset: 0 auto 0 0; z-index: 40; width: 214px; padding: 21px 14px; background: #fff; border-right: 1px solid #e5e8ee; display: flex; flex-direction: column; }
.directory-brand { display: flex; align-items: center; gap: 10px; padding: 2px 7px 20px; border-bottom: 1px solid #edf0f3; color: #202630; text-decoration: none; }
.directory-mark { width: 34px; height: 34px; border-radius: 7px; display: grid; place-items: center; background: #1d365f; color: #fff; font-size: 14px; font-weight: 700; }
.directory-brand strong,.directory-brand small { display: block; }
.directory-brand strong { font-size: 14px; }
.directory-brand small { margin-top: 3px; color: #969fac; font-size: 11px; }
.directory-label { margin: 25px 8px 11px; color: #9ba4b0; font-size: 11px; }
.directory-nav { display: grid; gap: 5px; }
.directory-link { min-height: 42px; padding: 0 9px; border-radius: 5px; display: flex; align-items: center; gap: 9px; color: #626e7d; text-decoration: none; font-size: 12px; }
.directory-link > svg { width: 16px; height: 16px; }
.directory-link b { margin-left: auto; color: #aab3be; font-size: 10px; font-weight: 500; }
.directory-link:hover { background: #f5f7fa; }
.directory-link.active { background: #edf4ff; color: #356ad3; font-weight: 600; }
.directory-hint { margin-top: auto; padding: 13px 8px 5px; border-top: 1px solid #edf0f3; display: flex; align-items: center; gap: 8px; color: #98a2ae; font-size: 10px; line-height: 1.55; }
.directory-hint svg { width: 15px; height: 15px; }
.project-pages { margin-left: 214px; }
.page-section {
  --board-padding: clamp(16px, 2.4vw, 40px);
  --preview-height: max(280px, 100svh - 2 * var(--board-padding) - 48px);
  min-height: 100svh;
  padding: var(--board-padding);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(248px, 23vw, 368px);
  grid-template-areas: "title title" "preview notes";
  align-content: start;
  align-items: start;
  gap: 18px clamp(20px, 2.5vw, 44px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border-bottom: 1px solid var(--divider);
}
.board-title { grid-area: title; margin: 0; font-size: 19px; font-weight: 650; line-height: 28px; }
.board-title span { margin-right: 8px; color: var(--annotation-number); font-size: 13px; font-variant-numeric: tabular-nums; }
.board-preview { grid-area: preview; display: block; width: 100%; box-shadow: 0 8px 26px rgba(30, 42, 61, .12); }
.app-section {
  --app-preview-height: min(956px, var(--preview-height));
  --app-preview-width: calc(var(--app-preview-height) * 440 / 956);
  grid-template-columns: minmax(0, var(--app-preview-width)) minmax(0, 650px);
  column-gap: clamp(16px, 2vw, 28px);
}
.app-frame {
  width: min(100%, var(--app-preview-width));
  aspect-ratio: 440 / 956;
  justify-self: center;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.app-frame[hidden] { display: none; }
.pc-frame {
  width: min(100%, 1920px, calc(var(--preview-height) * 16 / 9));
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}
.board-notes { grid-area: notes; max-height: var(--preview-height); overflow-y: auto; padding: 0 14px 0 20px; border-left: 1px solid #dfe4ed; }
.board-notes h3 { margin: 0 0 18px; font-size: 14px; line-height: 22px; }
.board-notes ol { display: grid; gap: 4px; margin: 0; padding-left: 20px; color: var(--annotation-text); font-size: 13px; line-height: 1.65; }
.board-notes li { padding-left: 3px; }
.board-notes li::marker { color: var(--annotation-number); font-size: inherit; font-weight: 750; }
.board-notes h4 { margin: 0 0 5px; font-size: 14px; line-height: 22px; }
.board-notes p { margin: 0; color: var(--annotation-text); font-size: 13px; line-height: 1.75; }
.board-notes .notes-section + .notes-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--divider); }
.board-notes h5 { margin: 16px 0 6px; font-size: 13px; line-height: 21px; }
.notes-status { width: 100%; margin: 8px 0 10px; border-collapse: collapse; color: var(--annotation-text); font-size: 13px; line-height: 1.6; }
.notes-status th, .notes-status td { padding: 6px 0; border-bottom: 1px solid var(--divider); text-align: left; vertical-align: top; }
.notes-status th { font-weight: 650; }
.notes-status th:first-child { width: 1%; padding-right: 12px; white-space: nowrap; }
.notes-status td { overflow-wrap: anywhere; }
.pc-frame + .board-notes p + p { margin-top: 8px; }
.app-notes { align-self: stretch; max-height: none; overflow: visible; }
.app-notes :is(h3, h4, h5) { line-height: 20px; }
.app-notes h3 { margin-bottom: 8px; }
.app-notes h5 { margin: 6px 0 3px; }
.app-notes ol { gap: 2px; line-height: 1.45; }
.app-notes-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.app-notes-heading h4 { margin: 0; }
.app-notes-heading p { line-height: 20px; }
.app-notes .notes-section + .notes-section { margin-top: 10px; padding-top: 8px; }
@media (max-width: 760px) {
  .app-section {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "preview" "notes";
  }
  .app-section > .app-notes { padding: 10px 0 4px; border-left: 0; border-top: 1px solid #dfe4ed; }
}
@media (max-width: 620px) {
  html { scroll-snap-type: y proximity; }
  .page-section {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "preview" "notes";
    gap: 18px;
  }
  .board-notes { max-height: none; overflow-y: visible; padding: 16px 0 8px; border-left: 0; border-top: 1px solid #dfe4ed; }
}
@media (max-width: 900px) {
  .project-directory { width: 58px; padding: 12px 6px; }
  .directory-brand { justify-content: center; padding: 0 0 16px; }
  .directory-brand > span:last-child,.directory-label,.directory-link span,.directory-link b,.directory-hint span { display: none; }
  .directory-nav { margin-top: 18px; }
  .directory-link { justify-content: center; padding: 0; }
  .directory-hint { justify-content: center; padding: 13px 0 5px; }
  .project-pages { margin-left: 58px; }
}
