:root {
            --brand: #00a7c4;
            --brand-dark: #007e99;
            --brand-deep: #005f73;
            --brand-soft: #dff7fb;
            --surface: #ffffff;
            --surface-muted: #f3fbfc;
            --text: #073b4c;
            --muted: #62818a;
            --ready: #12a878;
            --ready-soft: #e3f8f0;
            --busy: #f47b64;
            --busy-soft: #fff0ec;
            --shadow: 0 18px 48px rgb(0 95 115 / 16%);
        }

        * { box-sizing: border-box; }

        html {
            min-height: 100%;
            background: #e9f9fc;
        }

        body {
            min-height: 100vh;
            margin: 0;
            color: var(--text);
            background:
                radial-gradient(circle at 8% 0%, rgb(93 224 245 / 65%), transparent 26rem),
                radial-gradient(circle at 100% 15%, rgb(255 255 255 / 55%), transparent 20rem),
                linear-gradient(180deg, #00a7c4 0, #65d6e7 19rem, #e9f9fc 32rem);
            font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            -webkit-font-smoothing: antialiased;
        }

        button {
            border: 0;
            font: inherit;
            -webkit-tap-highlight-color: transparent;
        }

        button:focus-visible {
            outline: 3px solid rgb(0 126 153 / 28%);
            outline-offset: 3px;
        }

        button:disabled {
            cursor: wait;
            opacity: .65;
        }

        main {
            width: min(100%, 520px);
            margin: 0 auto;
            padding: max(18px, env(safe-area-inset-top)) 14px max(30px, env(safe-area-inset-bottom));
        }

        [hidden] {
            display: none !important;
        }

        body.modal-open {
            overflow: hidden;
        }

        .about-open {
            position: absolute;
            z-index: 2;
            top: 16px;
            right: 8px;
            display: grid;
            width: 48px;
            height: 48px;
            place-items: center;
            border: 1px solid rgb(255 255 255 / 42%);
            border-radius: 16px;
            color: #fff;
            background: rgb(255 255 255 / 12%);
            box-shadow:
                inset 0 1px 0 rgb(255 255 255 / 18%),
                0 8px 20px rgb(0 95 115 / 16%);
            backdrop-filter: blur(12px);
            cursor: pointer;
            font-size: 18px;
            font-weight: 850;
            line-height: 1;
            transition:
                background-color .18s ease,
                border-color .18s ease,
                transform .18s ease;
        }

        .about-open:hover {
            border-color: rgb(255 255 255 / 58%);
            background: rgb(255 255 255 / 18%);
        }

        .about-open:active {
            background: rgb(0 95 115 / 22%);
            transform: scale(.96);
        }

        .about-open:focus-visible {
            outline: 3px solid rgb(255 255 255 / 38%);
            outline-offset: 3px;
        }

        .laundry-picker {
            width: min(100%, 520px);
            min-height: 100vh;
            margin: 0 auto;
            padding: max(28px, env(safe-area-inset-top)) 14px max(30px, env(safe-area-inset-bottom));
        }

        .picker-hero {
            position: relative;
            padding: 16px 8px 22px;
            color: #fff;
        }

        .picker-brand {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 13px;
            padding-right: 60px;
        }

        .picker-logo {
            width: 54px;
            height: 54px;
            border: 2px solid rgb(255 255 255 / 78%);
            border-radius: 17px;
            background: #fff;
            box-shadow: 0 8px 20px rgb(0 95 115 / 18%);
            object-fit: cover;
        }

        .picker-kicker {
            font-size: 14px;
            font-weight: 850;
            letter-spacing: -.02em;
        }

        .picker-title {
            margin: 0;
            font-size: clamp(28px, 9vw, 38px);
            line-height: 1.04;
            letter-spacing: -.05em;
        }

        .picker-subtitle {
            max-width: 390px;
            margin: 12px 0 0;
            color: rgb(255 255 255 / 82%);
            font-size: 13px;
            line-height: 1.5;
        }

        .picker-panel {
            padding: 16px;
            border: 1px solid rgb(255 255 255 / 58%);
            border-radius: 25px;
            background: rgb(255 255 255 / 94%);
            box-shadow: var(--shadow);
        }

        .picker-state {
            padding: 12px 4px;
            color: var(--muted);
            font-size: 12px;
            line-height: 1.5;
        }

        .laundry-list {
            display: grid;
            gap: 10px;
        }

        .laundry-option {
            display: grid;
            width: 100%;
            grid-template-columns: 1fr auto;
            gap: 10px;
            align-items: center;
            padding: 15px;
            border: 1px solid rgb(0 126 153 / 10%);
            border-radius: 18px;
            color: var(--text);
            background: var(--surface-muted);
            cursor: pointer;
            text-align: left;
            transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
        }

        .laundry-option:active {
            transform: scale(.985);
        }

        .laundry-option-university {
            margin-bottom: 3px;
            color: var(--brand-dark);
            font-size: 9px;
            font-weight: 850;
            letter-spacing: .11em;
            text-transform: uppercase;
        }

        .laundry-option-dorm {
            font-size: 14px;
            font-weight: 850;
            letter-spacing: -.02em;
        }

        .laundry-option-address {
            margin-top: 4px;
            color: var(--muted);
            font-size: 10px;
            line-height: 1.4;
        }

        .laundry-option-arrow {
            color: var(--brand);
            font-size: 24px;
            font-weight: 500;
        }

        .picker-retry {
            width: 100%;
            margin-top: 10px;
            padding: 12px;
            border-radius: 14px;
            color: #fff;
            background: linear-gradient(135deg, var(--brand-deep), var(--brand));
            cursor: pointer;
            font-size: 11px;
            font-weight: 850;
        }

        .hero {
            position: relative;
            overflow: hidden;
            padding: 8px 8px 12px;
            color: #fff;
        }

        .hero::before,
        .hero::after {
            position: absolute;
            border: 1px solid rgb(255 255 255 / 26%);
            border-radius: 50%;
            content: "";
            pointer-events: none;
        }

        .hero::before {
            top: 4px;
            right: -28px;
            width: 108px;
            height: 108px;
        }

        .hero::after {
            top: 63px;
            right: 73px;
            width: 20px;
            height: 20px;
            background: rgb(255 255 255 / 13%);
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 11px;
            margin-bottom: 10px;
            padding-right: 60px;
        }

        .brand-logo {
            width: 52px;
            height: 52px;
            flex: 0 0 52px;
            border: 2px solid rgb(255 255 255 / 80%);
            border-radius: 17px;
            background: #fff;
            box-shadow: 0 8px 20px rgb(0 95 115 / 18%);
            object-fit: cover;
        }

        .brand-copy {
            min-width: 0;
        }

        .eyebrow {
            margin-bottom: 2px;
            font-size: 10px;
            font-weight: 800;
            letter-spacing: .18em;
            opacity: .76;
            text-transform: uppercase;
        }

        h1 {
            margin: 0;
            font-size: clamp(24px, 7vw, 32px);
            line-height: 1.08;
            letter-spacing: -.04em;
        }

        .selected-laundry {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 13px;
            border: 1px solid rgb(255 255 255 / 34%);
            border-radius: 17px;
            background: rgb(255 255 255 / 16%);
            box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%);
        }

        .selected-laundry-copy {
            flex: 1;
            min-width: 0;
        }

        .selected-laundry-dorm {
            font-size: 12px;
            font-weight: 850;
            line-height: 1.25;
        }

        .selected-laundry-address {
            margin-top: 2px;
            overflow: hidden;
            color: rgb(255 255 255 / 76%);
            font-size: 9px;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .change-laundry {
            flex: 0 0 auto;
            padding: 7px 9px;
            border-radius: 10px;
            color: var(--brand-deep);
            background: rgb(255 255 255 / 88%);
            cursor: pointer;
            font-size: 8px;
            font-weight: 850;
        }

        .summary {
            position: relative;
            z-index: 1;
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 14px;
            align-items: center;
            padding: 18px;
            border: 1px solid rgb(255 255 255 / 52%);
            border-radius: 24px;
            background: rgb(255 255 255 / 92%);
            box-shadow: var(--shadow);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
        }

        .summary-label {
            margin-bottom: 3px;
            color: var(--muted);
            font-size: 11px;
            font-weight: 800;
            letter-spacing: .11em;
            text-transform: uppercase;
        }

        .summary-value {
            font-size: 20px;
            font-weight: 850;
            letter-spacing: -.04em;
        }

        .summary-value strong {
            color: var(--brand-dark);
            font-size: 27px;
        }

        .summary-ring {
            display: grid;
            width: 64px;
            height: 64px;
            place-items: center;
            border: 7px solid var(--brand-soft);
            border-top-color: var(--brand);
            border-right-color: var(--brand);
            border-radius: 50%;
            color: var(--brand-dark);
            font-size: 13px;
            font-weight: 850;
            transform: rotate(-35deg);
        }

        .summary-ring span { transform: rotate(35deg); }

        .load-bar {
            height: 6px;
            margin-top: 14px;
            overflow: hidden;
            border-radius: 999px;
            background: #dceff2;
        }

        .load-fill {
            width: 0;
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, var(--brand), #58d8ec);
            transition: width .45s ease;
        }

        .load-text {
            min-height: 18px;
            margin-top: 7px;
            color: var(--muted);
            font-size: 11px;
        }

        .global-notify {
            display: flex;
            width: 100%;
            align-items: center;
            gap: 12px;
            margin: 14px 0 22px;
            padding: 15px 16px;
            border-radius: 18px;
            color: #fff;
            background: linear-gradient(135deg, var(--brand-deep), var(--brand));
            box-shadow: 0 13px 28px rgb(0 126 153 / 24%);
            cursor: pointer;
            text-align: left;
            transition: transform .2s ease, box-shadow .2s ease;
        }

        .global-notify:active {
            transform: scale(.985);
            box-shadow: 0 8px 20px rgb(0 126 153 / 20%);
        }

        .notify-icon {
            display: grid;
            width: 38px;
            height: 38px;
            flex: 0 0 38px;
            place-items: center;
            border-radius: 13px;
            background: rgb(255 255 255 / 17%);
            font-size: 19px;
        }

        .notify-copy {
            flex: 1;
            min-width: 0;
        }

        .notify-title {
            display: block;
            font-size: 13px;
            font-weight: 800;
        }

        .notify-hint {
            display: block;
            margin-top: 2px;
            color: rgb(255 255 255 / 70%);
            font-size: 10px;
            font-weight: 600;
        }

        .notify-arrow {
            font-size: 20px;
            opacity: .65;
        }

        .subscriptions-card {
            margin-bottom: 22px;
            padding: 17px 14px 14px;
            border: 1px solid rgb(0 126 153 / 10%);
            border-radius: 23px;
            background: rgb(255 255 255 / 92%);
            box-shadow: 0 10px 28px rgb(0 95 115 / 9%);
        }

        .subscriptions-heading {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 11px;
        }

        .subscriptions-title {
            margin: 0;
            font-size: 16px;
            letter-spacing: -.025em;
        }

        .subscriptions-count {
            display: grid;
            min-width: 25px;
            height: 25px;
            padding: 0 7px;
            place-items: center;
            border-radius: 999px;
            color: var(--brand-dark);
            background: var(--brand-soft);
            font-size: 10px;
            font-weight: 850;
        }

        .subscriptions-list {
            display: grid;
            gap: 8px;
        }

        .subscription-empty {
            padding: 9px 4px 4px;
            color: var(--muted);
            font-size: 10px;
            line-height: 1.45;
        }

        .subscription-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            border-radius: 15px;
            background: #f0f9fa;
        }

        .subscription-icon {
            display: grid;
            width: 34px;
            height: 34px;
            flex: 0 0 34px;
            place-items: center;
            border-radius: 12px;
            color: var(--brand-dark);
            background: #d8f2f5;
            font-size: 15px;
            font-weight: 900;
        }

        .subscription-copy {
            flex: 1;
            min-width: 0;
        }

        .subscription-name,
        .subscription-hint {
            display: block;
        }

        .subscription-name {
            font-size: 11px;
            font-weight: 800;
        }

        .subscription-hint {
            margin-top: 2px;
            color: var(--muted);
            font-size: 8px;
            font-weight: 650;
        }

        .subscription-delete {
            display: grid;
            width: 31px;
            height: 31px;
            flex: 0 0 31px;
            place-items: center;
            border-radius: 11px;
            color: #8a6970;
            background: #fff;
            box-shadow: 0 4px 12px rgb(0 95 115 / 7%);
            cursor: pointer;
            font-size: 17px;
        }

        .subscriptions-clear {
            width: 100%;
            margin-top: 10px;
            padding: 9px;
            border-radius: 12px;
            color: var(--muted);
            background: transparent;
            cursor: pointer;
            font-size: 9px;
            font-weight: 750;
        }

        .subscriptions-clear[hidden] {
            display: none;
        }

        .history-card {
            margin-bottom: 22px;
            padding: 17px 14px 13px;
            border: 1px solid rgb(0 126 153 / 10%);
            border-radius: 23px;
            background: rgb(255 255 255 / 92%);
            box-shadow: 0 10px 28px rgb(0 95 115 / 9%);
        }

        .history-heading {
            display: flex;
            align-items: start;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 12px;
        }

        .history-title {
            margin: 0;
            font-size: 16px;
            letter-spacing: -.025em;
        }

        .history-subtitle {
            margin: 3px 0 0;
            color: var(--muted);
            font-size: 10px;
            line-height: 1.3;
        }

        .history-badge {
            flex: 0 0 auto;
            padding: 4px 7px;
            border-radius: 999px;
            color: var(--brand-dark);
            background: var(--brand-soft);
            font-size: 8px;
            font-weight: 850;
            letter-spacing: .08em;
            text-transform: uppercase;
        }

        .history-advice {
            display: grid;
            grid-template-columns: auto 1fr;
            gap: 10px;
            align-items: center;
            margin-bottom: 10px;
            padding: 10px 11px;
            border: 1px solid rgb(18 168 120 / 12%);
            border-radius: 18px;
            background: linear-gradient(135deg, rgb(225 252 238 / 88%), rgb(241 253 255 / 92%));
        }

        .history-advice-icon {
            display: grid;
            width: 36px;
            height: 36px;
            place-items: center;
            border-radius: 13px;
            color: #fff;
            background: linear-gradient(135deg, #6edb70, #25ad4b);
            font-size: 17px;
            font-weight: 900;
        }

        .history-advice--good .history-advice-icon,
        .history-advice--normal .history-advice-icon {
            background: linear-gradient(135deg, #8fd0ff, #3a91d0);
        }

        .history-advice--busy .history-advice-icon {
            background: linear-gradient(135deg, #ffca7a, #ef8f2f);
        }

        .history-advice--empty .history-advice-icon {
            background: linear-gradient(135deg, #d8e2ea, #aebdca);
        }

        .history-advice-copy {
            min-width: 0;
        }

        .history-advice-label {
            display: inline-flex;
            margin-bottom: 3px;
            padding: 3px 7px;
            border-radius: 999px;
            color: #1e9b3c;
            background: rgb(74 213 116 / 13%);
            font-size: 9px;
            font-weight: 850;
        }

        .history-advice-title {
            color: #081c40;
            font-size: 15px;
            font-weight: 900;
            letter-spacing: -.035em;
            line-height: 1.15;
        }

        .history-advice-title strong {
            color: #24a648;
        }

        .history-advice-text {
            margin-top: 4px;
            color: #3c5360;
            font-size: 10px;
            line-height: 1.3;
        }

        .history-chart {
            display: grid;
            grid-template-columns: repeat(8, minmax(0, 1fr));
            gap: 0;
            min-height: 128px;
            overflow: hidden;
            align-items: stretch;
            margin-bottom: 10px;
            padding: 8px 0 7px;
            border: 1px solid rgb(0 95 115 / 9%);
            border-radius: 17px;
            background: rgb(255 255 255 / 78%);
        }

        .history-period {
            display: grid;
            grid-template-rows: auto auto 1fr auto;
            min-width: 0;
            gap: 5px;
            justify-items: center;
            padding: 0 4px;
            border-left: 1px solid rgb(0 95 115 / 8%);
        }

        .history-period:first-child {
            border-left: 0;
        }

        .history-period.best {
            background: linear-gradient(180deg, rgb(67 202 94 / 10%), transparent);
        }

        .history-period.best .history-time,
        .history-period.best .history-amount,
        .history-period.best .history-quality {
            color: #24a648;
        }

        .history-amount {
            min-height: 24px;
            color: #367cae;
            font-size: 8px;
            font-weight: 850;
            line-height: 1.15;
            text-align: center;
        }

        .history-track {
            display: flex;
            width: 100%;
            height: 58px;
            align-items: end;
            overflow: hidden;
            align-self: end;
            border-radius: 10px;
            background: #eef5f7;
        }

        .history-bar {
            width: 100%;
            min-height: 3px;
            border-radius: 10px;
            background: linear-gradient(180deg, #62d6e7, var(--brand));
            transition: height .5s ease;
        }

        .history-period--excellent .history-bar {
            background: linear-gradient(180deg, #4bd39f, var(--ready));
            box-shadow: 0 0 0 1px rgb(18 168 120 / 8%);
        }

        .history-period--good .history-bar,
        .history-period--normal .history-bar {
            background: linear-gradient(180deg, #a7d8ff, #5aaee7);
        }

        .history-period--busy .history-bar {
            background: linear-gradient(180deg, #ffd18b, #ee9a3a);
        }

        .history-period--empty .history-bar {
            background: #d9ebee;
        }

        .history-time {
            overflow: hidden;
            color: var(--muted);
            font-size: 7px;
            font-weight: 750;
            text-align: center;
            white-space: nowrap;
        }

        .history-quality {
            overflow: hidden;
            color: #367cae;
            font-size: 7px;
            font-weight: 850;
            text-align: center;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .history-legend {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 7px 10px;
            margin: 0 2px 8px;
            color: #4f6571;
            font-size: 8px;
            line-height: 1.25;
        }

        .history-legend div {
            display: flex;
            min-width: 0;
            gap: 5px;
            align-items: flex-start;
        }

        .history-legend strong {
            color: #334a5a;
        }

        .history-legend-dot {
            width: 9px;
            height: 9px;
            flex: 0 0 9px;
            margin-top: 1px;
            border-radius: 50%;
            background: #c8d3dc;
        }

        .history-legend-dot--excellent { background: #56c85b; }
        .history-legend-dot--good { background: #8fc9f2; }
        .history-legend-dot--busy { background: #f0a03b; }
        .history-legend-dot--empty { background: #c9d2da; }

        .history-note {
            margin: 0;
            color: #7a8e98;
            font-size: 8px;
            line-height: 1.3;
        }

        .section-header {
            display: flex;
            align-items: end;
            justify-content: space-between;
            gap: 12px;
            margin: 0 3px 12px;
        }

        .section-title {
            margin: 0;
            font-size: 17px;
            letter-spacing: -.025em;
        }

        .updated-at {
            color: var(--muted);
            font-size: 10px;
        }

        .status-refresh {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .status-refresh-button {
            padding: 7px 10px;
            border: 1px solid rgb(0 126 153 / 16%);
            border-radius: 11px;
            color: var(--brand-dark);
            background: rgb(255 255 255 / 76%);
            cursor: pointer;
            font-size: 10px;
            font-weight: 800;
            transition: transform .18s ease, opacity .18s ease;
        }

        .status-refresh-button:active {
            transform: scale(.97);
        }

        .machines {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }

        .machine {
            position: relative;
            display: flex;
            min-width: 0;
            flex-direction: column;
            overflow: hidden;
            padding: 13px;
            border: 1px solid rgb(0 126 153 / 10%);
            border-radius: 23px;
            background: var(--surface);
            box-shadow: 0 10px 28px rgb(0 95 115 / 10%);
            animation: appear .42s ease both;
        }

        .machine::before {
            position: absolute;
            top: 0;
            right: 0;
            left: 0;
            height: 4px;
            background: var(--busy);
            content: "";
        }

        .machine.ready::before {
            background: var(--ready);
        }

        .machine-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
        }

        .machine-kind {
            overflow: hidden;
            color: var(--muted);
            font-size: 9px;
            font-weight: 800;
            letter-spacing: .08em;
            text-overflow: ellipsis;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .machine-price {
            flex: 0 0 auto;
            color: var(--brand-dark);
            font-size: 13px;
            font-weight: 850;
        }

        .machine-visual {
            position: relative;
            width: 108px;
            height: 124px;
            margin: 12px auto 10px;
            padding: 9px;
            border: 1px solid #dceff2;
            border-radius: 22px;
            background: linear-gradient(145deg, #ffffff, #eaf7f9);
            box-shadow:
                inset 0 1px 0 #fff,
                inset 0 -4px 10px rgb(0 126 153 / 6%),
                0 10px 22px rgb(0 126 153 / 14%);
        }

        .machine-controls {
            display: flex;
            height: 25px;
            align-items: center;
            justify-content: space-between;
            padding: 0 2px 5px;
            border-bottom: 1px solid #dceff2;
        }

        .control-dial {
            width: 15px;
            height: 15px;
            border: 4px solid #d1e8ec;
            border-top-color: var(--brand);
            border-radius: 50%;
            transform: rotate(30deg);
        }

        .control-lights {
            display: flex;
            gap: 3px;
        }

        .control-lights span {
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: #c9e2e7;
        }

        .control-lights span:first-child {
            background: var(--busy);
        }

        .machine.ready .control-lights span:first-child {
            background: var(--ready);
        }

        .machine-door {
            position: relative;
            display: grid;
            width: 72px;
            height: 72px;
            margin: 8px auto 0;
            place-items: center;
            overflow: hidden;
            border: 7px solid #d8edf0;
            border-radius: 50%;
            background: linear-gradient(145deg, #b9dfe6, #62adc0);
            box-shadow:
                inset 0 0 0 3px rgb(255 255 255 / 54%),
                inset 4px 5px 10px rgb(0 95 115 / 18%);
        }

        .machine-door::before {
            position: absolute;
            top: 10px;
            left: 14px;
            width: 20px;
            height: 7px;
            border-radius: 50%;
            background: rgb(255 255 255 / 45%);
            content: "";
            transform: rotate(-25deg);
        }

        .machine-wave {
            position: absolute;
            right: -12px;
            bottom: -20px;
            left: -12px;
            height: 48px;
            border-radius: 42% 55% 0 0;
            background: rgb(0 167 196 / 68%);
            transform: rotate(-7deg);
        }

        .machine-wave::before {
            position: absolute;
            top: -6px;
            right: 8px;
            left: -8px;
            height: 20px;
            border-radius: 50%;
            background: rgb(98 214 231 / 72%);
            content: "";
        }

        .machine.ready .machine-wave {
            bottom: -32px;
            opacity: .45;
        }

        .machine:not(.ready) .machine-wave {
            animation: wash-wave 3s ease-in-out infinite alternate;
        }

        .machine.ready .machine-visual {
            border-color: #d5f0e7;
            background: linear-gradient(145deg, #ffffff, #eafaf4);
        }

        .machine.dryer .machine-visual {
            background: linear-gradient(145deg, #fffdf7, #f9e9c8);
            border-color: #f9efd9;
        }

        .machine.dryer .machine-door {
            border-color: #f2dfb8;
            background: linear-gradient(145deg, #f5dca9, #c58e45);
        }

        .machine.dryer .machine-wave {
            right: 11px;
            bottom: 11px;
            left: 11px;
            height: 16px;
            border: 3px solid rgb(255 255 255 / 55%);
            border-right-color: transparent;
            border-left-color: transparent;
            border-radius: 50%;
            background: transparent;
            opacity: .8;
            transform: rotate(-18deg);
        }

        .machine.dryer .machine-wave::before {
            display: none;
        }

        .machine-number {
            display: flex;
            align-items: baseline;
            color: var(--brand-deep);
            font-size: 19px;
            font-weight: 900;
            letter-spacing: -.06em;
        }

        .machine-number small {
            margin-right: 2px;
            font-size: 9px;
            font-weight: 800;
            letter-spacing: 0;
        }

        .machine-status {
            min-height: 34px;
            margin: 0 -2px 10px;
            color: #9b594c;
            font-size: 11px;
            font-weight: 800;
            line-height: 1.35;
            text-align: center;
        }

        .machine.ready .machine-status {
            color: #087957;
        }

        .status-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 5px 8px;
            border-radius: 999px;
            background: var(--busy-soft);
        }

        .machine.ready .status-badge {
            background: var(--ready-soft);
        }

        .machine-action {
            width: 100%;
            margin-top: auto;
            padding: 11px 8px;
            border-radius: 13px;
            color: var(--brand-dark);
            background: var(--brand-soft);
            font-size: 11px;
            font-weight: 850;
            cursor: pointer;
            transition: transform .18s ease, filter .18s ease;
        }

        .machine.ready .machine-action {
            color: #fff;
            background: linear-gradient(135deg, var(--brand-dark), var(--brand));
            box-shadow: 0 7px 16px rgb(0 126 153 / 20%);
        }

        .machine-action:active {
            transform: scale(.97);
            filter: brightness(.97);
        }

        .app-footer {
            margin: 22px auto 0;
            text-align: center;
        }

        .footer-note {
            margin: 0;
            color: var(--muted);
            font-size: 10px;
            line-height: 1.45;
        }

        .privacy-link {
            display: inline-block;
            margin-top: 8px;
            color: var(--brand-dark);
            font-size: 11px;
            font-weight: 750;
            text-underline-offset: 3px;
        }

        .about-modal {
            position: fixed;
            z-index: 100;
            inset: 0;
            display: grid;
            padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
            place-items: center;
            overflow-y: auto;
            background: rgb(1 34 45 / 58%);
            backdrop-filter: blur(7px);
        }

        .about-dialog {
            position: relative;
            width: min(100%, 440px);
            max-height: calc(100vh - 36px);
            padding: 24px;
            overflow-y: auto;
            border: 1px solid rgb(255 255 255 / 70%);
            border-radius: 24px;
            background: #fff;
            box-shadow: 0 24px 70px rgb(0 56 72 / 35%);
        }

        .about-close {
            position: absolute;
            top: 12px;
            right: 12px;
            display: grid;
            width: 34px;
            height: 34px;
            place-items: center;
            border-radius: 50%;
            color: var(--muted);
            background: var(--surface-muted);
            cursor: pointer;
            font-size: 22px;
            line-height: 1;
        }

        .about-icon {
            display: grid;
            width: 42px;
            height: 42px;
            margin-bottom: 13px;
            place-items: center;
            border-radius: 50%;
            color: #fff;
            background: linear-gradient(135deg, var(--brand-dark), var(--brand));
            font-size: 20px;
            font-weight: 850;
        }

        .about-title {
            margin: 0 42px 14px 0;
            color: var(--text);
            font-size: 22px;
            line-height: 1.15;
            letter-spacing: -.035em;
        }

        .about-dialog p {
            margin: 0 0 12px;
            color: #456a75;
            font-size: 13px;
            line-height: 1.55;
        }

        .about-actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 9px;
            margin-top: 18px;
        }

        .about-understood,
        .about-privacy {
            display: grid;
            min-height: 44px;
            place-items: center;
            border-radius: 13px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 800;
            text-align: center;
            text-decoration: none;
        }

        .about-understood {
            color: #fff;
            background: linear-gradient(135deg, var(--brand-dark), var(--brand));
        }

        .about-privacy {
            color: var(--brand-dark);
            background: var(--brand-soft);
        }

        @keyframes appear {
            from { opacity: 0; transform: translateY(8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes wash-wave {
            from { transform: translateX(-3px) rotate(-7deg); }
            to { transform: translateX(4px) rotate(5deg); }
        }

        @media (max-width: 480px) {
            .history-card {
                padding: 16px 12px 12px;
                border-radius: 22px;
            }

            .history-heading {
                align-items: center;
                margin-bottom: 11px;
            }

            .history-title {
                font-size: 17px;
            }

            .history-subtitle {
                font-size: 11px;
            }

            .history-badge {
                padding: 5px 8px;
                font-size: 9px;
            }

            .history-advice {
                gap: 9px;
                margin-bottom: 11px;
                padding: 11px;
                border-radius: 18px;
            }

            .history-advice-icon {
                width: 34px;
                height: 34px;
                border-radius: 12px;
                font-size: 16px;
            }

            .history-advice-label {
                font-size: 9px;
            }

            .history-advice-title {
                font-size: 14px;
                line-height: 1.2;
            }

            .history-advice-text {
                font-size: 11px;
                line-height: 1.35;
            }

            .history-chart {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 8px;
                min-height: 0;
                overflow: visible;
                margin-bottom: 12px;
                padding: 0;
                border: 0;
                border-radius: 0;
                background: transparent;
            }

            .history-period,
            .history-period:first-child {
                display: grid;
                min-height: 72px;
                grid-template-columns: 1fr auto;
                grid-template-rows: auto auto 5px;
                grid-template-areas:
                    "time quality"
                    "amount amount"
                    "track track";
                gap: 6px 8px;
                align-items: center;
                justify-items: stretch;
                padding: 10px;
                border: 1px solid rgb(0 95 115 / 9%);
                border-radius: 16px;
                background: rgb(255 255 255 / 84%);
                box-shadow: 0 6px 16px rgb(0 95 115 / 5%);
            }

            .history-period.best {
                border-color: rgb(49 190 91 / 28%);
                background: linear-gradient(135deg, rgb(232 255 240 / 96%), rgb(247 254 255 / 96%));
            }

            .history-time {
                grid-area: time;
                justify-self: start;
                overflow: visible;
                font-size: 12px;
                font-weight: 900;
                line-height: 1;
                text-align: left;
            }

            .history-amount {
                grid-area: amount;
                min-height: 0;
                justify-self: start;
                overflow: visible;
                font-size: 12px;
                line-height: 1.15;
                text-align: left;
                white-space: nowrap;
            }

            .history-quality {
                grid-area: quality;
                justify-self: end;
                max-width: 86px;
                padding: 3px 7px;
                border-radius: 999px;
                overflow: visible;
                font-size: 9px;
                line-height: 1;
                text-overflow: clip;
                white-space: nowrap;
                background: rgb(89 174 231 / 13%);
            }

            .history-period--excellent .history-quality {
                color: #219344;
                background: rgb(76 203 91 / 14%);
            }

            .history-period--good .history-quality,
            .history-period--normal .history-quality {
                color: #277db6;
            }

            .history-period--busy .history-quality {
                color: #ba6a13;
                background: rgb(240 160 59 / 16%);
            }

            .history-period--empty .history-quality {
                color: #6d7e89;
                background: rgb(201 210 218 / 24%);
            }

            .history-track {
                grid-area: track;
                width: 100%;
                height: 5px;
                align-self: end;
                border-radius: 999px;
            }

            .history-bar {
                height: 100% !important;
                min-height: 0;
                border-radius: 999px;
            }

            .history-legend {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 7px 8px;
                margin: 0 0 8px;
                font-size: 9px;
                line-height: 1.3;
            }

            .history-note {
                font-size: 9px;
                line-height: 1.35;
            }
        }

        @media (max-width: 350px) {
            main { padding-right: 10px; padding-left: 10px; }
            .about-open {
                top: 14px;
                right: 6px;
                width: 44px;
                height: 44px;
                border-radius: 14px;
            }
            .about-dialog { padding: 20px 16px; border-radius: 20px; }
            .about-actions { grid-template-columns: 1fr; }
            .history-card { padding-right: 10px; padding-left: 10px; }
            .history-advice { gap: 8px; }
            .history-advice-icon { width: 32px; height: 32px; }
            .history-chart { gap: 7px; }
            .history-period { min-height: 68px; padding: 8px; }
            .history-time,
            .history-amount { font-size: 11px; }
            .history-quality { max-width: 78px; padding: 3px 6px; font-size: 8px; }
            .history-legend { grid-template-columns: 1fr; }
            .section-header { align-items: start; }
            .status-refresh { align-items: end; flex-direction: column; }
            .machines { gap: 9px; }
            .machine { padding: 10px; border-radius: 19px; }
            .machine-visual { width: 100px; height: 116px; }
            .machine-door { width: 66px; height: 66px; }
        }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                scroll-behavior: auto !important;
                animation-duration: .01ms !important;
                transition-duration: .01ms !important;
            }
        }

.feedback-open {
    width: 100%;
    margin: 8px 0 14px;
    padding: 12px;
    border: 1px solid rgba(10, 91, 111, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    color: #14546a;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.feedback-panel {
    margin: 0 0 18px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(13, 92, 112, 0.12);
}

.feedback-heading,
.feedback-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.feedback-title {
    margin: 0;
    color: #123f52;
    font-size: 18px;
}

.feedback-close {
    border: 0;
    background: transparent;
    color: #6c8792;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.feedback-form {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.feedback-message {
    min-height: 112px;
    padding: 14px;
    resize: vertical;
    border: 1px solid #cce3e9;
    border-radius: 14px;
    background: #f7fcfd;
    color: #123f52;
    font: inherit;
}

.feedback-message:focus {
    border-color: #39a9c2;
    outline: 3px solid rgba(57, 169, 194, 0.15);
}

.feedback-counter,
.feedback-status {
    color: #68838e;
    font-size: 13px;
}

.feedback-submit {
    padding: 10px 18px;
    border: 0;
    border-radius: 12px;
    background: #168da8;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.feedback-submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

.feedback-status:empty {
    display: none;
}
