/* Deficiency of the Week — standalone mobile-first page (Views/DOTW, layout _DOTW.cshtml).
   Ported from wwwroot/prototype/DOTW/1/dotw.html. */

:root {
    --navy: #182442;
    --green: #5dc19b;
    --green-d: #1d9e75;
    --green-ink: #0d3d2c;
    --page: #eef1f4;
    --card: #ffffff;
    --line: #e4e8ee;
    --ink: #182442;
    --muted: #5f6b7a;
    --well: #e7ebf0;
    --alert: #b0511a;
    --alert-bg: #faece7;
}

.dotw-body * { box-sizing: border-box; margin: 0; padding: 0; }

.dotw-body {
    font-family: 'Figtree', system-ui, sans-serif;
    background: var(--page);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    line-height: 1.4;
}

.app { max-width: 460px; margin: 0 auto; background: var(--page); min-height: 100vh; padding-bottom: 88px; }

/* ---------- Sticky header ---------- */
.stick { position: sticky; top: 0; z-index: 20; }

.brandbar {
    background: #fff;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--line);
}
.brandbar .brandlink { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brandbar .bwm { font-weight: 700; font-size: 16px; letter-spacing: -.3px; line-height: 1; }
.brandbar .bwm-inspect { color: var(--navy); }
.brandbar .bwm-sync { color: var(--green); }

/* Hamburger + dropdown menu (right side of the brand bar) */
.brandbar { position: relative; }
.hamburger {
    margin-left: auto;
    width: 36px;
    height: 32px;
    border: none;
    background: none;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}
.hamburger:hover { background: var(--page); }
.hamburger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .15s, opacity .15s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 10px;
    min-width: 210px;
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 10px 28px rgba(24, 36, 66, .16);
    z-index: 30;
}
.menu-item {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}
.menu-item:hover { background: var(--page); color: var(--ink); }

