@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
:root {
    --color-surface: #ffffff;
    --color-surface-soft: #f5f5f5;
    --color-surface-muted: #eeeeee;
    --color-ink: #212121;
    --color-ink-soft: #616161;
    --color-ink-muted: #9e9e9e;
    --color-charcoal: #212121;
    --color-charcoal-2: #424242;
    --color-pink: #ec407a;
    --color-pink-dark: #d81b60;
    --shadow-1: 0 4px 10px rgba(15, 23, 42, 0.08);
    --shadow-2: 0 10px 28px rgba(15, 23, 42, 0.12);
    --shadow-3: 0 18px 40px rgba(15, 23, 42, 0.18);
}

* {
    box-sizing: border-box;
}

#layout {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

body {
    position: relative;
    margin: 0;
    color: var(--color-ink);
    background: #fafafa;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
}

button {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

input,
textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

label {
    display: block;
    font-size: 0.95rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.row > [class*="col "] {
    padding: 0 0.75rem;
}

.col {
    width: 100%;
}

.s4 {
    width: 33.3333%;
}

.s12 {
    width: 100%;
}

.m4 {
    width: 100%;
}

@media (min-width: 601px) {
    .m4 {
        width: 33.3333%;
    }
}

.container {
    width: min(100%, 1100px);
    margin: 0 auto;
    padding: 0 1rem;
}

.center {
    text-align: center;
}

.center-align {
    text-align: center;
}

.left-align {
    text-align: left;
}

.right-align {
    text-align: right;
}

.hide-on-small-only {
    display: none;
}

@media (min-width: 601px) {
    .hide-on-small-only {
        display: block;
    }
}

.grey {
    background: #9e9e9e;
}

.grey.darken-1 {
    background: #757575;
}

.grey.darken-3 {
    background: #424242;
}

.grey.darken-4 {
    background: #212121;
}

.grey.lighten-2 {
    background: #e0e0e0;
}

.grey.lighten-3 {
    background: #eeeeee;
}

.grey.lighten-5 {
    background: #fafafa;
}

.pink {
    background: var(--color-pink);
}

.pink.darken-2 {
    background: var(--color-pink-dark);
}

.white-text {
    color: #ffffff;
}

.grey-text {
    color: var(--color-ink-soft);
}

.text-darken-1 {
    color: #616161;
}

.text-darken-3,
.text-darken-4 {
    color: var(--color-ink);
}

.text-lighten-1,
.text-lighten-2 {
    color: var(--color-ink-muted);
}

.btn-floating,
.btn-small,
.btn-large {
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: inherit;
    box-shadow: var(--shadow-1);
}

.btn-floating {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
}

.btn-small {
    min-height: 2.1rem;
    padding: 0 0.85rem;
    border-radius: 999px;
}

.btn-large {
    min-height: 2.85rem;
    padding: 0 1.2rem;
    border-radius: 999px;
}

.btn-floating.btn-small {
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
}

.btn-floating.btn-large {
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
}

.pulse {
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(236, 64, 122, 0.35); }
    70% { box-shadow: 0 0 0 16px rgba(236, 64, 122, 0); }
    100% { box-shadow: 0 0 0 0 rgba(236, 64, 122, 0); }
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    min-height: 2rem;
}

.card {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-2);
}

.card-content {
    padding: 1.25rem;
}

.card-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.collection {
    list-style: none;
    padding: 0;
}

.collection-item {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: var(--shadow-1);
    margin-bottom: 0.8rem;
}

.divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 0.5rem 1.5rem;
}

.subheader {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-ink-soft);
}

.z-depth-0 {
    box-shadow: none;
}

.z-depth-1 {
    box-shadow: var(--shadow-1);
}

.z-depth-2 {
    box-shadow: var(--shadow-2);
}

.z-depth-3,
.z-depth-4 {
    box-shadow: var(--shadow-3);
}

.tiny {
    font-size: 1rem;
}

.right {
    margin-left: 0.35rem;
}

