* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    color: #251f24;
    background: #fbf8f7;
}

:root {
    --accent-gradient: linear-gradient(135deg, #ff3d1f 0%, #d9026f 100%);
    --accent-shadow: 0 12px 24px rgba(217, 2, 111, 0.18);
    --kanban-planned-bg: #f7f6f4;
    --kanban-planned-border: #dedbd8;
    --kanban-planned-accent: #8a817d;
    --kanban-progress-bg: #fff1f8;
    --kanban-progress-border: #f7c6dc;
    --kanban-progress-accent: #d9026f;
    --kanban-review-bg: #fff2eb;
    --kanban-review-border: #ffd8c9;
    --kanban-review-accent: #ff3d1f;
    --kanban-done-bg: #effaf5;
    --kanban-done-border: #c9e7da;
    --kanban-done-accent: #228b64;
}

.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.center {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.center img {
    width: min(50vw, 500px);
    min-width: 220px;
}

.front-login {
    min-height: 100vh;
    display: grid;
    place-content: center;
    justify-items: center;
    padding: 24px;
    background: #fff;
}

.logo-button {
    width: min(50vw, 500px);
    min-width: 220px;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.logo-button img {
    display: block;
    width: 100%;
}

.login-panel {
    width: min(100%, 360px);
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transform: translateY(-14px);
    transition: grid-template-rows 260ms ease, opacity 260ms ease, transform 260ms ease, margin-top 260ms ease;
    margin-top: 0;
    overflow: hidden;
}

.login-panel.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: translateY(0);
    margin-top: 34px;
}

.login-panel .login-form {
    min-height: 0;
}

.success-panel {
    display: grid;
    justify-items: center;
    gap: 18px;
}

.success-panel p {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.prototype-links {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.prototype-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    background: var(--accent-gradient);
    text-decoration: none;
}

.session-bar {
    position: fixed;
    right: 18px;
    bottom: 16px;
    margin: 0;
    font-size: 14px;
    color: #555;
}

.session-bar a {
    margin-left: 12px;
    color: #d9026f;
}

.top-menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #f0e9e8;
    backdrop-filter: blur(14px);
}

.top-menu-logo img {
    display: block;
    width: 94px;
}

.notification-center {
    position: relative;
    margin-left: auto;
}

.notification-center > summary {
    position: relative;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #4f464b;
    background: transparent;
    cursor: pointer;
    list-style: none;
}

.notification-center > summary::-webkit-details-marker {
    display: none;
}

.notification-center > summary:hover,
.notification-center > summary:focus-visible,
.notification-center[open] > summary {
    color: #d9026f;
    background: #fff0f7;
    outline: none;
}

.notification-center > summary svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.notification-count {
    position: absolute;
    top: 1px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 10px;
    padding: 0 3px;
    color: #fff;
    background: #d9026f;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.notification-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    width: min(380px, calc(100vw - 28px));
    max-height: min(520px, calc(100vh - 90px));
    overflow: auto;
    border: 1px solid #eadfdd;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 54px rgba(52, 33, 43, 0.18);
}

.notification-popover > header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #f0e9e8;
    padding: 14px 16px;
    background: #fff;
}

.notification-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-header-actions form {
    margin: 0;
}

.notification-header-actions button,
.notification-popover > header a {
    border: 0;
    padding: 0;
    color: #d9026f;
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.notification-list {
    display: grid;
}

.notification-item-form {
    margin: 0;
}

.top-menu .notification-item {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    border-bottom: 1px solid #f4efed;
    border-top: 0;
    border-right: 0;
    border-left: 0;
    padding: 13px 16px;
    color: #251f24;
    background: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.notification-item-form:last-child .notification-item {
    border-bottom: 0;
}

.top-menu .notification-item:hover,
.top-menu .notification-item:focus-visible {
    background: #fff8fb;
    outline: none;
}

.top-menu .notification-item.is-seen {
    color: #71686c;
    background: #fcfaf9;
}

.notification-item.is-seen .notification-item-icon {
    color: #81777c;
    background: #f0ecea;
}

.notification-item-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #d9026f;
    background: #fff0f7;
    font-size: 19px;
}

.notification-item > span:nth-child(2) {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.notification-item strong {
    font-size: 13px;
}

.notification-item small,
.notification-item time {
    color: #6f666a;
    font-size: 11px;
    line-height: 1.4;
}

.notification-item time {
    color: #9a8f94;
}

.notification-seen {
    position: absolute;
    top: 12px;
    right: 14px;
    color: #81777c;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.notification-empty {
    margin: 0;
    padding: 30px 18px;
    color: #756b70;
    font-size: 13px;
    text-align: center;
}

.top-menu nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #d9026f;
    cursor: pointer;
}

.top-menu a {
    color: #251f24;
    font-size: 14px;
    text-decoration: none;
}

.top-menu a[aria-current="page"] {
    font-weight: 700;
}

.admin-page {
    width: min(100% - 40px, 820px);
    margin: 0 auto;
    padding: 104px 0 34px;
}

.users-page {
    width: min(100% - 40px, 1120px);
}

.dashboard-page {
    width: min(100% - 40px, 1080px);
    margin: 0 auto;
    padding: 100px 0 46px;
}

.dashboard-day {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 15px;
}

.dashboard-day .notice,
.dashboard-day .error {
    grid-column: 1 / -1;
}

.dashboard-date-nav {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 18px;
}

.day-arrow {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    color: #fff;
    line-height: 1;
    text-decoration: none;
    background: var(--accent-gradient);
    box-shadow: var(--accent-shadow);
}

.day-arrow .material-symbols-rounded {
    font-size: 28px;
}

.dashboard-date-nav div {
    min-width: 0;
}

.dashboard-date-nav time {
    display: block;
    color: #726b70;
    font-size: 15px;
    font-weight: 500;
}

.dashboard-date-nav h1 {
    margin: 3px 0 0;
    font-size: 42px;
    line-height: 1;
    font-weight: 700;
}

.dashboard-kicker {
    margin: 0 0 8px;
    color: #77766d;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.dashboard-shortcuts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.dashboard-shortcuts .today-link {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    padding: 0 14px;
    background: var(--accent-gradient);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--accent-shadow);
}

.dashboard-shortcuts .today-link {
    min-width: 78px;
}

.dashboard-shortcuts .today-link.is-current {
    background: #e8e4e1;
    color: #9a9390;
    box-shadow: none;
}

.dashboard-shortcuts form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-shortcuts input {
    min-height: 36px;
    border: 1px solid #eadfdd;
    border-radius: 6px;
    padding: 6px 10px;
    background: #fff;
    font: inherit;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 22px;
    align-items: start;
}

.dashboard-column {
    display: grid;
    gap: 18px;
}

.dashboard-panel,
.projects-panel {
    border: 1px solid #f0e7e5;
    border-radius: 8px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 16px 35px rgba(37, 31, 36, 0.06);
}

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

.panel-heading h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.panel-heading p {
    margin: 4px 0 0;
    color: #666;
    font-size: 14px;
}

.panel-heading span {
    color: #666;
    font-size: 14px;
}

.panel-toggle {
    width: 32px;
    height: 32px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #5d5552;
    cursor: pointer;
}

.panel-toggle .material-symbols-rounded {
    font-size: 26px;
}

.dashboard-panel.is-collapsed > :not(.panel-heading),
.projects-panel.is-collapsed > :not(.panel-heading) {
    display: none;
}

.dashboard-panel.is-collapsed .panel-heading,
.projects-panel.is-collapsed .panel-heading {
    margin-bottom: 0;
}

.task-form,
.grocery-form,
.calendar-form {
    display: grid;
    gap: 12px;
}

.task-form,
.grocery-form {
    align-items: start;
    gap: 8px;
    margin-top: 18px;
}

.task-form {
    grid-template-columns: minmax(0, 1fr) 40px 44px;
}

.grocery-form {
    grid-template-columns: minmax(0, 1fr) 82px 40px 44px;
}

.task-form > label,
.grocery-form > label {
    grid-column: 1;
    grid-row: 1;
    display: block;
    min-width: 0;
}

.task-form .form-label-text,
.grocery-form .form-label-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.task-form label,
.grocery-form label,
.calendar-form label {
    display: grid;
    gap: 6px;
    color: #333;
    font-size: 13px;
}

.task-form > label,
.grocery-form > label {
    display: block;
}

.task-form input,
.task-form select,
.task-form button,
.grocery-form input,
.grocery-form select,
.grocery-form button,
.calendar-form input,
.calendar-form button {
    min-height: 38px;
    border-radius: 4px;
    font: inherit;
}

.task-form input,
.task-form select,
.grocery-form input,
.grocery-form select,
.calendar-form input {
    width: 100%;
    border: 1px solid #eadfdd;
    padding: 8px 10px;
    background: #fff;
}

.task-form input,
.grocery-form input {
    min-height: 40px;
    border-color: #d9026f;
    font-size: 16px;
}

.repeat-options {
    display: contents;
}

.repeat-options summary {
    grid-column: 2;
    grid-row: 1;
    width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eadfdd;
    border-radius: 4px;
    padding: 0;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 13px;
    list-style: none;
}

.repeat-options summary .material-symbols-rounded {
    font-size: 21px;
}

.repeat-options summary::-webkit-details-marker {
    display: none;
}

.repeat-options[open] summary {
    border-color: transparent;
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: var(--accent-shadow);
}

.repeat-options-panel {
    grid-column: 1 / -1;
    grid-row: 2;
}

.repeat-options-panel[hidden] {
    display: none;
}

.repeat-options-panel select {
    width: 100%;
    min-width: 0;
    margin-top: 0;
}

.grocery-interval-row {
    width: 100%;
    justify-self: stretch;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    gap: 8px;
    align-items: center;
}

.grocery-interval-row select {
    grid-column: auto;
    grid-row: auto;
}

.interval-info-button {
    width: 38px;
    min-height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: #5d5552;
    box-shadow: none;
    cursor: pointer;
}

.interval-info-button .material-symbols-rounded {
    font-size: 22px;
}

.interval-help {
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.45;
}

.task-form input:focus,
.task-form select:focus,
.grocery-form input:focus,
.grocery-form select:focus,
.calendar-form input:focus,
.dashboard-shortcuts input:focus {
    border-color: #d9026f;
    outline: 2px solid rgba(217, 2, 111, 0.16);
    outline-offset: 1px;
}

.task-form button,
.grocery-form button,
.calendar-form button {
    border: 0;
    border-radius: 6px;
    padding: 0 14px;
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--accent-shadow);
}

