/* MyPowerfulNotes: the app's own look on the web. graphite and teal, white paper on a warm grey desk, Inter. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/inter-regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/inter-semibold.woff") format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/interdisplay-semibold.woff") format("woff"); }

:root {
  --ink: #0E6E66;
  --ink-strong: #0B4F4A;
  --ink-soft: #E3F1EF;
  --text: #1E242B;
  --text-2: #4A535C;
  --desk: #F3F3F0;
  --paper: #FFFFFF;
  --line: #E6E8E6;
  --dim: #4F7C93;
  --highlight: #FFE45C;
  --graphite: #1E242B;
  --graphite-2: #2B323A;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --display: "Inter Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --wrap: 1160px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; font: 400 16px/1.6 var(--body); color: var(--text); background: var(--paper); font-feature-settings: "cv11", "ss01"; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink-strong); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; color: var(--text); }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.022em; }
h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.04; }
h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; }
h3 { font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.94); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; column-gap: 20px; row-gap: 6px; min-height: 64px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
@media (max-width: 760px) { .site-head .wrap { padding-top: 16px; padding-bottom: 8px; } .site-nav { margin-left: -12px; } }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
.brand b { font-weight: 600; color: var(--ink); }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: 15px; }
.site-nav a:hover { background: var(--desk); color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--ink-soft); }

/* Buttons */
.buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 6px; font-weight: 600; font-size: 15.5px; text-decoration: none; border: 1px solid transparent; }
.button.primary { background: var(--ink); color: #fff; }
.button.primary:hover { background: var(--ink-strong); color: #fff; }
.button.quiet { background: var(--paper); color: var(--text); border-color: #CBD1CF; }
.button.quiet:hover { border-color: var(--ink); color: var(--ink); }

/* Hero: a sheet of paper on the desk, with dot paper behind */
.hero { background-color: var(--desk); background-image: radial-gradient(#D6D8D4 1px, transparent 1.2px); background-size: 22px 22px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 0; }
.hero-copy { padding-bottom: 72px; }
.hero h1 { max-width: 13ch; }
.lead { font-size: 20px; line-height: 1.55; color: var(--text-2); max-width: 36em; margin-top: 22px; }
.hero .note { margin-top: 26px; font-size: 14.5px; color: var(--text-2); }
.hero-page { align-self: end; margin-bottom: -84px; transform: rotate(-2.5deg); filter: drop-shadow(0 18px 30px rgba(31, 52, 77, 0.16)); max-width: 470px; justify-self: center; width: 100%; }

.writing { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .writing { stroke-dashoffset: 1; animation: write 0.32s ease-in forwards; }
  .w0 { animation-delay: 0.9s; } .w1 { animation-delay: 1.25s; } .w2 { animation-delay: 1.6s; }
  .w3 { animation-delay: 1.95s; } .w4 { animation-delay: 2.3s; } .w5 { animation-delay: 2.65s; }
  .w6 { animation-delay: 3s; } .w7 { animation-delay: 3.35s; } .w8 { animation-delay: 3.7s; }
  .w9 { animation-delay: 4.05s; } .w10 { animation-delay: 4.4s; } .w11 { animation-delay: 4.75s; }
}
@keyframes write { to { stroke-dashoffset: 0; } }

/* Sections */
.section { padding: 112px 0; }
.section.tint { background: var(--desk); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head p { font-size: 18px; color: var(--text-2); margin-top: 16px; }

/* One page, everything on it: callouts drawn like the drawing tool's length lines */
.anatomy { display: grid; grid-template-columns: 1fr minmax(300px, 420px) 1fr; gap: 0; align-items: stretch; }
.anatomy .sheet { position: relative; z-index: 1; filter: drop-shadow(0 10px 24px rgba(31, 52, 77, 0.12)); }
.callouts { position: relative; list-style: none; margin: 0; padding: 0; }
.callouts li { position: absolute; transform: translateY(-50%); width: 100%; }
.callouts.left li { padding-right: 76px; text-align: right; }
.callouts.right li { padding-left: 76px; }
.callouts li::before { content: ""; position: absolute; top: 12px; width: 64px; border-top: 1px solid var(--dim); }
.callouts li::after { content: ""; position: absolute; top: 7px; height: 11px; border-left: 1px solid var(--dim); }
.callouts.left li::before { right: 0; }
.callouts.left li::after { right: 0; }
.callouts.right li::before { left: 0; }
.callouts.right li::after { left: 0; }
.callouts h3 { color: var(--text); }
.callouts p { font-size: 15px; color: var(--text-2); margin: 4px 0 0; }
.a1 { top: 13%; } .a2 { top: 33%; } .a3 { top: 50%; } .a4 { top: 63%; } .a5 { top: 80%; } .a6 { top: 93%; }

.papers { margin-top: 88px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 48px; align-items: start; }
.papers p { color: var(--text-2); }
.paper-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 18px; }
.paper-list li { font-size: 14px; color: var(--text-2); }
.paper-list svg { margin-bottom: 8px; width: 100%; max-width: 110px; }

.more-list { margin-top: 72px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 40px; padding: 0; list-style: none; border-top: 1px solid var(--line); padding-top: 40px; }
.more-list p { color: var(--text-2); font-size: 15px; margin: 6px 0 0; }

/* Screens */
.screens { display: grid; gap: 72px; }
.screen { margin: 0; }
.screen svg { width: 100%; filter: drop-shadow(0 14px 28px rgba(31, 52, 77, 0.13)); }
.screen figcaption { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; margin-top: 26px; }
.screen figcaption p { color: var(--text-2); margin: 0; max-width: 60ch; }
.pair { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 0.9fr); gap: 48px; align-items: end; }
.pair .screen figcaption { grid-template-columns: 1fr; gap: 6px; }
.disclaimer { font-size: 14px; color: var(--text-2); margin-top: 40px; }

/* Privacy */
.private { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.private .section-head { margin-bottom: 0; }
.facts { margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.facts div { border-top: 2px solid var(--ink); padding-top: 16px; }
.facts dt { font-weight: 600; font-size: 17px; }
.facts dd { margin: 6px 0 0; color: var(--text-2); font-size: 15px; }

/* Platforms */
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.platform { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 32px; }
.platform h3 { font-size: 21px; margin-bottom: 10px; }
.platform ul { margin: 14px 0 0; padding-left: 20px; color: var(--text-2); }
.platform li { margin: 6px 0; }
.status { margin-top: 56px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; justify-content: space-between; padding: 28px 32px; border-radius: 12px; background: var(--graphite); color: #fff; }
.status p { margin: 0; max-width: 60ch; }
.status strong { display: block; font-size: 19px; margin-bottom: 4px; }
.status .button { background: var(--ink); color: #fff; }
.status .button:hover { background: #14857C; color: #fff; }

/* Documents (privacy, terms, support, licences) */
.doc { padding: 64px 0 104px; }
.doc .wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; }
.doc header { grid-column: 1 / -1; max-width: 760px; }
.doc header p { color: var(--text-2); font-size: 18px; margin-top: 16px; }
.doc .updated { font-size: 14px; color: var(--text-2); }
.toc { position: sticky; top: 24px; align-self: start; font-size: 14.5px; }
.toc p { font-weight: 600; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; color: var(--text-2); }
.toc li { margin: 6px 0; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.prose { max-width: 70ch; }
.prose h2 { font-size: 26px; margin: 48px 0 12px; letter-spacing: -0.015em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose code { font-size: 0.92em; background: var(--desk); padding: 1px 5px; border-radius: 4px; }
.prose .callout { border-left: 3px solid var(--ink); background: var(--ink-soft); padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 20px 0; }
.prose .callout p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 600; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 16px 0 24px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; background: var(--desk); }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 17px; }
details[open] summary { margin-bottom: 8px; }
details p, details ul, details ol { color: var(--text-2); }
.licence { white-space: pre-wrap; font-size: 13px; line-height: 1.5; background: var(--desk); padding: 18px; border-radius: 8px; overflow-x: auto; }

/* Footer */
.site-foot { background: var(--graphite); padding: 40px 0 48px; font-size: 14.5px; color: #C9D0D6; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-foot a { color: #C9D0D6; }
.site-foot a:hover { color: #7FD1C7; }
.site-foot .brand { color: #F2F4F5; }
.site-foot .brand b { color: #7FD1C7; }
.site-foot :focus-visible { outline-color: #7FD1C7; }

.not-found { padding: 120px 0; }
.not-found p { color: var(--text-2); font-size: 18px; margin-top: 16px; }

@media (max-width: 1020px) {
  .anatomy { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
  .anatomy .sheet { order: -1; margin-bottom: 36px; }
  .callouts { display: grid; gap: 20px; }
  .callouts li { position: static; transform: none; padding: 0 0 0 20px !important; text-align: left !important; }
  .callouts li::before { left: 0 !important; right: auto !important; top: 4px; width: 0; height: 16px; border-top: 0; border-left: 2px solid var(--dim); }
  .callouts li::after { display: none; }
  .callouts.right { margin-top: 20px; }
  .papers, .private { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .facts, .more-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc .wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 48px; }
  .hero-copy { padding-bottom: 0; }
  .hero-page { margin-bottom: -70px; max-width: 360px; }
  .hero { padding-bottom: 0; }
  .section { padding: 80px 0; }
  .lead { font-size: 18px; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .pair .screen:last-child { max-width: 320px; }
  .screen figcaption { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .facts, .more-list, .platforms { grid-template-columns: minmax(0, 1fr); }
  .paper-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .status { padding: 24px; }
}

/* ---- Try it ---- */
.try-head { background: var(--desk); border-bottom: 1px solid var(--line); padding: 48px 0 28px; }
.try-head h1 { font: 600 clamp(32px, 4.4vw, 48px)/1.1 var(--display); letter-spacing: -0.02em; }
.try-head .lead { margin-top: 14px; font-size: 18px; }
.device-switch { display: inline-flex; margin-top: 22px; padding: 4px; border-radius: 10px; background: #E6E7E3; gap: 2px; }
.device-switch button { font: 500 15px var(--body); color: var(--text); border: 0; background: transparent; padding: 8px 16px; border-radius: 7px; cursor: pointer; }
.device-switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink-strong); box-shadow: 0 1px 2px rgba(30, 36, 43, 0.15); }
.try-stage { padding: 28px 0 72px; background: var(--desk); }
.try-note { color: var(--text-2); font-size: 15px; margin-top: 18px; max-width: 70ch; }

.app { position: relative; margin: 0 auto; background: #FAFAFA; border: 1px solid #C9CFD6; overflow: hidden; display: grid;
  grid-template-columns: minmax(0, 1fr); font: 400 14px/1.3 var(--body); color: var(--text); user-select: none; -webkit-user-select: none; }
.app[data-device="windows"] { height: min(82vh, 820px); border-radius: 9px; grid-template-areas: "title" "tools" "cad" "body" "hint"; grid-template-rows: auto auto auto minmax(0, 1fr) auto; }
.app[data-device="tablet"] { height: min(80vh, 780px); max-width: 1180px; border: 18px solid #202327; border-radius: 34px; grid-template-areas: "bar tools" "cad cad" "body body" "hint hint"; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; }
.app[data-device="phone"] { height: min(86vh, 820px); max-width: 410px; border: 12px solid #202327; border-radius: 40px; grid-template-areas: "bar" "cad" "body" "hint" "tools"; grid-template-rows: auto auto minmax(0, 1fr) auto auto; }

.a-title { grid-area: title; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 0 0 12px; background: #F3F3F3; font-size: 12px; }
.a-title .wc { margin-left: auto; display: flex; height: 100%; }
.a-title .wc b { width: 46px; position: relative; }
.a-title .wc b::after { content: ""; position: absolute; left: 18px; top: 16px; width: 10px; border-top: 1px solid var(--text); }
.a-title .wc b:nth-child(2)::after { top: 12px; height: 10px; border: 1px solid var(--text); border-radius: 1.5px; }
.a-title .wc b:nth-child(3)::after { top: 17px; width: 13px; transform: rotate(45deg); box-shadow: none; }
.a-title .wc b:nth-child(3)::before { content: ""; position: absolute; left: 18px; top: 17px; width: 13px; border-top: 1px solid var(--text); transform: rotate(-45deg); }
.app:not([data-device="windows"]) .a-title { display: none; }
.a-bar { grid-area: bar; display: none; align-items: center; gap: 6px; padding: 6px 10px; background: #FAFAFA; }
.app:not([data-device="windows"]) .a-bar { display: flex; }
.a-name { display: flex; flex-direction: column; min-width: 0; }
.a-name small { font-size: 11px; color: var(--text-2); }
.a-name strong { font-size: 14px; font-weight: 600; white-space: nowrap; }

.a-tools { grid-area: tools; display: flex; align-items: center; gap: 4px; padding: 6px 10px; background: #FAFAFA; border-bottom: 1px solid #E1E1E1; overflow-x: auto; scrollbar-width: thin; }
.app[data-device="phone"] .a-tools { border-bottom: 0; border-top: 1px solid #E1E1E1; padding-bottom: 10px; }
.app[data-device="tablet"] .a-bar, .app[data-device="tablet"] .a-tools { border-bottom: 1px solid #E1E1E1; }
.a-tools .grp { display: flex; align-items: center; gap: 2px; padding-right: 6px; margin-right: 2px; border-right: 1px solid #E1E1E1; flex: none; }
.a-tools .grp:last-child { border-right: 0; }
.a-tools .end { margin-left: auto; }
.app:not([data-device="windows"]) .places { display: none; }
.app[data-device="phone"] .widths, .app[data-device="phone"] .nav .tb[data-act="add"] { display: none; }
.tb { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--text); cursor: pointer; flex: none; }
.tb .i { width: 20px; height: 20px; }
.tb:hover { background: #EDEEEB; }
.tb[aria-pressed="true"] { background: var(--ink-soft); color: var(--ink); box-shadow: inset 0 -2.5px 0 var(--ink); }
.tb:focus-visible, .sw:focus-visible, .wd:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.count { font-size: 13px; font-weight: 500; padding: 0 6px; white-space: nowrap; }
.sw, .wd { width: 28px; height: 36px; border: 0; background: transparent; display: inline-grid; place-items: center; cursor: pointer; border-radius: 6px; padding: 0; flex: none; }
.sw span { width: 16px; height: 16px; border-radius: 50%; display: block; }
.sw[aria-pressed="true"] span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.wd span { display: block; border-radius: 50%; background: var(--text); }
.wd .dot0 { width: 4px; height: 4px; } .wd .dot1 { width: 7px; height: 7px; } .wd .dot2 { width: 11px; height: 11px; }
.wd[aria-pressed="true"] { box-shadow: inset 0 0 0 1.6px var(--ink); }

.cadbar { grid-area: cad; background: #fff; border-bottom: 1px solid #E1E1E1; padding: 6px 10px; display: flex; gap: 8px; align-items: center; }
.cadbar[hidden] { display: none; }
.cad-head { display: none; }
.app[data-device="windows"] .cad-head { display: flex; flex-direction: column; gap: 2px; }
.cad-row { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.cadbar select, .cadbar input { font: 500 13px var(--body); height: 32px; border: 1px solid #D1D6DC; border-radius: 5px; background: #fff; color: var(--text); padding: 0 6px; }
.cadbar input { width: 70px; user-select: text; -webkit-user-select: text; }
.cadbar #cadAng { width: 54px; }
.cadbar .tb { width: 32px; height: 32px; }
.cadbar .tb .i { width: 18px; height: 18px; }
.seg { display: inline-flex; background: #F3F3F0; border-radius: 7px; padding: 1px; }
.tb.wood { box-shadow: inset 0 0 0 1px #9CCBA3; color: #2E7D32; }
.tb.lt { width: 44px; }
.ltsample { display: inline-block; width: 26px; height: 0; border-top: 2px solid var(--text); }
.ltsample[data-dash="dash"] { border-top-style: dashed; }
.ltsample[data-dash="dot"] { border-top-style: dotted; border-top-width: 3px; }
.ltsample[data-dash="dashdot"] { border: 0; height: 2px; background: linear-gradient(90deg, var(--text) 0 8px, transparent 8px 11px, var(--text) 11px 13px, transparent 13px 16px, var(--text) 16px 24px, transparent 24px); }
.grip { display: grid; place-items: center; width: 18px; height: 16px; color: #9AA4AF; cursor: grab; }
.grip .i { width: 14px; height: 14px; }
.mini { width: 18px; height: 16px; border: 0; padding: 0; background: transparent; color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.mini .i { width: 13px; height: 13px; }
.cadbar.floating { position: absolute; z-index: 5; max-width: 560px; border: 1px solid #C9CFD6; border-radius: 9px; box-shadow: 0 8px 24px rgba(30, 36, 43, 0.18); }
.cadbar:not(.floating) .grip { visibility: hidden; }

.a-body { grid-area: body; display: flex; min-height: 0; position: relative; }
.pages { width: 128px; flex: none; overflow-y: auto; background: #FAFAFA; border-right: 1px solid #E1E1E1; padding: 8px 10px; }
.app:not([data-device="windows"]) .pages, .app.no-pages .pages { display: none; }
.pages-head { font-weight: 600; font-size: 13px; margin: 2px 0 8px; }
.thumb { display: grid; grid-template-columns: 16px 1fr; align-items: start; gap: 4px; border: 0; background: none; padding: 0; margin-bottom: 10px; cursor: pointer; font: 12px var(--body); color: var(--text-2); }
.thumb canvas { width: 84px; height: 119px; border: 1px solid #D5DBE2; border-radius: 2px; }
.thumb.on canvas { border: 2px solid var(--ink); }
.desk { flex: 1; min-width: 0; overflow: auto; background: #ECECE8; display: flex; justify-content: center; align-items: flex-start; padding: 16px; }
.sheet { position: relative; flex: none; box-shadow: 0 1px 3px rgba(30, 36, 43, 0.18), 0 8px 24px rgba(30, 36, 43, 0.08); background: #fff; }
.sheet canvas { display: block; touch-action: none; }
.page-text { position: absolute; z-index: 3; min-height: 2em; border: 1px dashed var(--ink); background: rgba(255, 255, 255, 0.9); font-family: var(--body); line-height: 1.35; padding: 0; resize: both; color: var(--text); user-select: text; -webkit-user-select: text; outline: none; }
.actions { width: 260px; flex: none; overflow-y: auto; background: #fff; border-left: 1px solid #E1E1E1; padding: 14px; }
.app[data-device="phone"] .actions { position: absolute; inset: 0 0 0 auto; width: 86%; z-index: 4; box-shadow: -8px 0 24px rgba(30, 36, 43, 0.15); }
.act-head { display: flex; align-items: center; justify-content: space-between; margin: -6px 0 6px; }
.actions h2 { font-size: 16px; }
.actions ul { list-style: none; margin: 0; padding: 0; }
.actions li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #EEF0F3; }
.actions li input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--ink); }
.actions li button { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; font: inherit; color: inherit; }
.actions li strong { font-weight: 500; }
.actions li small { color: var(--text-2); font-size: 12px; }
.actions li.done strong { text-decoration: line-through; color: var(--text-2); }
.actions .empty { color: var(--text-2); font-size: 13px; }
.a-hint { grid-area: hint; font-size: 12.5px; color: var(--text-2); padding: 6px 12px; background: #FAFAFA; border-top: 1px solid #E1E1E1; min-height: 28px; }

.menu { position: absolute; z-index: 6; min-width: 200px; background: #fff; border: 1px solid #D1D6DC; border-radius: 8px; box-shadow: 0 8px 24px rgba(30, 36, 43, 0.16); padding: 5px; }
.menu button, .menu label { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 5px; font: 14px var(--body); color: var(--text); cursor: pointer; }
.menu button:hover, .menu label:hover { background: var(--ink-soft); }
.menu hr { border: 0; border-top: 1px solid #EEF0F3; margin: 4px 6px; }
.menu input { accent-color: var(--ink); width: 16px; height: 16px; }
.ask { position: absolute; z-index: 8; left: 50%; top: 30%; transform: translateX(-50%); width: min(340px, 90%); background: #fff; border-radius: 10px; border: 1px solid #D1D6DC; box-shadow: 0 16px 40px rgba(30, 36, 43, 0.25); padding: 18px; display: grid; gap: 10px; }
.ask[hidden] { display: none; }
.ask label { font-weight: 600; }
.ask input { font: 15px var(--body); padding: 8px 10px; border: 1px solid #C9D1DA; border-radius: 6px; user-select: text; -webkit-user-select: text; }
.ask div { display: flex; justify-content: flex-end; gap: 8px; }
.ask button { font: 500 14px var(--body); border: 1px solid #CBD1CF; background: #fff; border-radius: 6px; padding: 7px 14px; cursor: pointer; }
.ask .ok { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 760px) {
  .try-head { padding: 32px 0 20px; }
  .try-stage .wrap { padding: 0 8px; }
  .app[data-device="tablet"] { border-width: 10px; border-radius: 22px; }
}
