/* Morrown 5.0.80/5.0.81: habits changes approved on 2026-11-30 (P-065…P-074, comments on the design board of 2026-11-29).
   Loaded after zmiany-5079.css. The rules are the ones of the approved mockups (Design-5.0.79/propozycje/nawyki/prop85.js);
   ":root body" keeps the specificity the mockup rules had ("body.mr-p0xx"), so the app renders exactly like the mockups.
   Light mode: tile ink and the action disc follow the theme (--p067-ink, --control). */
:root{--p067-ink:#fff}
:root[data-mode=light]{--p067-ink:#16161c}

/* P-065 · Dziś / Wszystkie / Kolekcje only in the menu ≡ (the tabs are not rendered any more) */
:root body #modal .habit-view-menu.habit-views{display:grid;gap:4px}

/* P-066 · smaller check / + / timer glyphs on the card, 48 px touch target */
:root body .habits-v2 .habit-card .habit-action{position:relative!important;width:48px!important;min-width:48px!important;height:48px!important;min-height:48px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}
:root body .habits-v2 .habit-card>.habit-action::before,:root body .habits-v2 .habit-card>.habit-action.done::before{display:none!important}
:root body .habits-v2 .habit-card .habit-action>svg{position:absolute!important;left:5px!important;top:5px!important;width:38px!important;height:38px!important;inset:auto!important;transform:none!important;z-index:1;pointer-events:none}
:root body .habits-v2 .habit-card .habit-action-glyph{position:absolute!important;left:7px!important;top:7px!important;width:34px!important;height:34px!important;border-radius:50%!important;background:var(--control)!important;display:grid!important;place-items:center!important;z-index:0}
:root body .habits-v2 .habit-card .habit-action.done .habit-action-glyph{background:var(--green)!important;color:var(--on-green)!important}
:root body .habits-v2 .habit-card .habit-action-glyph svg{width:16px!important;height:16px!important}
:root body .habits-v2 .habit-card .habit-action .empty-circle{width:16px!important;height:16px!important;border-width:1.6px!important}

/* P-067 · habit colours at 50% opacity, light glyph in the habit's hue; since 5.0.81 the green "done" too (week days and the action disc) */
:root body .habits-v2 .habit-card .icon-tile,:root body .habit-archive-row .icon-tile{background:color-mix(in srgb,var(--habit-color) 50%,transparent)!important;color:color-mix(in srgb,var(--habit-color) 22%,var(--p067-ink))!important}
:root body .habits-v2 .habit-card .mini-day.completed>span,:root body .habits-v2 .habit-card .habit-action.done .habit-action-glyph{background:color-mix(in srgb,var(--green) 50%,transparent)!important;color:color-mix(in srgb,var(--green) 22%,var(--p067-ink))!important}

/* P-068 · timer bar: the habit's own icon tile */
:root body .timer-player-banner-art{width:40px!important;height:40px!important;border-radius:13px!important;background:color-mix(in srgb,var(--habit-color,var(--accent)) 50%,transparent)!important;color:color-mix(in srgb,var(--habit-color,var(--accent)) 22%,var(--p067-ink))!important;flex:none}
:root body .timer-player-banner-art svg{width:22px!important;height:22px!important}

/* P-069 · swipe background over the whole card, label in the middle of the uncovered part (--swipe-reveal, set by habit-gestures.js) */
.habits-v2 .habit-swipe{--swipe-reveal:104px}
:root body .habits-v2 .habit-swipe-action{left:0!important;right:0!important;width:auto!important;padding:0!important;display:block!important}
:root body .habits-v2 .habit-swipe-action>span{position:absolute;top:50%;left:calc(var(--swipe-reveal) / 2);transform:translate(-50%,-50%);width:auto!important;white-space:nowrap}
:root body .habits-v2 .habit-swipe-action.is-done>span{left:auto;right:calc(var(--swipe-reveal) / 2);transform:translate(50%,-50%)}

/* P-070 · day picker: calm selected day, today with a dot, „Przejdź do dzisiaj” over the full width (shared picker) */
:root body .date-dialog .date-day{position:relative}
:root body .date-dialog .date-day.selected{background:color-mix(in srgb,var(--accent) 24%,transparent)!important;color:var(--text)!important;border:1px solid color-mix(in srgb,var(--accent-ink) 50%,transparent)!important;border-radius:14px!important;box-shadow:none!important;font-weight:700!important}
:root body .date-dialog .date-day.today:not(.selected){border-color:transparent!important;color:var(--accent-ink)!important;font-weight:700!important}
:root body .date-dialog .date-day.today::after{content:"";position:absolute;left:50%;bottom:5px;width:5px;height:5px;margin-left:-2.5px;border-radius:50%;background:var(--accent-ink)}
:root body .date-dialog .date-shortcuts:not(.is-top){display:grid!important;grid-template-columns:1fr!important}
:root body .date-dialog .date-shortcuts:not(.is-top) .btn{width:100%!important;min-height:48px!important;font:600 15px/20px "DM Sans","mr-android",sans-serif!important;display:flex;align-items:center;justify-content:center;gap:8px}

/* P-071 · collections: tile with the collection's icon and colour, its habits as small icons; editor with preview, icons and colours */
:root body .collection-card{display:grid!important;grid-template-columns:52px 1fr 20px!important;align-items:center!important;gap:14px!important;padding:16px!important;min-height:92px}
:root body .collection-card .collection-tile{width:52px;height:52px;border-radius:17px;display:grid;place-items:center;background:color-mix(in srgb,var(--c) 50%,transparent);color:color-mix(in srgb,var(--c) 22%,var(--p067-ink))}
:root body .collection-card .collection-tile svg{width:27px;height:27px;background:none!important;padding:0!important;border-radius:0!important;color:inherit!important}
:root body .collection-card h3{margin:0;font:600 17px/22px "DM Sans","mr-android",sans-serif!important;color:var(--text)}
:root body .collection-card p{margin:3px 0 0;font:400 14px/20px "DM Sans","mr-android",sans-serif!important;color:var(--muted)}
:root body .collection-card .collection-mini{display:flex;gap:5px;margin-top:9px}
:root body .collection-card .collection-mini:empty{display:none}
:root body .collection-card .collection-mini i{width:24px;height:24px;border-radius:8px;display:grid;place-items:center;background:color-mix(in srgb,var(--hc) 50%,transparent);color:color-mix(in srgb,var(--hc) 22%,var(--p067-ink))}
:root body .collection-card .collection-mini i svg{width:14px;height:14px}
:root body .collection-card>svg:last-child{color:var(--muted)}
:root body #modal .collection-preview{display:grid;grid-template-columns:64px 1fr;gap:16px;align-items:center;padding:18px;border-radius:24px;background:var(--surface);margin:4px 0 22px}
:root body #modal .collection-preview .collection-tile{width:64px;height:64px;border-radius:20px;display:grid;place-items:center;background:color-mix(in srgb,var(--c) 50%,transparent);color:color-mix(in srgb,var(--c) 22%,var(--p067-ink))}
:root body #modal .collection-preview .collection-tile svg{width:32px;height:32px}
:root body #modal .collection-preview strong{display:block;font:600 19px/24px "DM Sans","mr-android",sans-serif;color:var(--text);overflow-wrap:anywhere}
:root body #modal .collection-preview span{display:block;margin-top:3px;font:400 14px/20px "DM Sans","mr-android",sans-serif;color:var(--muted)}
:root body #modal .collection-field{margin:22px 0 0}
:root body #modal .collection-field>span{display:block;margin:0 0 10px;font:600 14px/20px "DM Sans","mr-android",sans-serif;color:var(--muted)}
:root body #modal .collection-icons{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
:root body #modal .collection-icons button{height:52px;border-radius:16px;border:0;background:var(--surface);color:var(--text);display:grid;place-items:center;padding:0}
:root body #modal .collection-icons button svg{width:24px;height:24px}
:root body #modal .collection-icons button[aria-pressed=true]{background:color-mix(in srgb,var(--c) 50%,transparent);color:color-mix(in srgb,var(--c) 22%,var(--p067-ink))}
:root body #modal .collection-more-icons{margin-top:10px;width:100%;min-height:48px;border-radius:16px;border:1px solid var(--line);background:transparent;color:var(--text);font:600 15px/20px "DM Sans","mr-android",sans-serif;display:flex;align-items:center;justify-content:center;gap:8px}
:root body #modal .collection-colors{display:grid;grid-template-columns:repeat(8,1fr);gap:8px}
:root body #modal .collection-colors button{aspect-ratio:1;border-radius:14px;border:0;background:var(--sw);display:grid;place-items:center;padding:0;color:var(--ink)}
:root body #modal .collection-colors button svg{width:18px;height:18px;opacity:0}
:root body #modal .collection-colors button[aria-pressed=true]{box-shadow:0 0 0 2px var(--bg,#000),0 0 0 4px var(--text)}
:root body #modal .collection-colors button[aria-pressed=true] svg{opacity:1}

/* P-072 · habits in a collection as normal cards, member rows like habit cards, delete as a small island */
:root body #modal .collection-member-list{display:grid!important;gap:10px!important;background:none!important;border:0!important;border-radius:0!important;overflow:visible!important}
:root body #modal .collection-member{display:grid!important;grid-template-columns:48px 1fr 28px!important;align-items:center!important;gap:16px!important;min-height:80px;padding:16px!important;border-radius:24px!important;background:var(--surface)!important;border:0!important}
:root body #modal .collection-member .collection-member-icon{width:48px!important;height:48px!important;border-radius:16px!important;background:color-mix(in srgb,var(--habit-color) 50%,transparent)!important;color:color-mix(in srgb,var(--habit-color) 22%,var(--p067-ink))!important;display:grid!important;place-items:center!important;margin:0!important}
:root body #modal .collection-member .collection-member-icon svg{width:24px!important;height:24px!important}
:root body #modal .collection-member strong{display:block;font:500 17px/22px "DM Sans","mr-android",sans-serif!important;color:var(--text)!important}
:root body #modal .collection-member small{display:block;margin-top:3px;font:400 14px/20px "DM Sans","mr-android",sans-serif!important;color:var(--muted)!important}
:root body #modal .collection-member input{appearance:none!important;-webkit-appearance:none!important;width:28px!important;height:28px!important;margin:0!important;border-radius:50%!important;border:2px solid #5b5b66!important;background:transparent!important;display:grid;place-items:center}
:root body #modal .collection-member input:checked{background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/16px no-repeat!important;border-color:var(--accent)!important}
:root body .habit-sheet .collection-delete-island{display:grid;grid-template-columns:48px 1fr;gap:14px;align-items:start;padding:4px 0 8px}
:root body .habit-sheet .collection-delete-island i{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:color-mix(in srgb,var(--danger) 16%,transparent);color:var(--danger)}
:root body .habit-sheet .collection-delete-island strong{display:block;font:600 16px/22px "DM Sans","mr-android",sans-serif;color:var(--text)}
:root body .habit-sheet .collection-delete-island span{display:block;margin-top:4px;font:400 15px/21px "DM Sans","mr-android",sans-serif;color:var(--muted)}

/* P-073 · icon categories as plain text, the chosen one underlined; ≡ without a box */
:root body .icon-category-toolbar .icon-picker-categories button{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:var(--muted)!important;font:600 15px/20px "DM Sans","mr-android",sans-serif!important;padding:0 12px!important;min-height:44px!important;position:relative}
:root body .icon-category-toolbar .icon-picker-categories button[aria-current]{color:var(--text)!important}
:root body .icon-category-toolbar .icon-picker-categories button[aria-current]::after{content:"";position:absolute;left:12px;right:12px;bottom:4px;height:2px;border-radius:2px;background:var(--accent-ink)}
:root body .icon-category-toolbar .icon-category-index-toggle{background:transparent!important;border:0!important;box-shadow:none!important;color:var(--text)!important}

/* P-074 · palette with the custom colour right under it, no „Paleta / Własny kolor” switch (every colour picker) */
:root body .color-palette-screen .color-custom-heading{margin:18px 0 10px;font:600 14px/20px "DM Sans","mr-android",sans-serif;color:var(--muted)}
:root body .color-palette-screen .color-swatch{height:44px!important;min-height:44px!important;border-radius:14px!important}
:root body .color-palette-screen .color-plane{height:118px!important;min-height:118px!important}