.task-form button,
.grocery-form button {
    grid-column: 3;
    grid-row: 1;
    width: 44px;
    min-height: 40px;
    padding: 0;
    font-size: 25px;
    line-height: 1;
}

.grocery-form > .grocery-quantity-field {
    grid-column: 2;
    grid-row: 1;
}

.grocery-form .repeat-options summary {
    grid-column: 3;
}

.grocery-form > button[type="submit"] {
    grid-column: 4;
}

.task-form button:disabled,
.grocery-form button:disabled {
    background: #e8e4e1;
    color: #9a9390;
    box-shadow: none;
    cursor: default;
}

.grocery-form .interval-info-button {
    grid-column: auto;
    grid-row: auto;
    width: 38px;
    min-height: 38px;
    border-radius: 0;
    background: transparent;
    color: #666;
    box-shadow: none;
}

.grocery-form .interval-info-button[aria-expanded="true"] {
    border-radius: 6px;
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: var(--accent-shadow);
}

.task-list,
.grocery-list,
.event-list {
    display: grid;
    gap: 10px;
}

.calendar-view-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 12px;
    padding: 4px;
    border-radius: 7px;
    background: #f3efed;
}

.calendar-view-toggle a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #5d5552;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.calendar-view-toggle a.is-active {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: var(--accent-shadow);
}

.client-entry-view-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 14px;
    padding: 4px;
    border-radius: 7px;
    background: #f3efed;
}

.client-entry-view-toggle a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #5d5552;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.client-entry-view-toggle a.is-active {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: var(--accent-shadow);
}

.calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.calendar-weekday {
    min-width: 0;
    color: #8a7d78;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.calendar-day {
    position: relative;
    min-height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid #f0e7e5;
    border-radius: 7px;
    background: #fffdfc;
    color: #151515;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.calendar-day.is-empty {
    border-color: transparent;
    background: transparent;
}

.calendar-day.is-today {
    background: #fff0ee;
    color: #d9026f;
}

.calendar-day.is-selected {
    border-color: transparent;
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: var(--accent-shadow);
}

.calendar-day-dots {
    position: absolute;
    bottom: 7px;
    left: 50%;
    display: flex;
    gap: 3px;
    transform: translateX(-50%);
}

.calendar-day-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--calendar-color, #d9026f);
}

.calendar-day.is-selected .calendar-day-dots i {
    background: #fff;
}

.suggested-tasks {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e7e7e0;
}

.suggested-tasks h3 {
    margin: 0;
    color: #6f6763;
    font-size: 14px;
    font-weight: 500;
}

.suggested-task {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px dashed #e2d8d6;
    border-radius: 7px;
    background: #fff9f7;
}

.suggested-task div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.suggested-task span {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 14px;
}

.suggested-task small {
    color: #817874;
    font-size: 12px;
}

.suggested-task form {
    margin: 0;
}

.suggested-task button {
    min-height: 34px;
    border: 0;
    border-radius: 6px;
    padding: 0 12px;
    background: #4f4a48;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.suggested-task .suggested-task-delete button {
    width: 34px;
    padding: 0;
    display: grid;
    place-items: center;
    background: #e8e4e1;
    color: #5d5552;
}

.suggested-task .material-symbols-rounded {
    font-size: 20px;
}

.task-item,
.grocery-item,
.event-item {
    display: grid;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #f0e7e5;
    border-radius: 7px;
    background: #fffdfc;
}

.task-entry {
    display: grid;
    gap: 6px;
}

.task-item {
    grid-template-columns: 28px minmax(0, 1fr) auto auto auto;
}

.task-item .task-more-toggle {
    grid-column: -1;
    justify-self: end;
}

.grocery-item {
    grid-template-columns: 28px minmax(0, 1fr) auto 34px;
}

.grocery-clear-form {
    margin: 10px 0 0;
}

.grocery-clear-form button {
    width: 100%;
    min-height: 40px;
    border: 0;
    border-radius: 6px;
    padding: 0 12px;
    background: var(--accent-gradient);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--accent-shadow);
}

.task-check-button {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 2px solid #d9026f;
    border-radius: 6px;
    background: #fff;
    color: #fff;
    cursor: pointer;
}

.task-more-toggle {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: #5d5552;
    cursor: pointer;
    box-shadow: none;
}

.grocery-item form {
    margin: 0;
}

.grocery-item form:first-child button {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 2px solid #d9026f;
    border-radius: 6px;
    background: #fff;
    color: #fff;
    cursor: pointer;
}

.grocery-item.is-done .grocery-title {
    color: #777;
    text-decoration-line: line-through;
    text-decoration-thickness: 2px;
}

.grocery-quantity {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-left: 6px;
    border-radius: 999px;
    padding: 1px 8px;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.grocery-item.is-done .grocery-quantity {
    color: #777;
    text-decoration-line: line-through;
    text-decoration-thickness: 2px;
}

.grocery-item.is-done form:first-child button {
    border-color: transparent;
    background: var(--accent-gradient);
    color: #fff;
}

.grocery-item form:last-child button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #5d5552;
    cursor: pointer;
}

.shared-grocery-spacer {
    width: 34px;
    height: 34px;
}

.grocery-item .material-symbols-rounded {
    font-size: 20px;
}

.task-item button .material-symbols-rounded {
    font-size: 20px;
}

.task-item button:hover,
.grocery-item button:hover,
.day-arrow:hover,
.dashboard-shortcuts a:hover,
.panel-toggle:hover,
.task-form button:hover,
.grocery-form button:hover,
.calendar-form button:hover {
    opacity: 0.82;
}

.task-item span,
.grocery-item span,
.event-item span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.event-item span {
    font-size: 14px;
}

.task-item small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 13px;
}

