* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --background: #0f1722;
    --surface: #151d2a;
    --surface-raised: #1b2636;
    --border: #2b3a4d;
    --text: #f3f6f8;
    --muted: #9eabb8;
    --accent: #4f7fb8;
    --check: #6f9d4d;
    --shadow: rgba(0, 0, 0, 0.28);
}

html {
    min-height: 100%;
    background: var(--background);
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 50% -120px, rgba(79, 127, 184, 0.22), transparent 360px),
        var(--background);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

button {
    font: inherit;
}

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

.app-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 2px 2px 18px;
}

.app-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    box-shadow: 0 8px 20px var(--shadow);
}

.app-header h1 {
    margin: 0;
    color: var(--accent);
    font-size: clamp(2rem, 8vw, 2.45rem);
    line-height: 1;
    letter-spacing: -0.025em;
}

.status-message {
    margin-bottom: 14px;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
    color: var(--muted);
}

.status-message.error {
    color: #efb3ae;
}

.task-panel {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(21, 29, 42, 0.96);
    box-shadow: 0 16px 36px var(--shadow);
}

.task-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    margin: 0;
    padding: 10px 10px 10px 16px;
    border-bottom: 1px solid var(--border);
}

.task-row:last-child {
    border-bottom: 0;
}

.task-row span {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 1.05rem;
    line-height: 1.35;
}

.task-row button {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid rgba(111, 157, 77, 0.75);
    border-radius: 12px;
    background: rgba(111, 157, 77, 0.16);
    color: #dcebd2;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
}

.task-row button:disabled {
    opacity: 0.45;
}

.empty-message {
    margin: 0;
    padding: 22px 16px;
    text-align: center;
    color: var(--muted);
}
