:root {
  --paper: #f5f6f8;
  --card: #fff;
  --ink: #12151c;
  --muted: #626b7b;
  --line: #e2e5eb;
  --blue: #2852dc;
  --blue-soft: #edf1ff;
  --green: #1d654b;
  --green-soft: #eaf6ef;
  --amber: #78500b;
  --amber-soft: #fff5df;
  --red: #a02d31;
  --red-soft: #fff0f0;
  --radius: 19px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; scrollbar-gutter: stable; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, textarea { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .48; }
button, a { touch-action: manipulation; }
a { color: var(--blue); text-underline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #86a0ff; outline-offset: 3px; }
input, textarea { width: 100%; min-width: 0; background: var(--card); border: 1px solid #cbd0da; border-radius: 12px; padding: 12px 14px; font-size: 16px; }
input { min-height: 49px; }
input[type="date"] { appearance: none; -webkit-appearance: none; }
input:focus, textarea:focus { border-color: var(--blue); }
label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 8px; }
p { margin: 0 0 16px; }
h1, h2, h3 { margin: 0; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 100; padding: 12px 16px; background: var(--ink); color: white; border-radius: 9px; }
.skip-link:focus { top: 12px; }
.brand-mark { width: 47px; height: 47px; display: inline-flex; justify-content: center; align-items: center; border-radius: 13px; background: #86b918; color: white; font-weight: 800; font-size: 17px; letter-spacing: -1.6px; flex-shrink: 0; }
.brand-mark span { color: #7290ff; letter-spacing: -1px; }
.brand-mark-large { width: 69px; height: 69px; font-size: 25px; border-radius: 19px; margin-bottom: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 17px; min-height: 48px; border-radius: 12px; border: 1px solid transparent; font-size: 14px; line-height: 1.4; font-weight: 650; text-decoration: none; transition: background-color .15s, border-color .15s; }
.button-full { width: 100%; }
.button-primary { background: var(--blue); color: white; }
.button-primary:hover:not(:disabled) { background: #2044bc; }
.button-secondary { background: var(--card); color: var(--ink); border-color: var(--line); }
.button-secondary:hover:not(:disabled) { background: #f7f8fb; border-color: #c6ccd8; }
.button-quiet { background: transparent; color: var(--muted); }
.button-quiet:hover:not(:disabled) { background: #ebedf2; }
.button svg { width: 17px; height: 17px; }
.icon-button { width: 44px; height: 44px; padding: 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--muted); }
.icon-button:hover { background: var(--paper); color: var(--ink); }
.text-button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 7px 0; border: 0; background: transparent; color: var(--blue); font-size: 13px; font-weight: 700; text-align: left; }
.eyebrow { font-size: 10px; font-weight: 750; letter-spacing: 1.5px; color: var(--muted); margin: 0 0 10px; line-height: 1.5; }
.notice { border-radius: 12px; padding: 13px 15px; font-size: 13px; line-height: 1.5; background: var(--blue-soft); color: var(--blue); margin-bottom: 18px; overflow-wrap: anywhere; }
.notice-warning { background: var(--amber-soft); color: var(--amber); }
.notice-error { background: var(--red-soft); color: var(--red); }
.notice-success { background: var(--green-soft); color: var(--green); }
.error-with-action { display: flex; gap: 10px; align-items: flex-start; }
.error-with-action > span { flex: 1; }
.error-with-action > button { flex-shrink: 0; border: 0; color: inherit; background: transparent; width: 32px; height: 32px; font-size: 22px; margin: -5px -5px -5px 0; }
.loading-view { min-height: 100dvh; display: grid; align-content: center; justify-items: center; gap: 18px; padding: 24px; }
.loading-view p { color: var(--muted); font-size: 14px; }
.login-view { min-height: 100dvh; display: grid; align-items: center; padding: 35px 20px; background: radial-gradient(ellipse at 92% 0%, #e8edff 0, transparent 45%), var(--paper); }
.login-card { width: min(100%, 450px); margin: 0 auto; padding: 32px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 15px 50px #1d2a5010; }
.login-card h1 { font-size: clamp(29px, 6vw, 37px); line-height: 1.16; letter-spacing: -1.4px; font-weight: 720; margin-bottom: 18px; }
.login-intro { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.login-card form label:not(:first-child) { margin-top: 18px; }
.login-card form .button { margin-top: 24px; justify-content: space-between; padding-left: 19px; padding-right: 19px; }
.login-foot { color: #7a8291; font-size: 11px; margin: 22px 0 0; text-align: center; }
.app-header { position: sticky; top: 0; z-index: 10; background: #ffffffed; border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.header-inner { max-width: 1056px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 26px; padding-top: max(16px, env(safe-area-inset-top)); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.brand-copy strong { font-size: 17px; font-weight: 720; letter-spacing: -.45px; }
.brand-copy > span { color: var(--muted); font-size: 11px; }
.header-controls { display: flex; align-items: center; gap: 2px; }
.main { max-width: 1056px; margin: 0 auto; padding: 34px 26px calc(115px + env(safe-area-inset-bottom)); }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 27px; }
.page-heading > div { min-width: 0; }
.page-heading h1 { font-size: clamp(30px, 5.6vw, 39px); font-weight: 740; letter-spacing: -1.5px; line-height: 1.18; overflow-wrap: anywhere; }
.heading-dot { color: var(--blue); }
.page-intro { margin: 9px 0 0; color: var(--muted); font-size: 14px; }
.large-count { font-size: 52px; line-height: 1; letter-spacing: -3px; color: #b9c1d0; font-weight: 400; padding-left: 8px; flex-shrink: 0; }
.pending-banner { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 9px; border: 1px solid #d9e2ff; border-radius: 16px; background: var(--blue-soft); margin-bottom: 25px; }
.pending-symbol { display: grid; place-items: center; width: 31px; height: 31px; flex-shrink: 0; border-radius: 9px; background: var(--blue); color: white; font-size: 19px; }
.pending-banner strong { display: block; font-size: 14px; font-weight: 700; }
.pending-banner p { margin: 4px 0 0; color: #52617f; font-size: 12px; max-width: 600px; }
.action-toolbar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 19px; }
.filters { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.filter-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 9px 13px; background: transparent; font-size: 12px; font-weight: 600; white-space: nowrap; }
.filter-button span { font-size: 10px; color: var(--muted); padding: 2px 6px; border-radius: 5px; background: #e8ebf1; font-weight: 750; }
.filter-button[aria-pressed="true"] { color: white; background: var(--ink); border-color: var(--ink); }
.filter-button[aria-pressed="true"] span { color: white; background: #ffffff24; }
.search-field { display: flex; align-items: center; gap: 9px; margin: 0; min-width: 0; color: #7b8493; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding-left: 13px; }
.search-field svg { width: 18px; height: 18px; }
.search-field input { min-height: 47px; border: 0; padding-left: 0; background: transparent; font-weight: 400; }
.search-field:focus-within { border-color: var(--blue); outline: 2px solid #2852dc14; }
.search-field input:focus-visible { outline: none; }
.section-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px; font-size: 11px; color: var(--muted); margin: 0 1px 13px; }
.section-meta > :first-child { font-weight: 650; color: #596171; }
.action-grid, .automation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.action-card { position: relative; min-width: 0; display: flex; flex-direction: column; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card-top { display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 13px; }
.reference { font-size: 11px; font-weight: 750; color: #737d8e; letter-spacing: .5px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; font-size: 10px; line-height: 1.5; font-weight: 650; border-radius: 6px; background: #f0f2f6; color: #667083; }
.tag-green { color: var(--green); background: var(--green-soft); }
.tag-amber { color: var(--amber); background: var(--amber-soft); }
.tag-blue { color: var(--blue); background: var(--blue-soft); }
.tag-red { color: var(--red); background: var(--red-soft); }
.action-card h2 { font-size: 17px; line-height: 1.35; font-weight: 700; letter-spacing: -.3px; overflow-wrap: anywhere; margin-bottom: 7px; }
.contact { color: #8a92a0; font-size: 11px; margin-bottom: 9px; overflow-wrap: anywhere; }
.action-description { color: #596273; font-size: 13px; margin: 0 0 18px; overflow-wrap: anywhere; }
.action-dates { display: flex; flex-direction: column; gap: 4px; font-size: 12px; margin: auto 0 17px; }
.action-dates span { color: var(--muted); }
.action-dates strong { color: var(--ink); font-weight: 600; }
.action-dates .deadline { color: var(--amber); font-size: 11px; }
.action-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.action-controls .button { font-size: 12px; }
.action-controls .button:only-child { grid-column: 1/-1; }
.action-card.is-done .action-controls .button { color: var(--muted); }
.card-link { display: inline-flex; align-items: center; justify-content: flex-start; gap: 6px; min-height: 44px; font-size: 12px; font-weight: 600; margin: 3px 0 -8px; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.card-link svg { width: 14px; height: 14px; }
.confirmation-pending { margin: 13px 0 0; padding-top: 11px; border-top: 1px solid #edf0f5; color: var(--blue); font-size: 10px; line-height: 1.6; }
.card-saving { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.empty-state { background: var(--card); border: 1px dashed #cfd5df; border-radius: var(--radius); padding: 44px 22px; text-align: center; }
.empty-icon { display: grid; place-items: center; margin: 0 auto 18px; width: 50px; height: 50px; border-radius: 15px; font-size: 25px; background: var(--blue-soft); color: var(--blue); }
.empty-state h2 { font-size: 19px; line-height: 1.35; letter-spacing: -.5px; font-weight: 650; }
.empty-state p { max-width: 340px; margin: 9px auto 20px; color: var(--muted); font-size: 13px; }
.snapshot-note { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 23px; padding: 16px 18px; background: #eef0f4; border-radius: 13px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #8791a4; margin-top: 7px; flex-shrink: 0; }
.snapshot-note strong { font-weight: 650; font-size: 12px; }
.snapshot-note p { margin: 4px 0 0; font-size: 11px; color: var(--muted); }
.automation-card { display: flex; flex-direction: column; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.automation-card .card-top { align-items: center; gap: 10px; margin-bottom: 15px; }
.auto-symbol { display: grid; place-items: center; width: 36px; height: 36px; background: var(--paper); border-radius: 11px; font-size: 17px; color: #778196; }
.automation-card h2 { font-size: 17px; line-height: 1.3; font-weight: 700; letter-spacing: -.3px; overflow-wrap: anywhere; margin-bottom: 7px; }
.auto-schedule { font-size: 12px; color: var(--muted); margin: 0 0 21px; overflow-wrap: anywhere; }
.auto-facts { margin: 0 0 16px; display: flex; flex-direction: column; gap: 14px; }
.auto-facts > div { padding-left: 12px; border-left: 2px solid #e6eaf4; }
.auto-facts dt { color: #828b9b; font-size: 10px; margin-bottom: 3px; }
.auto-facts dd { margin: 0; font-size: 12px; line-height: 1.5; }
.auto-result { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.auto-observed { font-size: 10px; color: #8a93a1; margin: auto 0 0; padding-top: 4px; }
.automation-card .card-link { margin-top: 8px; }
.content-footer { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: #929aa7; margin-top: 27px; }
.bottom-nav { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); width: min(calc(100% - 36px), 570px); display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 20px; background: #fffffff5; border: 1px solid #dce1e9; box-shadow: 0 8px 38px #192b4b1a; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); z-index: 20; }
.nav-tab { position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 55px; padding: 10px 8px; border: 0; border-radius: 15px; background: transparent; color: #7b8596; font-size: 12px; font-weight: 650; }
.nav-tab svg { width: 19px; height: 19px; }
.nav-tab[aria-selected="true"] { color: var(--blue); background: var(--blue-soft); }
.nav-pending-dot { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; margin-left: -3px; }
.sheet { border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 0; border-radius: 23px; width: min(calc(100% - 30px), 490px); max-height: calc(100dvh - 60px); overflow: auto; overscroll-behavior: contain; box-shadow: 0 20px 70px #0c163330; }
.sheet::backdrop { background: #101a3b66; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.sheet-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 25px 25px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fffffffa; z-index: 1; }
.sheet-heading .eyebrow { margin-bottom: 5px; }
.sheet-heading h2 { font-size: 24px; letter-spacing: -.7px; line-height: 1.25; font-weight: 700; }
.close-button { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 50%; color: #8b93a2; background: var(--paper); font-size: 27px; line-height: 1; margin-top: -5px; }
.sheet-body { padding: 23px 25px 26px; font-size: 13px; color: #576172; }
.sheet-body .button-full + .button-full { margin-top: 10px; }
.sheet-body > .small-note { margin-top: 13px; }
.account-summary { display: flex; align-items: center; gap: 11px; padding-bottom: 21px; }
.account-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-weight: 700; }
.account-summary > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.account-summary strong { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.account-summary div span { font-size: 11px; color: #8992a2; }
.settings-section { border-top: 1px solid var(--line); padding: 21px 0; }
.settings-section h3 { color: var(--ink); font-size: 13px; font-weight: 700; margin-bottom: 9px; }
.settings-section p { font-size: 12px; }
.settings-section .button { font-size: 12px; justify-content: space-between; }
.small-note { font-size: 11px !important; color: #7d8797; line-height: 1.65; }
.settings-section .small-note { margin: 14px 0 0; }
.version-label { font-size: 10px; text-align: center; color: #9ca3ae; margin: 12px 0 0; }
.dialog-action-title { font-weight: 650; color: var(--ink); font-size: 15px; overflow-wrap: anywhere; }
.confirmation-text { min-height: 150px; resize: vertical; background: #f5f7fb; font-size: 13px; line-height: 1.75; margin-bottom: 16px; }
.toast { position: fixed; z-index: 50; top: max(18px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 36px); border: 1px solid #ffffff18; border-radius: 13px; background: var(--ink); color: white; box-shadow: 0 9px 35px #00000026; padding: 13px 17px; font-size: 12px; text-align: center; pointer-events: none; }
.is-loading svg { animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 800px) {
  .action-toolbar { flex-direction: row; align-items: center; justify-content: space-between; gap: 22px; }
  .search-field { width: 350px; }
  .filters { flex-shrink: 0; }
}
@media (max-width: 650px) {
  html { scrollbar-gutter: auto; }
  .header-inner { padding: 15px 20px; padding-top: max(15px, env(safe-area-inset-top)); }
  .main { padding: 28px 20px calc(115px + env(safe-area-inset-bottom)); }
  .action-grid, .automation-grid { grid-template-columns: 1fr; gap: 12px; }
  .action-card, .automation-card { padding: 20px; }
  .bottom-nav { width: 100%; bottom: 0; padding: 7px 15px max(10px, env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; border-bottom: 0; }
  .nav-tab { flex-direction: column; gap: 4px; min-height: 57px; border-radius: 13px; padding: 6px; font-size: 10px; }
  .nav-tab svg { width: 21px; height: 21px; }
  .nav-pending-dot { position: absolute; top: 6px; left: calc(50% + 14px); }
  .sheet { width: 100%; margin: auto 0 0; max-height: calc(100dvh - 45px); border-radius: 23px 23px 0 0; border-bottom: 0; }
  .sheet-body { padding-bottom: max(27px, env(safe-area-inset-bottom)); }
}
@media (max-width: 370px) {
  .header-inner { padding-left: 15px; padding-right: 15px; }
  .main { padding-left: 14px; padding-right: 14px; }
  .brand-mark { width: 42px; height: 42px; font-size: 16px; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy > span { font-size: 10px; }
  .brand { gap: 9px; }
  .icon-button { width: 40px; height: 44px; padding: 9px; }
  .page-heading h1 { font-size: 31px; letter-spacing: -1.25px; }
  .page-intro { font-size: 12px; }
  .large-count { font-size: 44px; }
  .filters { gap: 5px; }
  .filter-button { font-size: 11px; gap: 5px; padding: 9px; }
  .filter-button span { padding: 2px 4px; }
  .action-card, .automation-card { padding: 18px; }
  .pending-banner { padding: 15px 14px 7px; gap: 10px; }
  .login-card { padding: 25px 22px; }
  .sheet-heading { padding: 23px 19px 18px; }
  .sheet-body { padding-left: 19px; padding-right: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