.grocery-item small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 13px;
}

.grocery-owner-badge {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #f0ecea;
    color: #5d5552;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.task-owner-badge {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #f0ecea;
    color: #5d5552;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.task-share-badges {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.task-actions-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
    margin: -2px 0 4px;
    padding: 10px;
    border: 1px solid #f0e7e5;
    border-radius: 7px;
    background: #fffdfc;
}

.task-actions-panel[hidden] {
    display: none;
}

.task-action-heading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6f6763;
    font-size: 12px;
    font-weight: 400;
}

.task-action-heading .material-symbols-rounded {
    color: #d9026f;
    font-size: 18px;
}

.task-share-settings,
.task-share-form {
    display: grid;
    gap: 8px;
}

.task-share-settings label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 13px;
}

.task-share-settings button {
    min-height: 34px;
    border: 0;
    border-radius: 6px;
    padding: 0 12px;
    background: var(--accent-gradient);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--accent-shadow);
}

.task-delete-button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 6px;
    padding: 0 12px;
    background: #e8e4e1;
    color: #4f4a48;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.task-delete-button .material-symbols-rounded {
    font-size: 18px;
}

.task-item.is-done .task-title {
    color: #777;
    text-decoration: line-through;
}

.task-item.is-done .task-check-button {
    border-color: transparent;
    background: var(--accent-gradient);
    color: #fff;
}

.event-item {
    grid-template-columns: 90px minmax(0, 1fr) 30px;
}

.event-item time {
    color: #555;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.empty-state {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 16px;
    border: 1px dashed #c8c8bf;
    border-radius: 7px;
    color: #666;
    font-size: 14px;
    background: #fffdfc;
}

.empty-state strong {
    color: #222;
}

.empty-state span {
    line-height: 1.35;
}

.calendar-settings {
    margin-top: 18px;
    border-top: 1px solid #e7e7e0;
    padding-top: 14px;
}

.calendar-settings summary,
.grocery-share-settings summary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #6f6763;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    list-style: none;
}

.calendar-settings summary::-webkit-details-marker,
.grocery-share-settings summary::-webkit-details-marker {
    display: none;
}

.settings-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    color: #d9026f;
    font-size: 22px;
}

.calendar-settings .calendar-form {
    margin-top: 14px;
}

.grocery-share-settings {
    margin-top: 14px;
    border-top: 1px solid #e7e7e0;
    padding-top: 14px;
}

.grocery-share-settings form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.grocery-share-settings label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 14px;
}

.grocery-share-settings button {
    min-height: 38px;
    border: 0;
    border-radius: 6px;
    padding: 0 14px;
    background: var(--accent-gradient);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--accent-shadow);
}

.calendar-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.calendar-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #f0e7e5;
    border-radius: 7px;
    background: #fffdfc;
}

.calendar-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 14px;
    font-weight: 600;
}

.calendar-row span i {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--calendar-color, #d9026f);
}

.calendar-row button {
    min-height: 32px;
    border: 0;
    border-radius: 6px;
    padding: 0 12px;
    background: #e8e4e1;
    color: #5d5552;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.event-item small {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--calendar-color, #d9026f);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.event-item small span {
    display: none;
}

.projects-panel {
    display: grid;
    gap: 14px;
}

.projects-panel h2 {
    margin: 0;
    font-size: 22px;
}

.project-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid #f0e7e5;
    border-radius: 7px;
    background: #fffdfc;
    color: #251f24;
    font-weight: 700;
    text-decoration: none;
}

.project-item img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.project-logo-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.project-item span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.admin-header img {
    width: 140px;
}

.admin-header nav {
    display: flex;
    gap: 18px;
}

.admin-header a {
    color: #d9026f;
}

.admin-section {
    display: grid;
    gap: 14px;
}

.admin-section h1,
.admin-section p {
    margin: 0;
}

.admin-section dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px 18px;
    margin: 10px 0 0;
}

.admin-section dt {
    font-weight: 700;
}

.admin-section dd {
    margin: 0;
}

.login-form {
    width: min(100%, 360px);
    display: grid;
    gap: 16px;
}

.login-form img {
    width: min(70%, 260px);
    margin: 0 auto 16px;
}

.login-form label {
    display: grid;
    gap: 6px;
    font-size: 14px;
    color: #333;
}

.login-form input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #b8b8b8;
    border-radius: 4px;
    padding: 10px 12px;
    font: inherit;
}

.login-form .remember-login {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 8px;
}

.login-form .remember-login input {
    width: auto;
    min-height: auto;
}

.login-form button {
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    background: var(--accent-gradient);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--accent-shadow);
}

.error {
    margin: 0;
    color: #b00020;
    font-size: 14px;
}

.notice {
    margin: 0;
    color: #116329;
    font-size: 14px;
}

.user-table {
    display: grid;
    gap: 1px;
    background: #ddd;
    border: 1px solid #ddd;
}

.create-user-panel {
    border: 1px solid #f0e7e5;
    border-radius: 8px;
    background: #fff;
    padding: 14px;
}

.create-user-panel summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.create-user-panel summary::-webkit-details-marker {
    display: none;
}

.create-user-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: end;
    margin-top: 14px;
}

.create-user-form label,
.create-user-form fieldset {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: #333;
    font-size: 13px;
}

.create-user-form input,
.create-user-form select {
    min-height: 38px;
    border: 1px solid #eadfdd;
    border-radius: 4px;
    padding: 8px 10px;
    background: #fff;
    font: inherit;
}

.create-user-form fieldset {
    border: 1px solid #eadfdd;
    border-radius: 4px;
    padding: 7px 10px;
}

.create-user-form fieldset label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.create-user-form fieldset input {
    min-height: auto;
}

.create-user-form button {
    min-height: 38px;
    border: 0;
    border-radius: 6px;
    padding: 0 14px;
    background: var(--accent-gradient);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--accent-shadow);
}

.user-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr 130px 1fr 1fr 90px;
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: #fff;
}

.user-row-head {
    font-weight: 700;
    background: #f6f6f6;
}

.user-row select,
.user-row button {
    min-height: 38px;
    font: inherit;
}

.user-row select {
    border: 1px solid #b8b8b8;
    border-radius: 4px;
    padding: 6px 8px;
    background: #fff;
}

.user-row button {
    border: 0;
    border-radius: 6px;
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--accent-shadow);
}

.user-row button:disabled {
    background: #e4ddd9;
    color: #928a86;
    box-shadow: none;
    cursor: default;
}

.project-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.project-badges small {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 0 10px;
    background: #fff0ee;
    color: #d9026f;
    font-size: 12px;
    font-weight: 600;
}

.project-badges small:first-child:last-child {
    background: #f0ecea;
    color: #6f6763;
}

.client-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
    align-items: start;
}

.client-card {
    border: 1px solid #f0e7e5;
    border-radius: 8px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 16px 35px rgba(37, 31, 36, 0.06);
}

.client-form,
.client-time-form {
    display: grid;
    gap: 12px;
}

.client-time-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
}

.client-form label,
.client-time-form label {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: #333;
    font-size: 13px;
}

.client-form input,
.client-form textarea,
.client-time-form input,
.client-time-form select,
.client-time-form textarea,
.client-hours-form input,
.client-date-form input {
    width: 100%;
    min-height: 38px;
    border: 1px solid #eadfdd;
    border-radius: 4px;
    padding: 8px 10px;
    background: #fff;
    font: inherit;
}

.client-form textarea,
.client-time-form textarea {
    resize: vertical;
}

.client-task-field,
.client-notes-field {
    grid-column: 1 / -1;
}

.client-form button,
.client-time-form button,
.client-hours-form button,
.client-date-form button {
    min-height: 38px;
    border: 0;
    border-radius: 6px;
    padding: 0 14px;
    background: var(--accent-gradient);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--accent-shadow);
}

.client-date-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.client-date-form label {
    display: grid;
    gap: 4px;
    min-width: 0;
    color: #333;
    font-size: 12px;
}

.client-entry-list,
.client-summary-list {
    display: grid;
    gap: 8px;
}

.client-entry-group {
    display: grid;
    gap: 8px;
}

