/* Watch workspace: compact controls, one full-width action per row. */
:root {
  --bg: #f3f6fa;
  --soft: #eaf0f6;
  --ink: #172b42;
  --muted: #596b7e;
  --line: #dce4ed;
  --line-strong: #b9c8d8;
  --accent: #126fbb;
  --accent-dark: #0c568f;
  --accent-soft: #eaf3fb;
}
[hidden] { display: none !important; }
body { font-size: 16px; line-height: 1.65; letter-spacing: 0; }
.wrap { max-width: 64rem; padding-inline: 1.5rem; }
.site-header { background: #fff; }
.site-header .wrap { min-height: 76px; padding-block: .8rem; }
.brand { font-size: .95rem; gap: .65rem; }
.brand img { width: 34px; height: 34px; }
.site-nav { max-width: 18rem; }
.language-picker { font-size: .8rem; }
.language-picker select { min-height: 38px; border-radius: 8px; padding: .4rem .65rem; }
.watch-heading { padding: 2.4rem 0 1rem; width: 100%; }
.watch-heading h1 { font-size: clamp(1.65rem, 1.25rem + 1.8vw, 2.25rem); line-height: 1.4; letter-spacing: -.025em; margin: 0 0 .6rem; }
.watch-heading p { color: var(--muted); margin: 0; font-size: .94rem; }
h2 { font-size: 1.12rem; line-height: 1.5; letter-spacing: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
.btn { min-height: 48px; padding: .65rem 1rem; border-radius: 10px; font-size: .92rem; line-height: 1.6; background: var(--accent); border-color: var(--accent); }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--ghost { background: #fff; border-color: var(--line-strong); color: var(--accent-dark); }
.btn--ghost:hover { color: var(--accent-dark); background: var(--accent-soft); border-color: var(--accent); }
main .btn, .dialog-actions .btn { display: block; width: 100%; text-align: center; white-space: normal; overflow-wrap: anywhere; }
#status { margin: 0 0 1.15rem; padding: .6rem .9rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font-size: .8rem; line-height: 1.7; }
#status.error { border-color: #dda7a7; color: #952e2e; background: #fff3f3; }
.notification-panel { display: grid; gap: .85rem; padding: 1.1rem 1.35rem; background: var(--accent-soft); border: 1px solid #ccdfef; border-radius: 12px; margin-bottom: 1.5rem; }
.notification-heading, .panel-heading { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.notification-heading > div { flex: 1; min-width: 0; }
.panel-icon { display: block; width: 24px; height: 24px; flex: 0 0 24px; color: var(--accent-dark); }
.notification-panel h2 { font-size: 1rem; margin: 0 0 .12rem; }
.notification-panel p { margin: 0; font-size: .82rem; color: var(--muted); }
.notification-panel details { font-size: .8rem; }
.notification-panel details[open] p { margin-top: .5rem; }
summary { cursor: pointer; color: var(--accent-dark); line-height: 1.65; }
summary:focus-visible { outline-offset: 5px; }
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
.watch-layout section { padding: 0; border: 0; min-width: 0; }
.watch-layout .add-panel { padding: 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.panel-heading { margin-bottom: 1.15rem; }
.panel-heading h2 { margin: 0; }
label, legend { display: block; font-weight: 600; font-size: .83rem; }
input[type=url], input:not([type]), select { display: block; width: 100%; min-height: 48px; border: 1px solid var(--line-strong); padding: .65rem .85rem; border-radius: 9px; background: #fff; color: var(--ink); margin: .45rem 0 .8rem; min-width: 0; }
input::placeholder { color: #768596; opacity: 1; }
input[type=url] { direction: ltr; font-size: .94rem; }
select { text-overflow: ellipsis; }
form .btn { margin: .2rem 0 0; }
.fine { font-size: .8rem; line-height: 1.8; }
.source-note { margin: .85rem 0 0; padding-top: .85rem; border-top: 1px solid var(--line); }
#watch-form { border-top: 1px solid var(--line); padding-top: 1.1rem; margin-top: 1.1rem; }
#country { margin: -.25rem 0 .9rem; }
fieldset { border: 0; padding: 0; margin: 1rem 0; min-width: 0; }
.store-option { display: grid; grid-template-columns: 1.2rem minmax(0, 1fr); gap: .65rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.store-option input { margin: .25rem 0 0; width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.store-option small { display: block; color: var(--muted); }
.list-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.list-heading h2 { margin: 0; }
#watch-count { padding: .15rem .65rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: .78rem; color: var(--muted); white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.6rem 1.25rem; min-height: 185px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.empty-icon { display: block; width: 80px; height: 64px; color: #7295b4; flex: none; }
.empty-state p { margin: .6rem 0 0; font-size: .9rem; color: var(--muted); }
.watch { padding: 1.3rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow-wrap: anywhere; margin-bottom: .85rem; }
.watch h3 { margin: 0 0 .5rem; font-size: 1.05rem; line-height: 1.55; }
.watch .fine { margin: .3rem 0; }
.watch-actions { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }
.watch-actions .btn { font-size: .84rem; }
.watch:target { outline: 2px solid var(--accent); outline-offset: 3px; }
.stock-results { padding-inline-start: 1.1rem; margin: .5rem 0; font-size: .87rem; }
.stock-results:empty { display: none; }
.availability-note { margin: 1.1rem 0; }
.data-settings { border-top: 1px solid var(--line); padding: 1rem 0; font-size: .8rem; }
.data-settings p { margin: .75rem 0; color: var(--muted); }
#erase { border-color: #dda7a7; color: #952e2e; }
.watch-layout p, .watch-layout label, .watch-layout h2, .watch-layout h3 { width: 100%; }
.watch-layout h2, .notification-panel h2, .data-settings { overflow-wrap: anywhere; }
dialog { border: 1px solid var(--line); border-radius: 14px; max-width: 30rem; width: calc(100% - 2rem); padding: 1.5rem; color: var(--ink); }
dialog::backdrop { background: rgba(23, 43, 66, .35); }
.dialog-actions { display: flex; flex-direction: column; gap: .65rem; margin-top: 1.25rem; }
#confirm { background: #952e2e; border-color: #952e2e; }
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 1.3rem 0 .4rem; margin-top: 1rem; font-size: .8rem; }
.app-links { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .35rem; }
.app-links > * { width: 100%; }
.app-links .fine { font-weight: 600; }
.site-footer .app-release-note { margin-bottom: 1rem; }
.site-footer #privacy { display: block; margin-bottom: .3rem; }
.site-footer .btn { margin: .75rem 0; }
.watch-app > .analytics-settings { width: calc(100% - 3rem); max-width: 61rem; padding: .5rem 0; margin: .4rem auto 1.3rem; border: 0; background: transparent; color: var(--muted); font-size: .8rem; text-align: start; text-decoration: underline; text-underline-offset: .2em; min-height: 44px; }
.analytics-consent { font-family: var(--font); border-color: var(--line-strong); }
.analytics-consent p { margin: 0 0 .6rem; }
.analytics-consent button { min-height: 44px; }
.ad-placement { margin: 2rem 0; padding: 1rem 0; border-block: 1px solid var(--line); min-width: 0; }
.ad-label { margin: 0 0 .7rem; color: var(--muted); font-size: .7rem; text-align: center; }
.watcher-ad-unit { display: block; width: 100%; height: 100px; }
.ad-preview { display: grid; place-items: center; min-height: 100px; background: var(--accent-soft); color: var(--muted); font-size: .85rem; border: 1px dashed var(--line-strong); }
.admax-frame { display: block; width: 300px; height: 250px; margin-inline: auto; border: 0; }
.admax-preview { width: 300px; max-width: 100%; height: 250px; margin-inline: auto; }
.admax-consent { margin: 1rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: .8rem; }
.admax-consent p { margin: 0; }
.admax-consent a { display: inline-block; margin-top: .8rem; margin-inline-end: 1rem; }
.admax-consent .dialog-actions { margin-top: .8rem; }
@media (max-width: 47rem) {
  .wrap { padding-inline: 1rem; }
  .site-header .wrap { gap: .6rem; }
  .site-nav { max-width: none; }
  .language-picker select { min-height: 40px; }
  .watch-heading { padding-top: 1.6rem; }
  .watch-heading p { font-size: .85rem; }
  .notification-panel { padding: 1rem; margin-bottom: 1rem; }
  .watch-layout { gap: 1.4rem; }
  .watch-layout .add-panel, .watch { padding: 1.1rem; }
  .empty-state { min-height: 170px; padding: 1.2rem 1rem; }
  input[type=url], input:not([type]), select { font-size: 16px; }
  .watch-app > .analytics-settings { width: calc(100% - 2rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

.watch-guide { margin-top: 2rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.watch-guide h2 { margin: 0 0 1rem; font-size: 1.05rem; }
.watch-guide p { color: var(--muted); font-size: .85rem; line-height: 1.9; margin: .8rem 0 0; }
