.refsw-watch-page {
    --watch-ink: #10334a;
    --watch-accent: #15574e;
    max-width: 54rem;
    margin: clamp(1rem, 5vw, 4rem) auto;
    padding: 0 1rem 3rem;
}
.refsw-watch-page header {
    border-radius: 1.25rem;
    padding: clamp(1.25rem, 5vw, 3rem);
    background: #10334a;
    color: #fff;
}
.refsw-watch-page header h1 {
    color: inherit;
    font-size: clamp(1.85rem, 5vw, 3.2rem);
    line-height: 1.1;
    margin: 0 0 .75rem;
}
.refsw-watch-page header p { max-width: 60ch; margin: 0; }
.refsw-watch-page form { margin: 1.5rem 0; }
.refsw-watch-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.refsw-watch-fields label { display: grid; align-content: start; gap: .3rem; min-width: 0; font-weight: 650; }
.refsw-watch-fields input, .refsw-watch-fields select {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    border: 1px solid #778f9a;
    border-radius: .55rem;
    padding: .55rem;
    color: #10334a;
    background: #fff;
    font: inherit;
}
.refsw-watch-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.refsw-watch-page button,
.refsw-watch-button,
a.refsw-watch-inline {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .5rem .85rem;
    border: 1px solid #15574e;
    border-radius: .55rem;
    font: inherit;
    font-weight: 650;
    white-space: normal;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.refsw-watch-page button { background: #fff; color: #15574e; }
.refsw-watch-page button.refsw-watch-button,
a.refsw-watch-button, a.refsw-watch-button:visited { background: #15574e; color: #fff; }
a.refsw-watch-inline, a.refsw-watch-inline:visited { background: #fff; color: #15574e; }
.refsw-watch-page :focus-visible, a.refsw-watch-button:focus-visible, a.refsw-watch-inline:focus-visible {
    outline: 3px solid #ac5411;
    outline-offset: 3px;
}
.refsw-watch-callout {
    background: #eff6f5;
    color: #10334a;
    border: 1px solid #c1d9d6;
    margin: 1.25rem 0;
    padding: 1.25rem;
    border-radius: .85rem;
}
.refsw-watch-callout p { margin: .25rem 0 .65rem; }
.refsw-watch-page [hidden] { display: none !important; }
@media (max-width: 580px) {
    .refsw-watch-fields { grid-template-columns: minmax(0, 1fr); }
}

#refsw-watch-summary {
    margin: 1.25rem 0 .75rem;
    padding: clamp(1rem, 4vw, 1.6rem);
    border: 1px solid #8abbb0;
    border-inline-start: .3rem solid #17654f;
    border-radius: .85rem;
    background: #eaf6f0;
    color: #103c32;
}
#refsw-watch-summary[data-state="paused"],
#refsw-watch-summary[data-state="deleted"] {
    background: #f0f4f6;
    border-color: #869da8;
    color: #10334a;
}
#refsw-watch-summary h2 {
    color: inherit;
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    line-height: 1.2;
    margin: 0 0 .5rem;
}
#refsw-watch-summary p { margin: .25rem 0 0; }
#refsw-watch-summary [data-watch-details] { font-weight: 700; }
#refsw-watch-status:empty { display: none; }

#refsw-watch-registration:not([data-kind]),
#refsw-watch-registration p:empty { display: none; }
#refsw-watch-registration {
    margin-top: .85rem;
    padding: .9rem 1rem;
    border: 1px solid #8abbb0;
    border-inline-start: .25rem solid #17654f;
    border-radius: .65rem;
    background: #eaf6f0;
    color: #103c32;
    overflow-wrap: anywhere;
    scroll-margin-block: 5rem 1rem;
}
#refsw-watch-registration[data-kind="error"] {
    border-color: #9a4c3c;
    background: #fff3ef;
    color: #661e11;
}
#refsw-watch-registration strong { display: block; }
#refsw-watch-registration p { margin: .3rem 0 0; line-height: 1.5; }