.client-entry-group + .client-entry-group {
    margin-top: 12px;
}

.client-entry-plain-group {
    gap: 10px;
}

.client-entry-group-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 2px;
}

.client-entry-group-heading h3 {
    margin: 0;
    font-size: 16px;
}

.client-entry-group-heading span {
    color: #666;
    font-size: 13px;
    font-weight: 600;
}

.client-entry-row,
.client-summary-row {
    display: grid;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    border: 1px solid #f0e7e5;
    border-radius: 7px;
    padding: 10px 12px;
    background: #fffdfc;
}

.client-entry-row {
    grid-template-columns: 1fr minmax(0, 1.4fr) 90px 130px minmax(0, 1fr) 90px auto;
}

.client-summary-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.client-entry-row label,
.client-entry-row span,
.client-summary-row strong,
.client-summary-main {
    min-width: 0;
    overflow-wrap: anywhere;
}

.client-entry-row label {
    display: grid;
    gap: 4px;
    color: #333;
    font-size: 12px;
}

.client-entry-row input,
.client-entry-row select {
    width: 100%;
    min-height: 34px;
    border: 1px solid #eadfdd;
    border-radius: 4px;
    padding: 6px 8px;
    background: #fff;
    font: inherit;
}

.client-entry-row small,
.client-summary-row small,
.client-summary-row span {
    color: #666;
    font-size: 13px;
}

.client-summary-main {
    display: grid;
    gap: 3px;
}

.client-summary-total {
    justify-self: end;
    color: #333;
    font-weight: 700;
    white-space: nowrap;
}

.client-month-list {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.client-month-list span,
.client-month-list small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    border-radius: 999px;
    padding: 3px 9px;
    background: #f7f2f0;
    color: #5d5552;
    font-size: 12px;
}

.client-month-list strong {
    color: #333;
    font-size: 12px;
}

.client-entry-actions {
    display: flex;
    align-items: end;
    gap: 6px;
}

.client-entry-actions button {
    min-height: 34px;
    border: 0;
    border-radius: 6px;
    padding: 0 10px;
    background: var(--accent-gradient);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--accent-shadow);
}

.client-entry-actions button:last-child {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: #5d5552;
    box-shadow: none;
}

.client-plain-text {
    width: 100%;
    min-height: 120px;
    border: 1px solid #f0e7e5;
    border-radius: 7px;
    padding: 14px;
    background: #fffdfc;
    color: #251f24;
    font: 13px/1.6 Consolas, 'Courier New', monospace;
    resize: vertical;
    white-space: pre;
}

.client-plain-text:focus {
    border-color: #d9026f;
    outline: 2px solid rgba(217, 2, 111, 0.16);
    outline-offset: 1px;
}

.life-admin-page {
    width: min(100% - 40px, 1180px);
}

.life-admin-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.life-admin-hero h1,
.life-admin-hero p {
    margin: 0;
}

.life-admin-hero h1 {
    font-size: 42px;
    line-height: 1;
}

.life-admin-hero p {
    margin-top: 6px;
    color: #666;
}

.life-month-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.life-month-nav a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 0 12px;
    background: var(--accent-gradient);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    box-shadow: var(--accent-shadow);
}

.life-month-nav a.is-current {
    background: #e8e4e1;
    color: #9a9390;
    box-shadow: none;
}

.life-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.life-admin-card,
.life-share-settings {
    border: 1px solid #f0e7e5;
    border-radius: 8px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 16px 35px rgba(37, 31, 36, 0.06);
}

.life-task-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.life-task-form .life-stage-field {
    grid-column: 1;
    grid-row: 2;
}

.life-task-form .life-repeat-field {
    grid-column: 2;
    grid-row: 2;
}

.life-task-form .life-suggest-field {
    grid-column: 3;
    grid-row: 2;
}

.life-task-form > button {
    grid-column: 5;
    grid-row: 1;
}

.life-task-form label,
.life-task-row label {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: #333;
    font-size: 13px;
}

.life-title-field {
    grid-column: span 2;
}

.life-task-form input,
.life-task-form select,
.life-task-row input,
.life-task-row select,
.life-task-row textarea {
    width: 100%;
    min-height: 38px;
    border: 1px solid #eadfdd;
    border-radius: 4px;
    padding: 8px 10px;
    background: #fff;
    font: inherit;
}

.life-task-row textarea {
    resize: vertical;
}

.life-task-form button,
.life-task-actions button,
.life-suggestion-list button,
.life-share-settings button {
    min-height: 38px;
    border: 0;
    border-radius: 6px;
    padding: 0 12px;
    background: var(--accent-gradient);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--accent-shadow);
}

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

.life-stage-card {
    margin-bottom: 18px;
}

.life-stage-guide {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.life-stage-guide article {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
    border: 1px solid #f0e7e5;
    border-radius: 7px;
    padding: 12px;
    background: linear-gradient(180deg, #fffdfc 0%, #fff8f5 100%);
}

.life-stage-guide article > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(217, 2, 111, 0.18);
}

.life-stage-guide h3,
.life-stage-guide p,
.life-stage-guide small {
    margin: 0;
}

.life-stage-guide h3 {
    color: #151515;
    font-size: 15px;
    line-height: 1.2;
}

.life-stage-guide p {
    margin-top: 5px;
    color: #5d5552;
    font-size: 13px;
    line-height: 1.4;
}

.life-stage-guide small {
    display: block;
    margin-top: 8px;
    color: #8a7d78;
    font-size: 12px;
    line-height: 1.35;
}

.life-suggestion-list form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    border: 1px solid #f0e7e5;
    border-radius: 7px;
    padding: 8px 10px;
    background: #fffdfc;
}

.life-suggestion-list span {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 14px;
}

.life-suggestion-list button {
    width: 34px;
    min-height: 34px;
    padding: 0;
    font-size: 20px;
}

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

.life-task-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) 140px 130px 120px 120px 58px 28px auto;
    gap: 10px;
    align-items: end;
    border: 1px solid #f0e7e5;
    border-radius: 7px;
    padding: 12px;
    background: #fffdfc;
}

.life-task-row textarea {
    grid-column: span 2;
}

.life-task-row.is-complete {
    opacity: 0.68;
}

.life-subtasks {
    display: grid;
    gap: 8px;
    margin-top: -4px;
    margin-bottom: 8px;
    border: 1px solid #f3ebe8;
    border-radius: 7px;
    padding: 12px;
    background: #fffaf8;
}

.life-subtasks-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.life-subtasks-head strong {
    color: #151515;
    font-size: 14px;
}

.life-subtasks-head span {
    color: #8a7d78;
    font-size: 12px;
}

.life-subtask-list {
    display: grid;
    gap: 7px;
}

.life-subtask-row,
.life-subtask-add {
    display: grid;
    grid-template-columns: 34px minmax(180px, 1fr) 130px 150px 58px auto;
    gap: 8px;
    align-items: center;
}

.life-subtask-add {
    grid-template-columns: minmax(180px, 1fr) 130px 150px 38px;
}

.life-subtask-row input,
.life-subtask-row select,
.life-subtask-add input,
.life-subtask-add select {
    width: 100%;
    min-height: 36px;
    border: 1px solid #eadfdd;
    border-radius: 4px;
    padding: 7px 10px;
    background: #fff;
    font: inherit;
    font-size: 13px;
}

.life-subtask-row.is-complete input {
    color: #8a7d78;
    text-decoration: line-through;
}

.life-subtask-check,
.life-subtask-actions button:last-child {
    width: 34px;
    min-height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: #5d5552;
    box-shadow: none;
    cursor: pointer;
}

.life-subtask-check span {
    font-size: 22px;
}

.life-subtask-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.life-subtask-actions button,
.life-subtask-add button {
    min-height: 36px;
    border: 0;
    border-radius: 6px;
    padding: 0 12px;
    background: var(--accent-gradient);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--accent-shadow);
}

.life-subtask-add button {
    width: 38px;
    padding: 0;
    font-size: 20px;
}

.life-subtask-actions button:last-child {
    background: transparent;
    color: #5d5552;
    box-shadow: none;
}