main {
    padding-top: 55px;
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

.app-content-shell {
    width: min(100%, 1100px);
    margin: 0 auto;
    padding: 0.85rem 1rem 0;
}

.app-content-shell > * {
    width: 100%;
}

@media (min-width: 720px) {
    .app-content-shell {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

nav{
    margin-bottom: 0;
    border-top: 0px solid #f76b8a;
    border-bottom: 1px solid #f76b8a;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.nav-extended {
    color: white;
}

.nav-wrapper {
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 0.35rem;
    position: relative;
}

footer.page-footer {
    padding-top: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    line-height: 1;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999999;
}

footer .row {
    margin: -16px 0 0 0;
    padding-bottom: 14px;
}
footer .circle {
    height: 32.4px;
    width: 32.4px;
}


.text-bold {
    font-weight: bold;
}

.brand-logo img{
    padding: .5rem 0 0 0;
    height: 50px;
}
.brand-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-icon-button,
.profile-button {
    background: none;
    border: 0;
    cursor: pointer;
}

.nav-icon-button {
    color: white;
    height: 56px;
    padding: 0 1rem;
}

.profile-button {
    padding: 0;
}
.brand-logo span {
    font-size: 8px;
    display: block;
    line-height: 10px;
}

.month-selector {
    line-height: 16px;
    padding: 0 0 0.75rem 0;
}

.month-selector-controls {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
}

.month-selector span.chip {
    font-size: 12px;
    font-weight: normal;
    padding: 0 20px 5px 20px;
}

.month-selector b{
    font-weight: normal;
    font-style: italic;
    font-size: 18px;
    padding: 0 .25em;
}

.month-selector-summary {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem;
    min-width: 0;
    width: 100%;
    margin: 0;
    justify-self: center;
}

.month-selector-year {
    white-space: nowrap;
}

.month-selector-week-group {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.month-selector-nav,
.month-selector-toggle {
    flex-shrink: 0;
}

.month-selector-toggle {
}

.month-selector-nav:first-of-type {
}

.month-selector-nav:last-of-type {
}

.month-selector-current {
    border: 0;
    min-height: 1.7rem;
    padding: 0 0.7rem;
    background: var(--color-surface);
    color: var(--color-charcoal-2);
    box-shadow: var(--shadow-1);
    white-space: nowrap;
    font-size: 0.8rem;
}

.month-selector-current:disabled {
    cursor: default;
    color: var(--color-ink-muted);
    box-shadow: none;
    background: var(--color-surface-soft);
}

.calendar-container {
    display: block;
    margin: 10px 0 0 0;
    overflow: visible;
    padding: 0;
    list-style: none;
}

.calendar-container > li {
    list-style: none;
}

.calendar {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0.3rem 0.25rem;
}

.calendar td {
    font-size: 10px;
    padding: .75rem;
    position: relative;
    cursor: pointer;
    border-radius: 10px;
}

@media (max-width: 600px) {
    main {
        padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
    }

    .app-content-shell {
        padding: 0.7rem 0.85rem 0;
    }

    .welcome.row {
        margin-left: 0;
        margin-right: 0;
    }

    .welcome .col {
        padding-left: 0;
        padding-right: 0;
    }

    .month-selector-controls {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "toggle summary summary"
            "prev . next";
        gap: 0.5rem;
    }

    .month-selector {
        padding-bottom: 0.5rem;
    }

    .month-selector span.chip {
        padding: 0.15rem 0.75rem 0.45rem;
    }

    .month-selector-summary {
        grid-area: summary;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0.2rem;
    }

    .month-selector-week-group {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.35rem;
    }

    .month-selector-nav:first-of-type {
        grid-area: prev;
    }

    .month-selector-nav:last-of-type {
        grid-area: next;
        justify-self: end;
    }

    .calendar {
        border-spacing: 0.2rem 0.15rem;
    }

    .calendar td {
        padding: 0.52rem 0.28rem 0.85rem;
        font-size: 0.92rem;
    }

    .recommendHabitSection {
        padding: 0.75rem 0 calc(6.5rem + env(safe-area-inset-bottom, 0px));
    }

    .recommendHabitHeader {
        padding: 0 0 0.15rem;
    }

    .recommendHabit {
        gap: 0.85rem;
        grid-auto-columns: minmax(248px, 84vw);
        padding: 0.9rem 0 0.25rem;
    }

    .recommend-card-content {
        min-height: 228px;
    }
}

ul.collection.habits {
    margin: 0.5rem 0 4rem 0;
}

.habits li.collection-item {
    padding: 10px 0;
}

.habits li.collection-item table td {
    width: 14.285%;
    padding: 8px 0 2px 0;
}

.habits li.collection-item table span {
    padding-left: 22px;
}

.habits li.collection-item table .material-icons {
    padding-left: 12px;
}

.habits li.collection-item .btn-small, .habits li.collection-item .material-icons {
    height: 22px;
    width: 22px;
    line-height: 22px;
}

.habits li.collection-item .btn-small {
    margin-right: 10px;
}

.habits .chip {
    margin: 0 0 0 5px;
    padding: 0 0 0 15px;
}

.habits .chip .material-icons {
    margin-left: 5px;
}

.habits li.collection-item table thead td {
    font-size: 8px;
    font-weight: bold;
    padding: 1rem 4px 0 0;
}

.welcome.row {
    margin-bottom: 0;
}

.welcome .col {
    position: relative;
}

.welcome-card {
    position: relative;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 34%),
        linear-gradient(135deg, #f06292 0%, #d81b60 56%, #7b1f4a 100%);
    box-shadow: 0 22px 48px rgba(168, 26, 88, 0.28);
}

.welcome-card::after {
    content: "";
    position: absolute;
    inset: auto -4rem -5rem auto;
    width: 12rem;
    height: 12rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    filter: blur(6px);
}

.welcome-card-content {
    position: relative;
    padding: 1.4rem 1.35rem 1.5rem;
}

.welcome-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 1.85rem;
    padding: 0.1rem 0.7rem;
    margin-bottom: 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.welcome p {
    padding-bottom: 10px;
    max-width: 32rem;
}

.welcome-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding-top: 0.35rem;
}

.welcome-highlights span {
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    padding: 0.15rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    font-weight: 600;
}

ul.horizontal-dots {
    list-style: none;
    padding: 0;
    display: flex;
    overflow: hidden;
    position: absolute;
    bottom: 2px;
}

ul.horizontal-dots li {
    width: 3px;
    height: 3px;
    background-color: #b1b1b1;
    border-radius: 50%;
    margin-right: 2px;
}

#habit-editor .btn-small {
    margin-top: 12px;
}

.app-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.45);
    border: 0;
    z-index: 1000;
}