aside.refsw-watch-callout {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .85rem 1.5rem;
    width: 100%;
    max-width: 45rem;
    margin: clamp(1.5rem, 4vw, 2.75rem) auto;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid #c6dcd6;
    border-inline-start: 4px solid #15574e;
    border-radius: 14px;
    background: #f4f8f6;
    color: #10334a;
}
.refsw-watch-callout-copy strong {
    display: block;
    font-size: 1.25rem;
    line-height: 1.25;
}
.refsw-watch-callout-copy p {
    margin: .35rem 0 0;
    color: #345460;
    font-size: .95rem;
    line-height: 1.5;
}
aside.refsw-watch-callout a.refsw-watch-button:any-link {
    box-sizing: border-box;
    justify-self: start;
    justify-content: center;
    padding: .55rem .95rem;
    color: #fff !important;
    background: #15574e;
    text-decoration: none !important;
    line-height: 1.25;
    font-size: .95rem;
    font-weight: 700;
}
aside.refsw-watch-callout a.refsw-watch-button:any-link:hover {
    background: #103f38;
}
@media (max-width: 540px) {
    aside.refsw-watch-callout { grid-template-columns: minmax(0, 1fr); }
}

.refsw-watch-pair {
    --refsw-pair-padding: clamp(20px, 3vw, 30px);
    --refsw-pair-heading: clamp(23px, 3vw, 34px);
    --refsw-pair-surface: #eaf3f0;
    --refsw-pair-title-color: #0a0a0a;
    --refsw-pair-text-color: #172c3d;
    --refsw-pair-heading-gap: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 22px);
    margin-top: 32px;
}
.refsw-watch-pair--matcha {
    --refsw-pair-heading: clamp(21px, 3vw, 28px);
    --refsw-pair-surface: #f5f8fc;
    --refsw-pair-title-color: #142033;
    --refsw-pair-text-color: #465b73;
    --refsw-pair-heading-gap: 6px;
    max-width: 1120px;
    margin: clamp(20px, 4vw, 36px) auto;
}
.refsw-watch-pair > section,
.refsw-watch-pair > aside.refsw-watch-paired {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0 !important;
    padding: var(--refsw-pair-padding) !important;
    border-radius: 16px !important;
}
.refsw-watch-pair > aside.refsw-watch-paired {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    background: var(--refsw-pair-surface);
    border: 0;
    box-shadow: none;
}
.refsw-watch-pair--matcha > aside.refsw-watch-paired {
    border: 1px solid #d5dfeb;
}
.rs-arch .refsw-watch-pair--home > section.rs-arch-method,
.rs-arch .refsw-watch-pair--home > aside.refsw-watch-paired {
    padding: clamp(20px, 4vw, 44px) clamp(20px, 4vw, 48px) !important;
}
.refsw-watch-pair .refsw-watch-paired h2 {
    margin: 0 0 var(--refsw-pair-heading-gap);
    font-size: var(--refsw-pair-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--refsw-pair-title-color);
}
.refsw-watch-pair > aside.refsw-watch-paired .refsw-watch-callout-copy p {
    margin: 0;
    max-width: 60ch;
    color: var(--refsw-pair-text-color);
    font: 400 14px/1.6 Inter, system-ui, sans-serif !important;
}
.refsw-watch-pair .refsw-watch-paired a.refsw-watch-button:any-link {
    min-height: 44px;
    font-size: 14px;
}
@media (max-width: 700px) {
    .refsw-watch-pair { grid-template-columns: minmax(0, 1fr); }
}

aside.refsw-watch-buycheck-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 16px;
    box-sizing: border-box;
    margin: 12px 0 0;
    padding: 4px 14px;
    background: #f5f8fc;
    border: 1px solid #d5dfeb;
    border-radius: 10px;
    color: #142033;
    font: 400 14px/1.5 Inter, system-ui, sans-serif;
}
aside.refsw-watch-buycheck-row a:any-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    color: #0a315a !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
aside.refsw-watch-buycheck-row a:focus-visible {
    outline: 2px solid #0a315a;
    outline-offset: 2px;
}