.life-points {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff0ee;
    color: #d9026f;
    font-size: 12px;
    font-weight: 700;
}

.life-task-row small {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f0ecea;
    color: #5d5552;
    font-size: 12px;
    font-weight: 700;
}

.life-task-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.life-task-actions button:last-child {
    width: 34px;
    min-height: 34px;
    display: grid;
    place-items: center;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: #5d5552;
    box-shadow: none;
}

.life-share-settings {
    margin-top: 18px;
}

.life-share-settings summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
}

.life-share-settings summary::-webkit-details-marker {
    display: none;
}

.life-share-settings form {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.life-share-settings label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    margin-top: 34px;
}

.profile-form {
    display: grid;
    gap: 16px;
}

.profile-form h2 {
    margin: 0;
    font-size: 18px;
}

.profile-form label {
    display: grid;
    gap: 6px;
    font-size: 14px;
}

.profile-form input {
    min-height: 44px;
    border: 1px solid #b8b8b8;
    border-radius: 4px;
    padding: 10px 12px;
    font: inherit;
}

.profile-form button {
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    background: var(--accent-gradient);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--accent-shadow);
}

.profile-form button:disabled {
    background: #e4ddd9;
    color: #928a86;
    box-shadow: none;
    cursor: default;
}

.notification-form {
    grid-column: 1 / -1;
    border-top: 1px solid #eadfdd;
    padding-top: 24px;
}

.notification-help {
    color: #666;
    font-size: 14px;
}

.notification-permission {
    display: flex;
    align-items: center;
    gap: 14px;
}

.notification-permission button {
    width: auto;
    padding: 0 18px;
}

.notification-permission span,
.notification-form small {
    color: #666;
    font-size: 13px;
}

.profile-form .notification-time-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px;
    align-items: center;
    gap: 14px;
}

.notification-time-row span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-form .notification-time-row input[type="checkbox"] {
    width: auto;
    min-height: auto;
}

.kanban-page {
    width: calc(100% - 40px);
    max-width: none;
    display: flex;
    flex-direction: column;
}

.kanban-head {
    order: 1;
    margin-bottom: 18px;
}

.kanban-settings {
    display: flex;
    justify-content: flex-end;
}

.kanban-settings label {
    display: grid;
    gap: 6px;
    color: #6f6763;
    font-size: 13px;
    font-weight: 500;
}

.kanban-settings select {
    min-height: 38px;
    border: 1px solid #eadfdd;
    border-radius: 4px;
    padding: 8px 34px 8px 10px;
    background: #fff;
    color: #251f24;
    font: inherit;
}

.kanban-metrics {
    order: 4;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.kanban-metrics div {
    min-width: 0;
    border: 1px solid #f0e7e5;
    border-radius: 8px;
    padding: 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(37, 31, 36, 0.05);
}

.kanban-metrics span {
    display: block;
    color: #251f24;
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
}

.kanban-metrics small {
    display: block;
    margin-top: 6px;
    color: #746b67;
    font-size: 12px;
}

.kanban-workspace {
    order: 2;
    overflow: hidden;
    margin-bottom: 18px;
}

.kanban-admin-grid {
    order: 5;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.kanban-task-form,
.kanban-project-form {
    display: grid;
    gap: 12px;
}

.kanban-task-form {
    grid-template-columns: minmax(170px, 1.25fr) minmax(120px, 0.8fr) minmax(110px, 0.7fr) repeat(2, minmax(128px, 0.75fr)) auto;
    align-items: end;
    border: 1px solid #f0e7e5;
    border-radius: 8px;
    padding: 14px;
    background: #fffdfc;
}

.kanban-title-field {
    grid-column: 1 / -1;
}

.kanban-comment-field {
    grid-column: 1 / -2;
}

.kanban-task-form label,
.kanban-project-form label {
    display: grid;
    gap: 6px;
    color: #333;
    font-size: 13px;
    font-weight: 600;
}

.kanban-task-form input,
.kanban-task-form select,
.kanban-task-form textarea,
.kanban-project-form input,
.kanban-inline-form input,
.kanban-inline-form select,
.kanban-todo-form input {
    width: 100%;
    min-height: 38px;
    border: 1px solid #eadfdd;
    border-radius: 6px;
    padding: 9px 10px;
    background: #fff;
    color: #251f24;
    font: inherit;
    font-size: 13px;
}

.kanban-task-form textarea {
    min-height: 42px;
    resize: vertical;
}

.kanban-title-field input {
    min-height: 46px;
    border-color: #d9026f;
    font-size: 15px;
}

.kanban-task-form input:focus,
.kanban-task-form select:focus {
    border-color: #d9026f;
    outline: 2px solid rgba(217, 2, 111, 0.14);
    outline-offset: 1px;
}

.kanban-task-form button,
.kanban-project-form button,
.kanban-inline-form button,
.kanban-todo-form button {
    min-height: 38px;
    border: 0;
    border-radius: 6px;
    padding: 0 12px;
    background: var(--accent-gradient);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--accent-shadow);
}

.kanban-task-form > button[type="submit"] {
    min-width: 96px;
    min-height: 40px;
}

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

.kanban-project-row {
    min-height: 42px;
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid #f0e7e5;
    border-radius: 7px;
    padding: 10px 12px;
    background: #fffdfc;
}

.kanban-project-row > span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--project-color, #d9026f);
}

.kanban-project-row strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 14px;
}

.kanban-project-row small {
    color: #746b67;
    font-size: 12px;
}

.kanban-project-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    margin-top: 14px;
}

.kanban-toolbar {
    align-items: start;
}

.kanban-view-switcher {
    display: grid;
    grid-template-columns: repeat(3, 38px);
    gap: 4px;
    padding: 4px;
    border-radius: 7px;
    background: #f3efed;
}

.kanban-view-switcher button {
    width: 38px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #5d5552;
    cursor: pointer;
}

.kanban-view-switcher button[aria-pressed="true"] {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: var(--accent-shadow);
}

.kanban-view-switcher .material-symbols-rounded {
    font-size: 21px;
}

.kanban-board-shell {
    display: grid;
    gap: 12px;
    --timeline-day-width: 108px;
    --timeline-label-width: 250px;
}

.kanban-column-heads {
    display: grid;
    grid-template-columns: repeat(var(--status-count), minmax(180px, 1fr));
    gap: 12px;
}

.kanban-column-heads div {
    min-height: 44px;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border: 1px solid #f0e7e5;
    border-radius: 7px;
    padding: 10px;
    background: #fffdfc;
}

.kanban-column-heads .material-symbols-rounded {
    color: #d9026f;
    font-size: 21px;
}

.kanban-column-heads strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 13px;
}

.kanban-column-heads small {
    color: #746b67;
    font-size: 12px;
    font-weight: 700;
}

.timeline-scale {
    display: none;
    grid-template-columns: repeat(var(--timeline-days), var(--timeline-day-width));
    gap: 0;
    width: max-content;
    min-width: 100%;
}

.timeline-scale span {
    min-height: 30px;
    display: grid;
    place-items: center;
    border-radius: 0;
    color: #746b67;
    background: #fffdfc;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: inset -1px 0 #eadfdd;
}

.timeline-scale span.is-today {
    background: #fff0ee;
    color: #d9026f;
}

.timeline-scale span.is-weekend {
    background: #f3f1f0;
}

.timeline-week-scale {
    display: none;
    grid-template-columns: repeat(var(--timeline-days), var(--timeline-day-width));
    gap: 0;
    width: max-content;
    min-width: 100%;
}

.timeline-week-scale span {
    min-height: 28px;
    display: grid;
    place-items: center;
    background: #f6f1ef;
    color: #5d5552;
    font-size: 12px;
    font-weight: 700;
    box-shadow: inset -1px 0 #eadfdd, inset 0 -1px #eadfdd;
}

.timeline-day-actions {
    display: none;
    grid-template-columns: repeat(var(--timeline-days), var(--timeline-day-width));
    gap: 0;
    width: max-content;
    min-width: 100%;
}

.timeline-day-actions button {
    min-height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    background: #fff;
    color: #b3aaa6;
    cursor: pointer;
    box-shadow: inset -1px 0 #eadfdd, inset 0 -1px #f0e7e5;
}