.side-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 86vw);
    background: white;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
    transform: translateX(-105%);
    transition: transform 180ms ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.user-view {
    padding-bottom: 1rem;
}

.user-view .background {
    height: 120px;
    overflow: hidden;
}

.user-view .background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-view .circle {
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    object-fit: cover;
    margin: -2rem 1.5rem 0.75rem;
    border: 3px solid white;
    background: white;
}

.user-view .name,
.user-view .email {
    display: block;
    padding: 0 1.5rem;
}

.side-panel.is-open {
    transform: translateX(0);
}

.side-panel-actions {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.side-panel-setting {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.5rem 1rem;
}

.side-panel-setting span {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.side-panel-setting small {
    color: rgba(0, 0, 0, 0.62);
}

.side-panel-setting input {
    margin-top: 0.25rem;
}

.side-panel-link {
    border: 0;
    background: none;
    text-align: left;
    padding: 0.9rem 1.5rem;
    cursor: pointer;
}

.side-panel .subheader {
    padding: 0.9rem 1.5rem 0.4rem;
}

.side-panel-hint {
    padding: 0 1.5rem 1rem;
    color: rgba(0, 0, 0, 0.62);
}

.recommendHabitSection {
    padding: 0.9rem 0 5rem;
}

.recommendHabitHeader {
    padding: 0 1rem;
}

.recommendHabitHeader h2 {
    font-size: 1.7rem;
    margin: 0 0 0.35rem;
}

.recommendHabitHeader p {
    margin: 0;
    color: rgba(0, 0, 0, 0.66);
    max-width: 30rem;
}

.recommendHabit {
    display: grid;
    gap: 1.1rem;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 82vw);
    overflow-x: auto;
    padding: 1rem;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.recommendHabit::-webkit-scrollbar {
    display: none;
}

.recommend-card {
    position: relative;
    scroll-snap-align: start;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 30%),
        linear-gradient(155deg, color-mix(in srgb, var(--recommend-accent) 88%, white 12%) 0%, color-mix(in srgb, var(--recommend-accent) 62%, #1b1f2a 38%) 100%);
    box-shadow: 0 20px 40px color-mix(in srgb, var(--recommend-accent) 26%, rgba(15, 23, 42, 0.74));
}

.recommend-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 38%, rgba(10, 12, 18, 0.18));
    pointer-events: none;
}

.recommend-card-content {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 240px;
    padding: 1.15rem 1.1rem 1.15rem;
}

.recommend-card-kicker {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 1.8rem;
    padding: 0.15rem 0.7rem;
    margin-bottom: 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.recommend-card-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.recommend-card-title span {
    font-size: 1.28rem;
    line-height: 1.1;
}

.recommend-card .btn-floating {
    flex-shrink: 0;
}

.recommend-card-button {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
}

.recommend-card-custom {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 30%),
        linear-gradient(155deg, #2a3348 0%, #151922 52%, #0f1117 100%);
}

.recommend-card-custom .recommend-card-button {
    background: rgba(236, 64, 122, 0.2);
}

.recommend-card-description {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.recommend-card-footer {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 1rem;
}

.recommend-card-footer span {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.12rem 0.68rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.84);
}

.modal-shell {
    position: fixed;
    inset: 0;
    z-index: 1002;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.modal-panel {
    width: min(560px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow: auto;
    position: relative;
    z-index: 1003;
    border-radius: 20px;
}

.modal-panel .modal-content {
    border-radius: 20px;
}

.sync-conflict-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sync-conflict-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.sync-conflict-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
}

.sync-conflict-card small {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.45;
}

.habit-editor-panel {
    padding: 1.35rem 1.2rem 1.2rem;
}

.habit-editor-title {
    margin: 0 0 0.5rem;
}

.habit-editor-intro {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.45;
}

.habit-editor-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.habit-editor-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.habit-editor-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.habit-editor-helper {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
}

.habit-editor-input {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.habit-editor-input::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

.habit-editor-input:focus {
    outline: 2px solid rgba(236, 64, 122, 0.48);
    outline-offset: 1px;
    border-color: rgba(236, 64, 122, 0.7);
}

.habit-editor-textarea {
    min-height: 132px;
}

.habit-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.habit-editor-actions .btn-large,
.habit-editor-actions .btn-small {
    margin: 0;
}

.habit-editor-actions-split .btn-large {
    flex: 1 1 220px;
}

.modal-content p {
    margin: 0 0 1rem;
}

.modal-panel button.btn-large,
.modal-panel button.btn-small,
.side-panel-link,
.nav-icon-button,
.profile-button,
.btn-floating {
    appearance: none;
}

@media (min-width: 720px) {
    .recommendHabit {
        grid-auto-columns: minmax(260px, 320px);
    }
}

@media (max-width: 720px) {
    .sync-conflict-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .welcome-card-content {
        padding: 1.2rem 1rem 1.35rem;
    }

    .recommendHabitHeader {
        padding: 0 1rem 0.15rem;
    }

    .recommend-card-content {
        min-height: 228px;
    }

    .habit-editor-panel {
        padding: 1.1rem 1rem 1rem;
    }

    .habit-editor-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .habit-editor-actions .btn-large,
    .habit-editor-actions .btn-small {
        width: 100%;
        justify-content: center;
    }
}