.titleband { background: var(--navy); padding: 14px 16px 15px; text-align: center; }
.titleband .rule { width: 38px; height: 3px; background: var(--green); border-radius: 2px; margin: 0 auto 9px; }
.titleband h1 { color: #fff; font-size: 22px; font-weight: 700; letter-spacing: -.3px; white-space: nowrap; }
.titleband h1 .g { color: var(--green); }

.subbar {
    background: var(--green);
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.subbar .bt { font-size: 12.5px; font-weight: 600; color: var(--green-ink); line-height: 1.25; }
.subbar .bb {
    margin-left: auto;
    background: var(--navy);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 9px 15px;
    border-radius: 9px;
    text-decoration: none;
    white-space: nowrap;
}
.subbar .bb:hover { color: #fff; }
.subbar .bb:active { transform: scale(.98); }

/* ---------- Feed ---------- */
.wrap { padding: 16px; }

.sec { display: flex; align-items: center; margin: 0 2px 12px; }
.sec h2 { font-size: 14px; font-weight: 700; }
.sec .pill {
    margin-left: auto;
    font-size: 9px;
    font-weight: 700;
    color: var(--alert);
    background: var(--alert-bg);
    padding: 4px 9px;
    border-radius: 20px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.card {
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
    cursor: pointer;
    transition: border-color .12s, box-shadow .12s;
}
.card:hover { border-color: #c7ced8; }
.card.selected { border-color: var(--green); box-shadow: 0 0 0 3px rgba(93,193,155,.18); }

.well {
    aspect-ratio: 4 / 3;
    background: var(--well);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #93a0b0;
    position: relative;
}
.well svg { width: 30px; height: 30px; opacity: .7; }
.well span { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; margin-top: 6px; font-weight: 500; }

.yourvote {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--green);
    color: var(--green-ink);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 20px;
    display: none;
}
.card.your .yourvote { display: block; }

.meta { padding: 11px 13px; }
.def { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.crow { display: flex; align-items: center; margin-top: 9px; gap: 10px; }
.cred { font-size: 11px; color: var(--muted); line-height: 1.25; }
.cred b { color: var(--ink); font-weight: 600; }
.right { margin-left: auto; display: flex; align-items: center; gap: 11px; }

.radio {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #cdd4dd;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .12s;
}
.radio svg { width: 14px; height: 14px; stroke: #fff; opacity: 0; }
.card.selected .radio, .card.your .radio { background: var(--green); border-color: var(--green); }
.card.selected .radio svg, .card.your .radio svg { opacity: 1; }

/* After a vote the feed stays live so the vote can be switched: the chosen card is
   marked, the others stay tappable, and a newly selected card shows a navy switch ring. */
.feed.voted .card.your { cursor: default; }
.feed.voted .card.selected { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(24,36,66,.16); }
.feed.voted .card.selected .radio { background: var(--navy); border-color: var(--navy); }
.feed.voted .card.selected .radio svg { opacity: 1; }

/* ---------- Footer ---------- */
.foot { text-align: center; padding: 8px 16px 24px; color: var(--muted); font-size: 11px; }
.foot a { color: var(--green-d); text-decoration: none; font-weight: 600; }
.foot .sig { margin-top: 8px; opacity: .75; }

/* ---------- Fixed action bar ---------- */
.actionbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.actionbar .inner { max-width: 460px; margin: 0 auto; }

.actbtn {
    width: 100%;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 11px;
    padding: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.actbtn svg { width: 18px; height: 18px; }
.actbtn.idle { background: #eef1f4; color: #98a2b0; cursor: default; }
.actbtn.ready { background: var(--green); color: var(--green-ink); }
.actbtn.ready:active { transform: scale(.99); }
.actbtn.done { background: var(--navy); color: #fff; cursor: default; }

@media (max-width: 380px) {
    .titleband h1 { font-size: 19px; }
}

/* ==========================================================================
   Submit page (Views/DOTW/Submit.cshtml). Ported from prototype/DOTW/1/submit.html.
   ========================================================================== */
:root {
    --line-input: #d7dde4;
    --danger: #b0261b;
}

.top {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--navy);
    padding: 13px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.back { color: #fff; text-decoration: none; font-size: 22px; line-height: 1; padding: 2px 8px 4px; border-radius: 8px; }
.back:hover { color: #fff; }
.back:active { background: rgba(255,255,255,.1); }
.top .ttl { font-weight: 700; font-size: 16px; color: #fff; }
.top .ttl b { color: var(--green); font-weight: 700; }

.submit-wrap { padding: 18px 16px 40px; }
.lead { font-size: 13px; color: var(--muted); margin-bottom: 20px; line-height: 1.5; }
.lead + .lead { margin-top: -8px; }
.lead b { color: var(--ink); font-weight: 600; }

.field { margin-bottom: 16px; }
.dotw-form label { display: block; font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.dotw-form label .opt { color: var(--muted); font-weight: 400; }

.dotw-form input[type=text],
.dotw-form input[type=tel],
.dotw-form input[type=email],
.dotw-form textarea {
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    border: 1px solid var(--line-input);
    border-radius: 9px;
    padding: 11px 12px;
    background: #fff;
    outline: none;
}
.dotw-form textarea { resize: vertical; min-height: 64px; }
.dotw-form input[type=text]:focus,
.dotw-form input[type=tel]:focus,
.dotw-form input[type=email]:focus,
.dotw-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(93,193,155,.2); }

.drop {
    border: 1.5px dashed var(--green);
    border-radius: 12px;
    background: #f6fbf9;
    padding: 22px 14px;
    text-align: center;
    color: var(--green-d);
    cursor: pointer;
}
.drop svg { width: 28px; height: 28px; }
.drop .dt { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 8px; }
.drop .ds { font-size: 11px; color: var(--muted); margin-top: 3px; letter-spacing: .4px; }
.drop.has-file { border-style: solid; background: #eaf6f0; }
.drop.has-file .dt { color: var(--green-ink); }

.dotw-form .chk { display: flex; gap: 11px; align-items: flex-start; margin: 18px 0 8px; cursor: pointer; }
.chk input { position: absolute; opacity: 0; width: 0; height: 0; }
.box {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1.5px solid var(--line-input);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    transition: all .12s;
}
.box svg { width: 14px; height: 14px; stroke: #fff; opacity: 0; }
.chk input:checked + .box { background: var(--green); border-color: var(--green); }
.chk input:checked + .box svg { opacity: 1; }
.chk p { font-size: 12px; color: var(--muted); line-height: 1.4; }

.err { color: var(--danger); font-size: 12px; margin-top: 6px; display: none; }
.err-consent { margin-top: 0; }

.submit {
    width: 100%;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: var(--green-ink);
    background: var(--green);
    border: none;
    border-radius: 11px;
    padding: 14px;
    cursor: pointer;
    margin-top: 8px;
}
.submit:active { transform: scale(.99); }

.assure { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 11px; margin-top: 12px; }
.assure svg { width: 14px; height: 14px; stroke: var(--green-d); }

.done { display: none; text-align: center; padding: 40px 20px; }
.done .ring { width: 64px; height: 64px; border-radius: 50%; background: #eaf6f0; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.done .ring svg { width: 32px; height: 32px; stroke: var(--green-d); }
.done h2 { font-size: 20px; margin-bottom: 8px; }
.done p { font-size: 13px; color: var(--muted); line-height: 1.5; max-width: 300px; margin: 0 auto 22px; }
.done a { display: inline-block; color: var(--green-d); font-weight: 600; text-decoration: none; font-size: 14px; }

/* ==========================================================================
   Admin sign-in (Views/DOTW/Login.cshtml) and admin landing (Admin.cshtml).
   Same two-step OTP flow as Admin/Views/Home/Index.cshtml, in the DOTW palette.
   ========================================================================== */
.top .signout { margin-left: auto; color: #fff; font-size: 12.5px; font-weight: 600; text-decoration: none; opacity: .85; }
.top .signout:hover { color: #fff; opacity: 1; }

.login-card {
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: 14px;
    padding: 24px 18px 20px;
}
.login-header { text-align: center; margin-bottom: 22px; }
.login-header svg { display: block; margin: 0 auto 10px; }
.login-title { font-size: 18px; font-weight: 700; letter-spacing: -.3px; color: var(--ink); }
.login-title .g { color: var(--green-d); }
.login-subtitle { font-size: 12px; color: var(--muted); margin-top: 4px; }

.dotw-form .chk.remember { margin: 4px 0 16px; }

.otp-instructions { font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 8px; line-height: 1.5; }
.otp-instructions strong { color: var(--ink); font-weight: 600; }
.otp-expiry { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.otp-expiry.expiring { color: var(--danger); }
.dotw-form input.otp-input { text-align: center; font-size: 24px; font-weight: 700; letter-spacing: 8px; padding: 12px; }

.otp-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--danger);
    font-size: 12px;
    padding: 10px 12px;
    border-radius: 9px;
    margin-bottom: 12px;
    text-align: center;
}

.otp-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.otp-action-link { color: var(--muted); font-size: 12px; font-weight: 600; text-decoration: none; }
.otp-action-link:hover { color: var(--green-d); }
.otp-action-divider { color: var(--line-input); font-size: 12px; }

.submit:disabled { opacity: .6; cursor: default; }

/* Toastr in the DOTW palette. */
#toast-container > .toast-success { background-color: var(--green-d); }
#toast-container > .toast-error { background-color: var(--danger); }
#toast-container > .toast-warning { background-color: var(--alert); }

/* ==========================================================================
   Loading overlay (DOTWBase.ShowLoading / HideLoading) and the thank-you page.
   ========================================================================== */
.dotw-loading {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(24, 36, 66, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.dotw-loading-box {
    background: var(--card);
    border-radius: 14px;
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    box-shadow: 0 12px 32px rgba(24, 36, 66, .25);
}
.dotw-spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 4px solid var(--line);
    border-top-color: var(--green-d);
    animation: dotw-spin .8s linear infinite;
}
.dotw-loading-text { font-size: 13px; font-weight: 600; color: var(--ink); text-align: center; }
@keyframes dotw-spin { to { transform: rotate(360deg); } }

/* Thank-you card (Views/DOTW/ThankYou.cshtml). */
.thanks-card {
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(24, 36, 66, .06);
}
.thanks-accent { height: 6px; background: linear-gradient(90deg, var(--green-d), var(--green)); }
.thanks-body { text-align: center; padding: 26px 20px 18px; }
.thanks-body .ring { width: 64px; height: 64px; border-radius: 50%; background: #eaf6f0; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.thanks-body .ring svg { width: 32px; height: 32px; stroke: var(--green-d); }
.thanks-body h2 { font-size: 20px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 8px; }
.thanks-week {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--green-ink);
    background: var(--green);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.thanks-body p { font-size: 13px; color: var(--muted); line-height: 1.5; max-width: 300px; margin: 0 auto; }

.thanks-divider { display: flex; align-items: center; gap: 10px; padding: 4px 18px 12px; }
.thanks-divider::before, .thanks-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.thanks-divider span { font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }

.quicklinks { display: flex; flex-direction: column; gap: 10px; padding: 0 14px 16px; }
.ql {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--page);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 12px 12px 12px 14px;
    text-decoration: none;
    color: var(--ink);
    transition: border-color .12s, box-shadow .12s;
}
.ql:hover { border-color: var(--green); box-shadow: 0 0 0 3px rgba(93,193,155,.18); color: var(--ink); }
.ql:active { transform: scale(.99); }
.ql.primary { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.ql.primary:hover { color: var(--green-ink); }
.ql-icon { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--green-d); }
.ql.primary .ql-icon { background: rgba(255,255,255,.55); color: var(--green-ink); }
.ql-icon svg { width: 20px; height: 20px; }
.ql-text { flex: 1; min-width: 0; }
.ql-title { display: block; font-size: 14px; font-weight: 700; }
.ql-sub { display: block; font-size: 11.5px; margin-top: 2px; opacity: .8; }
.ql-chev { flex: 0 0 auto; font-size: 22px; line-height: 1; opacity: .5; }
.ql-title { display: block; font-size: 14px; font-weight: 700; }
.ql-sub { display: block; font-size: 11.5px; margin-top: 2px; opacity: .8; }

/* ==========================================================================
   Admin review page (Views/DOTW/Admin.cshtml). Full width, desktop first.
   ========================================================================== */
.app-wide { max-width: none; padding-bottom: 32px; }

.admin-top { padding: 12px 22px; gap: 14px; }
.admin-top .ttl { font-size: 17px; }
.admin-who { margin-left: 18px; font-size: 12.5px; color: rgba(255,255,255,.75); }
.admin-who b { color: #fff; font-weight: 600; }
.admin-top .signout { margin-left: auto; }

.admin-wrap { padding: 18px 22px 40px; }

/* Week select */
.weeklabel { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.weekselect {
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--line-input);
    border-radius: 9px;
    padding: 7px 34px 7px 12px;
    cursor: pointer;
    outline: none;
    margin-right: 6px;
}
.weekselect:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(93,193,155,.2); }

/* Filter bar */
.filterbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter {
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all .12s;
}
.filter:hover { border-color: #c7ced8; color: var(--ink); }
.filter.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filterbar .count { margin-left: auto; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.sortbtn {
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all .12s;
    margin-left: 6px;
}
.sortbtn::before { content: '93'; margin-right: 6px; font-weight: 700; }
.sortbtn:hover { border-color: var(--green); color: var(--green-d); }
.sortbtn.active { background: var(--green); border-color: var(--green); color: var(--green-ink); }

.rwell .votes {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #fff;
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(24, 36, 66, .18);
}
.rwell .votes b { font-size: 13px; font-weight: 700; }

/* Card grid */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}
.rcard {
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .12s, box-shadow .12s, opacity .12s;
}
.rcard:hover { border-color: #c7ced8; }
.rcard.approved { border-color: var(--green); box-shadow: 0 0 0 3px rgba(93,193,155,.18); }
.rcard.rejected { border-color: #e6b8b3; opacity: .78; }
.rcard.busy { opacity: .6; pointer-events: none; }

.rwell { aspect-ratio: 4 / 3; background: var(--well); position: relative; cursor: pointer; overflow: hidden; }
.rphoto { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #93a0b0; }
.rphoto svg { width: 30px; height: 30px; opacity: .7; }
.rphoto span { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; margin-top: 6px; font-weight: 500; }
.rphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rwell:hover .rphoto img { filter: brightness(.92); }

.rwell .badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: none;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 20px;
}
.rwell .badge svg { width: 12px; height: 12px; stroke: currentColor; }
.approved-badge { background: var(--green); color: var(--green-ink); }
.rejected-badge { background: var(--danger); color: #fff; }
.rcard.approved .approved-badge { display: inline-flex; }
.rcard.rejected .rejected-badge { display: inline-flex; }
.rwell .week {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(24,36,66,.75);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 20px;
}

.rmeta { padding: 12px 14px 14px; }
.rdef { font-size: 14px; font-weight: 600; line-height: 1.3; min-height: 36px; }
.rdef i { color: var(--muted); font-weight: 400; }
.rcred { font-size: 12px; color: var(--muted); margin-top: 8px; }
.rcred b { color: var(--ink); font-weight: 600; }
.rcontact { font-size: 12px; color: var(--muted); margin-top: 3px; word-break: break-word; }
.rcontact a { color: var(--green-d); text-decoration: none; font-weight: 600; }
.rstamp { font-size: 11px; color: var(--muted); margin-top: 6px; display: flex; flex-direction: column; gap: 2px; }
.rstamp .rv { opacity: .85; }

.ractions { display: flex; gap: 8px; margin-top: 12px; }
.rbtn {
    flex: 1;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    border-radius: 9px;
    padding: 9px 10px;
    cursor: pointer;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--ink);
    transition: all .12s;
}
.rbtn.approve:hover { border-color: var(--green); color: var(--green-d); }
.rcard.approved .rbtn.approve { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.rbtn.reject:hover { border-color: var(--danger); color: var(--danger); }
.rcard.rejected .rbtn.reject { background: var(--danger); border-color: var(--danger); color: #fff; }

/* Empty state */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-title { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.empty-sub { font-size: 13px; }

@media (max-width: 640px) {
    .admin-who { display: none; }
    .admin-wrap { padding: 14px 14px 32px; }
}

/* ==========================================================================
   Voting page: live photos, empty state, vote modal.
   ========================================================================== */
.well-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.feed-empty { text-align: center; padding: 36px 18px; background: var(--card); border: 1.5px dashed var(--line-input); border-radius: 14px; margin-bottom: 14px; }
.feed-empty-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.feed-empty-sub { font-size: 12px; color: var(--muted); line-height: 1.5; }


/* Vote confirmation - Bootstrap modal shell, DOTW skin. */
.modal-backdrop.show { opacity: .55; background: var(--navy); }
/* The page-wide margin reset (.dotw-body *) removes Bootstrap's auto margins, which is
   what centers the dialog. Restore them and let the flex box span the full viewport. */
.dotw-body .modal-dialog {
    margin: 0 auto;
    width: calc(100% - 32px);
    max-width: 420px;
}
.dotw-body .modal-dialog-centered { min-height: 100%; }
.vote-modal { border: none; border-radius: 14px; overflow: hidden; font-family: 'Figtree', system-ui, sans-serif; }
.vote-modal-head { background: var(--navy); color: #fff; padding: 16px 18px 14px; }
.vote-modal-title { font-size: 16px; font-weight: 700; }
.vote-modal-sub { font-size: 12.5px; color: rgba(255,255,255,.75); margin-top: 3px; }
.vote-modal-sub b { color: var(--green); font-weight: 600; }
.vote-modal-body { padding: 16px 18px 4px; }
.vote-modal-body p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.vote-modal-actions { display: flex; gap: 8px; padding: 12px 18px 18px; }
.vbtn {
    flex: 1;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--ink);
}
.vbtn.confirm { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.vbtn:disabled { opacity: .6; cursor: default; }

/* Admin: click-to-edit caption */
.rdef.js-caption { cursor: text; display: flex; align-items: flex-start; gap: 6px; border-radius: 6px; margin: -2px -4px; padding: 2px 4px; }
.rdef.js-caption:hover { background: var(--page); }
.rdef-text { flex: 1; }
.rdef-pen { color: var(--muted); font-size: 12px; opacity: 0; transition: opacity .12s; }
.rdef.js-caption:hover .rdef-pen { opacity: .8; }

.caption-edit { margin-bottom: 4px; }
.caption-input {
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    border: 1.5px solid var(--green);
    border-radius: 9px;
    padding: 8px 10px;
    resize: vertical;
    outline: none;
    box-shadow: 0 0 0 3px rgba(93,193,155,.2);
}
.caption-edit-row { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.caption-count { font-size: 11px; color: var(--muted); margin-right: auto; }
.cbtn {
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--ink);
}
.cbtn.save { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.cbtn:disabled { opacity: .6; cursor: default; }

/* Submit: photo preview inside the drop zone */
.drop { position: relative; overflow: hidden; }
.drop-preview { display: block; width: 100%; max-height: 320px; object-fit: contain; background: #0f1a33; }
.drop-prompt { position: relative; }
.drop.has-preview { padding: 0; border-style: solid; }
.drop.has-preview .drop-prompt {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 12px 8px;
    background: linear-gradient(180deg, rgba(24,36,66,0), rgba(24,36,66,.78));
    text-align: left;
}
.drop.has-preview .drop-prompt svg { display: none; }
.drop.has-preview .dt { color: #fff; margin-top: 0; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop.has-preview .ds { color: rgba(255,255,255,.8); }

/* Submit: photo tools under the drop zone */
.photo-tools { display: flex; gap: 8px; margin-top: 8px; }
.tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--line-input);
    border-radius: 9px;
    padding: 7px 12px;
    cursor: pointer;
}
.tool svg { width: 15px; height: 15px; }
.tool:hover { border-color: var(--green); color: var(--green-d); }
.tool:disabled { opacity: .6; cursor: default; }

/* Submit button is inert until a photo is attached */
.submit.waiting { background: #eef1f4; color: #98a2b0; border: 1.5px dashed var(--line-input); cursor: default; }

/* ==========================================================================
   Official rules (Views/DOTW/Rules.cshtml)
   ========================================================================== */
.rules-card {
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
}
.rules-notice {
    background: var(--navy);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    line-height: 1.5;
    padding: 12px 16px;
    border-bottom: 3px solid var(--green);
}
.rules-body { padding: 16px 16px 18px; }
.rules-updated { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.rules-body h2 { font-size: 14px; font-weight: 700; color: var(--ink); margin: 18px 0 6px; }
.rules-body h2:first-of-type { margin-top: 4px; }
.rules-body p { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 8px; }
.rules-body ul { margin: 0 0 8px 18px; padding: 0; }
.rules-body li { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 4px; }
.rules-body a { color: var(--green-d); font-weight: 600; text-decoration: none; }

/* Unresolved placeholders from the source document - obvious until replaced. */
.rules-body .todo { background: #fff3c4; color: #7a5200; border-radius: 4px; padding: 0 4px; font-weight: 600; }

.rules-links { display: flex; flex-direction: column; gap: 10px; }
.rules-links .ql-text { flex: 1; }