.timeline-day-actions button.is-weekend {
    background: #f3f1f0;
}

.timeline-day-actions button:hover,
.timeline-day-actions button:focus {
    background: #fff0ee;
    color: #d9026f;
    outline: none;
}

.timeline-day-actions .material-symbols-rounded {
    font-size: 18px;
    opacity: 0;
    transition: opacity 160ms ease;
}

.timeline-day-actions button:hover .material-symbols-rounded,
.timeline-day-actions button:focus .material-symbols-rounded {
    opacity: 1;
}

.kanban-task-stage {
    display: grid;
    grid-template-columns: repeat(var(--status-count), minmax(180px, 1fr));
    grid-auto-rows: minmax(136px, auto);
    gap: 12px;
    align-items: start;
}

.kanban-lane {
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
}

.kanban-workspace[data-view="kanban"] .kanban-task-stage {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
}

.kanban-project-group {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding-top: 6px;
}

.kanban-project-group + .kanban-project-group {
    padding-top: 16px;
    border-top: 1px solid #f0e7e5;
}

.kanban-project-group-head {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    color: #251f24;
}

.kanban-project-group-head span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--project-color, #d9026f);
}

.kanban-project-group-head strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 14px;
}

.kanban-project-group-head small {
    color: #746b67;
    font-size: 12px;
    font-weight: 700;
}

.kanban-project-lanes {
    display: grid;
    grid-template-columns: repeat(var(--status-count), minmax(180px, 1fr));
    gap: 12px;
    align-items: start;
}

.kanban-workspace[data-view="kanban"] .kanban-lane {
    min-height: 74px;
    border: 1px solid #f0e7e5;
    border-radius: 7px;
    padding: 8px;
    background: #fffdfc;
}

.kanban-workspace[data-view="kanban"] .kanban-task-card {
    grid-column: auto;
}

.timeline-stage-days {
    display: none;
}

.kanban-empty {
    grid-column: 1 / -1;
}

.kanban-task-card {
    grid-column: var(--kanban-column);
    position: relative;
    min-width: 0;
    min-height: 106px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    border: 1px solid #f0e7e5;
    border-radius: 7px;
    padding: 12px;
    background: #fffdfc;
    box-shadow: 0 10px 22px rgba(37, 31, 36, 0.05);
    transition: grid-column 360ms ease, min-height 300ms ease, padding 300ms ease, background 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.kanban-resize-handle {
    display: none;
}

.kanban-task-card[data-status="planned"] {
    --kanban-state-bg: var(--kanban-planned-bg);
    --kanban-state-border: var(--kanban-planned-border);
    --kanban-state-accent: var(--kanban-planned-accent);
    border-color: var(--kanban-state-border);
    background: var(--kanban-state-bg);
}

.kanban-task-card[data-status="in_progress"] {
    --kanban-state-bg: var(--kanban-progress-bg);
    --kanban-state-border: var(--kanban-progress-border);
    --kanban-state-accent: var(--kanban-progress-accent);
    border-color: var(--kanban-state-border);
    background: var(--kanban-state-bg);
}

.kanban-task-card[data-status="review"] {
    --kanban-state-bg: var(--kanban-review-bg);
    --kanban-state-border: var(--kanban-review-border);
    --kanban-state-accent: var(--kanban-review-accent);
    border-color: var(--kanban-state-border);
    background: var(--kanban-state-bg);
}

.kanban-task-card[data-status="done"] {
    --kanban-state-bg: var(--kanban-done-bg);
    --kanban-state-border: var(--kanban-done-border);
    --kanban-state-accent: var(--kanban-done-accent);
    border-color: var(--kanban-state-border);
    background: var(--kanban-state-bg);
}

.kanban-task-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.kanban-task-main strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 14px;
}

.kanban-task-main small,
.kanban-status-label {
    color: #746b67;
    font-size: 12px;
}

.kanban-subtask-update-form {
    display: none;
}

.kanban-status-label {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 2px 8px;
    border: 1px solid var(--kanban-state-border, #e6e4e2);
    background: var(--kanban-state-bg, #fff);
    color: var(--kanban-state-accent, #746b67);
    white-space: nowrap;
}

.kanban-edit-toggle {
    grid-column: 3;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: #5d5552;
    cursor: pointer;
}

.kanban-edit-toggle .material-symbols-rounded {
    font-size: 19px;
}

.kanban-task-card.is-editing {
    min-height: 154px;
    border-color: #eadfdd;
    box-shadow: 0 14px 28px rgba(37, 31, 36, 0.08);
}

.kanban-task-card.is-done .kanban-task-main strong {
    color: #777;
    text-decoration: line-through;
}

.kanban-task-card.is-overdue {
    border-color: #ffd1c7;
    padding-right: 38px;
    background: #fff8f5;
}

.kanban-task-card.is-overdue::after {
    content: "!";
    position: absolute;
    top: 50%;
    right: 10px;
    z-index: 4;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e3362d;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    transform: translateY(-50%);
    box-shadow: 0 6px 14px rgba(227, 54, 45, 0.24);
    pointer-events: none;
}

.kanban-task-card.is-kanban-dragging {
    opacity: 0.58;
    will-change: transform;
    transform: rotate(1deg);
    box-shadow: 0 18px 34px rgba(37, 31, 36, 0.14);
}

.kanban-workspace[data-view="kanban"] .kanban-task-card {
    cursor: grab;
}

.kanban-subtask-card {
    min-height: 72px;
    margin-left: 16px;
    border-style: dashed;
    box-shadow: none;
}

.kanban-subtask-card::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 18px;
    bottom: 18px;
    width: 2px;
    border-radius: 999px;
    background: var(--project-color, #d9026f);
    opacity: 0.32;
}

.kanban-subtask-card .kanban-task-main strong {
    font-size: 13px;
}

.kanban-workspace[data-view="list"] .kanban-column-heads {
    grid-template-columns: 1fr;
}

.kanban-workspace[data-view="list"] .kanban-column-heads div {
    display: none;
}

.kanban-workspace[data-view="list"] .kanban-task-stage {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(52px, auto);
}

.kanban-workspace[data-view="list"] .kanban-task-card {
    grid-column: 1;
    min-height: 72px;
    grid-template-columns: minmax(0, 1fr) 100px 32px;
    padding: 10px 12px;
    box-shadow: none;
}

.kanban-workspace[data-view="list"] .kanban-task-card.is-editing {
    min-height: 132px;
}

.kanban-workspace[data-view="timeline"] .kanban-column-heads {
    display: none;
}

.kanban-workspace[data-view="timeline"] .timeline-scale {
    display: grid;
}

.kanban-workspace[data-view="timeline"] .timeline-week-scale,
.kanban-workspace[data-view="timeline"] .timeline-day-actions {
    display: grid;
}

.kanban-workspace[data-view="timeline"] .timeline-week-scale,
.kanban-workspace[data-view="timeline"] .timeline-scale,
.kanban-workspace[data-view="timeline"] .timeline-day-actions {
    margin-left: var(--timeline-label-width);
}

.kanban-workspace[data-view="timeline"] .kanban-board-shell {
    overflow-x: auto;
    gap: 0;
    box-shadow: inset 1px 0 #eadfdd;
    cursor: grab;
    user-select: none;
}

.kanban-workspace[data-view="timeline"] .kanban-board-shell.is-panning {
    cursor: grabbing;
}

.kanban-workspace[data-view="timeline"] .kanban-task-stage {
    position: relative;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 14px;
    width: max-content;
    min-width: 100%;
    padding-bottom: 4px;
}

.kanban-workspace[data-view="timeline"] .kanban-task-stage > .timeline-stage-days {
    display: none;
}

.kanban-workspace[data-view="timeline"] .kanban-project-group {
    grid-template-columns: var(--timeline-label-width) max-content;
    gap: 0;
    align-items: stretch;
    width: max-content;
    min-width: 100%;
}

.kanban-workspace[data-view="timeline"] .kanban-project-group-head {
    position: sticky;
    left: 0;
    z-index: 3;
    min-height: 44px;
    align-self: stretch;
    align-content: center;
    border-right: 1px solid #eadfdd;
    padding: 10px 14px;
    background: #fff;
    box-shadow: 8px 0 14px rgba(37, 31, 36, 0.04);
}

.kanban-workspace[data-view="timeline"] .kanban-project-group + .kanban-project-group {
    padding-top: 0;
}

.kanban-timeline-project-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--timeline-days), var(--timeline-day-width));
    grid-auto-rows: 44px;
    gap: 0;
    width: max-content;
    min-width: 100%;
}

.kanban-workspace[data-view="timeline"] .kanban-timeline-project-grid .timeline-stage-days {
    position: absolute;
    inset: 0 0 4px 0;
    display: grid;
    grid-template-columns: repeat(var(--timeline-days), var(--timeline-day-width));
    width: max-content;
    min-width: 100%;
    pointer-events: none;
}

.kanban-workspace[data-view="timeline"] .kanban-timeline-project-grid .timeline-stage-days span {
    min-width: 0;
    box-shadow: inset -1px 0 #eadfdd;
}

.kanban-workspace[data-view="timeline"] .kanban-timeline-project-grid .timeline-stage-days span.is-weekend {
    background: #f3f1f0;
}

.kanban-workspace[data-view="timeline"] .kanban-task-card {
    grid-column: var(--timeline-start) / span var(--timeline-span);
    z-index: 1;
    min-height: 38px;
    grid-template-columns: minmax(0, 1fr);
    padding: 8px 10px;
    border-color: var(--kanban-state-border, transparent);
    background: var(--kanban-state-bg, #fff);
    box-shadow: 0 8px 18px rgba(37, 31, 36, 0.08);
    cursor: grab;
    touch-action: none;
}

.kanban-workspace[data-view="timeline"] .kanban-timeline-project-grid {
    grid-auto-rows: minmax(44px, auto);
}

.kanban-workspace[data-view="timeline"] .kanban-subtask-card {
    min-height: 32px;
    margin-left: 0;
    border-style: dashed;
    opacity: 0.92;
}

.kanban-workspace[data-view="timeline"] .kanban-subtask-card::before {
    display: none;
}

.kanban-workspace[data-view="timeline"] .kanban-task-card:hover {
    box-shadow: 0 12px 26px rgba(37, 31, 36, 0.13);
}

.kanban-workspace[data-view="timeline"] .kanban-task-card.is-resizing,
.kanban-workspace[data-view="timeline"] .kanban-task-card.is-dragging {
    z-index: 2;
    will-change: transform;
    box-shadow: 0 12px 26px rgba(37, 31, 36, 0.18);
    transition: none;
}

.kanban-workspace[data-view="timeline"] .kanban-task-card.is-dragging {
    cursor: grabbing;
}

.kanban-workspace[data-view="timeline"] .kanban-resize-handle {
    position: absolute;
    top: 5px;
    bottom: 5px;
    z-index: 3;
    width: 10px;
    display: block;
    border-radius: 999px;
    background: rgba(217, 2, 111, 0.2);
    cursor: ew-resize;
    opacity: 0;
    transition: opacity 160ms ease, background 160ms ease;
    touch-action: none;
}

.kanban-workspace[data-view="timeline"] .kanban-resize-handle.is-left {
    left: 3px;
}

.kanban-workspace[data-view="timeline"] .kanban-resize-handle.is-right {
    right: 3px;
}

.kanban-workspace[data-view="timeline"] .kanban-task-card:hover .kanban-resize-handle,
.kanban-workspace[data-view="timeline"] .kanban-task-card.is-resizing .kanban-resize-handle {
    opacity: 1;
}

.kanban-workspace[data-view="timeline"] .kanban-resize-handle:hover {
    background: rgba(217, 2, 111, 0.38);
}

.kanban-inline-form {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(110px, 0.8fr) minmax(92px, 0.6fr) minmax(120px, 0.75fr) minmax(120px, 0.75fr) 38px;
    gap: 8px;
    padding-top: 2px;
}

.kanban-inline-form[hidden] {
    display: none;
}

.kanban-inline-form button {
    width: 38px;
    padding: 0;
    display: grid;
    place-items: center;
}

.kanban-delete-form {
    grid-column: 1 / -1;
}

.kanban-delete-form[hidden] {
    display: none;
}

.kanban-delete-form button,
.kanban-detail-delete-form button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 6px;
    padding: 0 12px;
    background: #e8e4e1;
    color: #4f4a48;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.kanban-delete-form .material-symbols-rounded,
.kanban-detail-delete-form .material-symbols-rounded {
    font-size: 18px;
}

.kanban-inline-form .material-symbols-rounded {
    font-size: 19px;
}

.kanban-todo-form {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto;
    justify-content: start;
    gap: 8px;
}

.kanban-todo-form input {
    display: none;
}

.kanban-todo-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.kanban-todo-form button:disabled {
    background: #e8e4e1;
    color: #6f6763;
    box-shadow: none;
    cursor: default;
}

.kanban-todo-form .material-symbols-rounded {
    font-size: 18px;
}

.kanban-workspace[data-view="timeline"] .kanban-task-main small,
.kanban-workspace[data-view="timeline"] .kanban-status-label,
.kanban-workspace[data-view="timeline"] .kanban-edit-toggle,
.kanban-workspace[data-view="timeline"] .kanban-inline-form,
.kanban-workspace[data-view="timeline"] .kanban-todo-form {
    display: none;
}

.kanban-workspace[data-view="timeline"] .kanban-task-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kanban-detail-panel {
    order: 3;
    margin-top: 18px;
    margin-bottom: 18px;
    border: 1px solid #f0e7e5;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 16px 35px rgba(37, 31, 36, 0.06);
}

.kanban-detail-panel[hidden],
.kanban-detail-card[hidden] {
    display: none;
}

.kanban-detail-close {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #5d5552;
    cursor: pointer;
}

.kanban-detail-close .material-symbols-rounded {
    font-size: 21px;
}

.kanban-detail-card {
    display: grid;
    gap: 14px;
}

.kanban-detail-head {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.kanban-detail-head > span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--kanban-state-accent, var(--kanban-planned-accent));
}

.kanban-detail-head[data-status="planned"] {
    --kanban-state-accent: var(--kanban-planned-accent);
}

.kanban-detail-head[data-status="in_progress"] {
    --kanban-state-accent: var(--kanban-progress-accent);
}

.kanban-detail-head[data-status="review"] {
    --kanban-state-accent: var(--kanban-review-accent);
}

.kanban-detail-head[data-status="done"] {
    --kanban-state-accent: var(--kanban-done-accent);
}

.kanban-detail-head div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.kanban-detail-head strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 18px;
}

.kanban-detail-head small {
    color: #746b67;
    font-size: 13px;
}

.kanban-detail-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.kanban-detail-meta div {
    border: 1px solid #f0e7e5;
    border-radius: 7px;
    padding: 10px;
    background: #fffdfc;
}

.kanban-detail-meta dt {
    margin: 0 0 4px;
    color: #746b67;
    font-size: 12px;
}

.kanban-detail-meta dd {
    margin: 0;
    color: #251f24;
    font-size: 14px;
    font-weight: 700;
}

.kanban-subtasks,
.kanban-comments {
    display: grid;
    gap: 10px;
    border-top: 1px solid #f0e7e5;
    padding-top: 14px;
}

.kanban-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.kanban-section-heading small {
    color: #746b67;
    font-size: 12px;
    font-weight: 700;
}

.kanban-comments h3,
.kanban-section-heading h3 {
    margin: 0;
    font-size: 16px;
}

.kanban-subtask-list {
    display: grid;
    gap: 6px;
}

.kanban-subtask {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 8px;
    border: 1px solid #f0e7e5;
    border-radius: 7px;
    padding: 7px 8px;
    background: #fffdfc;
}

.kanban-subtask span {
    min-width: 0;
    color: #251f24;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.kanban-subtask span small {
    display: block;
    margin-top: 2px;
    color: #746b67;
    font-size: 11px;
    text-decoration: none;
}

.kanban-subtask.is-done span {
    color: #777;
    text-decoration: line-through;
}

.kanban-subtask form {
    margin: 0;
}

.kanban-subtask button {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    padding: 0;
    background: transparent;
    color: #746b67;
    cursor: pointer;
}

.kanban-subtask button:hover,
.kanban-subtask button:focus {
    background: #fff0ee;
    color: #d9026f;
    outline: none;
}

.kanban-subtask-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(128px, 0.35fr) minmax(128px, 0.35fr) 38px;
    gap: 8px;
}

.kanban-subtask-form input {
    width: 100%;
    min-height: 38px;
    border: 1px solid #eadfdd;
    border-radius: 4px;
    padding: 0 10px;
    font: inherit;
}

.kanban-subtask-form button {
    min-height: 38px;
    border: 0;
    border-radius: 6px;
    padding: 0;
    background: var(--accent-gradient);
    color: #fff;
    cursor: pointer;
}

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

.kanban-comment {
    display: grid;
    gap: 7px;
    border: 1px solid #f0e7e5;
    border-radius: 7px;
    padding: 10px 12px;
    background: #fffdfc;
}

.kanban-comment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.kanban-comment strong {
    font-size: 13px;
}

.kanban-comment p {
    margin: 0;
    color: #251f24;
    font-size: 14px;
    line-height: 1.45;
}

.kanban-comment small {
    color: #746b67;
    font-size: 12px;
}

.kanban-comment-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kanban-comment-actions form {
    margin: 0;
}

.kanban-comment-actions button {
    min-height: 30px;
    border: 0;
    border-radius: 6px;
    padding: 0 10px;
    background: #e8e4e1;
    color: #4f4a48;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.kanban-comment-actions form button {
    color: #7a3b36;
}

.kanban-comment-form,
.kanban-comment-edit-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.kanban-comment-edit-form[hidden] {
    display: none;
}

.kanban-comment-form textarea,
.kanban-comment-edit-form textarea {
    width: 100%;
    min-height: 76px;
    border: 1px solid #eadfdd;
    border-radius: 4px;
    padding: 8px 10px;
    background: #fff;
    color: #251f24;
    font: inherit;
    resize: vertical;
}

.kanban-comment-form button,
.kanban-comment-edit-form button {
    min-height: 38px;
    border: 0;
    border-radius: 6px;
    padding: 0 12px;
    background: var(--accent-gradient);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--accent-shadow);
}

.kanban-detail-delete-form {
    border-top: 1px solid #f0e7e5;
    padding-top: 12px;
}

@media (max-width: 720px) {
    .top-menu {
        position: static;
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .top-menu nav {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-top: 4px;
    }

    .top-menu nav.is-open {
        display: flex;
    }

    .top-menu nav a {
        min-height: 42px;
        display: flex;
        align-items: center;
        border-top: 1px solid #f0e9e8;
    }

    .menu-toggle {
        display: grid;
        margin-left: 0;
    }

    .notification-popover {
        position: fixed;
        top: 68px;
        right: 14px;
        left: 14px;
        width: auto;
        max-height: calc(100vh - 82px);
    }

    .dashboard-page,
    .admin-page {
        width: min(100% - 28px, 820px);
        padding-top: 30px;
    }

    .dashboard-date-nav {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dashboard-day {
        grid-template-columns: 1fr;
    }

    .day-arrow {
        width: 34px;
        height: 34px;
    }

    .dashboard-date-nav h1 {
        font-size: 32px;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .task-form,
    .grocery-form {
        margin-top: 14px;
    }

    .task-form input,
    .grocery-form input {
        min-height: 40px;
        border-color: #d9026f;
        border-radius: 4px;
        padding: 8px 10px;
    }

    .task-form .repeat-options summary,
    .grocery-form .repeat-options summary {
        border-color: #e8e4e1;
        background: #fff;
        color: #5d5552;
        box-shadow: none;
    }

    .task-form .repeat-options[open] summary,
    .grocery-form .repeat-options[open] summary {
        border-color: transparent;
        background: var(--accent-gradient);
        color: #fff;
        box-shadow: var(--accent-shadow);
    }

    .dashboard-shortcuts {
        align-items: center;
        flex-wrap: nowrap;
        gap: 6px;
    }

    .dashboard-shortcuts form {
        width: auto;
        min-width: 0;
        flex: 1;
        gap: 6px;
    }

    .dashboard-shortcuts input {
        flex: 1;
        min-width: 0;
        padding-inline: 6px;
        font-size: 12px;
    }

    .dashboard-shortcuts .today-link {
        min-width: 62px;
        padding: 0 10px;
    }

    .task-item {
        grid-template-columns: 28px minmax(0, 1fr) auto auto;
    }

    .task-item small {
        grid-column: 2;
    }

    .suggested-task {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .suggested-task .suggested-task-delete {
        grid-column: 2;
    }

    .task-actions-panel {
        grid-template-columns: 1fr;
    }

    .task-delete-button {
        width: 100%;
    }

    .user-row {
        grid-template-columns: 1fr;
    }

    .create-user-form {
        grid-template-columns: 1fr;
    }

    .client-grid,
    .client-time-form,
    .client-entry-row,
    .client-summary-row,
    .life-admin-hero,
    .life-admin-grid,
    .life-task-form,
    .life-task-row {
        grid-template-columns: 1fr;
    }

    .life-admin-hero h1 {
        font-size: 34px;
    }

    .life-month-nav {
        justify-content: stretch;
    }

    .life-month-nav a {
        flex: 1;
    }

    .life-stage-guide {
        grid-template-columns: 1fr;
    }

    .life-title-field,
    .life-task-form .life-stage-field,
    .life-task-form .life-repeat-field,
    .life-task-form .life-suggest-field,
    .life-task-form > button,
    .life-task-row textarea {
        grid-column: auto;
        grid-row: auto;
    }

    .life-subtasks-head,
    .life-subtask-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .life-subtask-row,
    .life-subtask-add {
        grid-template-columns: 1fr;
    }

    .life-subtask-row {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .life-subtask-row input,
    .life-subtask-row select,
    .life-subtask-row .life-points,
    .life-subtask-row .life-subtask-actions {
        grid-column: 2;
    }

    .life-task-actions {
        flex-wrap: wrap;
    }

    .client-date-form {
        width: 100%;
    }

    .client-date-form input {
        min-width: 0;
    }

    .user-row-head {
        display: none;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .notification-permission {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-form .notification-time-row {
        grid-template-columns: 1fr;
    }

    .kanban-page {
        width: calc(100% - 28px);
        max-width: none;
    }

    .kanban-board-shell {
        --timeline-label-width: 190px;
    }

    .kanban-settings {
        justify-content: stretch;
    }

    .kanban-settings select {
        width: 100%;
    }

    .kanban-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kanban-metrics div:last-child {
        grid-column: 1 / -1;
    }

    .kanban-admin-grid,
    .kanban-task-form,
    .kanban-project-form {
        grid-template-columns: 1fr;
    }

    .kanban-title-field {
        grid-column: auto;
    }

    .kanban-comment-field {
        grid-column: auto;
    }

    .kanban-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .kanban-view-switcher {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .kanban-view-switcher button {
        width: 100%;
    }

    .kanban-column-heads,
    .kanban-task-stage,
    .kanban-project-lanes {
        grid-template-columns: 1fr;
    }

    .kanban-task-card,
    .kanban-workspace[data-view="list"] .kanban-task-card {
        grid-column: 1;
        grid-template-columns: minmax(0, 1fr) 32px;
    }

    .kanban-edit-toggle {
        grid-column: 2;
    }

    .kanban-inline-form,
    .kanban-todo-form,
    .kanban-detail-meta,
    .kanban-comment-form,
    .kanban-subtask-form {
        grid-template-columns: 1fr;
    }

    .kanban-inline-form button {
        width: 100%;
    }

    .kanban-status-label {
        display: none;
    }

    .kanban-workspace[data-view="timeline"] .timeline-scale,
    .kanban-workspace[data-view="timeline"] .timeline-week-scale,
    .kanban-workspace[data-view="timeline"] .timeline-day-actions {
        grid-template-columns: repeat(var(--timeline-days), var(--timeline-day-width));
    }
}
