/* CustomerKeeper Apex — 2026 visual system.
   This layer intentionally sits above the legacy and modernization styles. */
:root {
    --ck-primary: #20c3e3;
    --ck-primary-hover: #0faac9;
    --ck-primary-strong: #087f96;
    --ck-primary-container: #e2f8fc;
    --ck-on-primary-container: #075c6d;
    --ck-ink: #102a30;
    --ck-ink-soft: #405a60;
    --ck-muted: #6d8185;
    --ck-canvas: #f3f7f7;
    --ck-panel: #ffffff;
    --ck-panel-soft: #f8fbfb;
    --ck-panel-tint: #edf7f8;
    --ck-line: #dce7e8;
    --ck-line-strong: #c5d4d6;
    --ck-danger: #c23a43;
    --ck-danger-soft: #fff0f1;
    --ck-warning: #a96000;
    --ck-warning-soft: #fff4dc;
    --ck-success: #087b68;
    --ck-success-soft: #e4f7f1;
    --ck-on-surface: var(--ck-ink);
    --ck-on-surface-muted: var(--ck-muted);
    --ck-surface: var(--ck-canvas);
    --ck-surface-low: var(--ck-panel);
    --ck-surface-container: #eaf0f1;
    --ck-surface-high: #e2eaeb;
    --ck-outline: #91a4a8;
    --ck-outline-soft: var(--ck-line);
    --ck-secondary: #526c70;
    --ck-secondary-container: #e8eff0;
    --ck-on-secondary-container: #294348;
    --ck-sidebar: 336px;
    --ck-agenda: 316px;
    --ck-radius-sm: 12px;
    --ck-radius-md: 18px;
    --ck-radius-lg: 26px;
    --ck-shadow: 0 24px 70px rgba(16, 42, 48, 0.13);
    --ck-shadow-soft: 0 10px 30px rgba(16, 42, 48, 0.07);
    --ck-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.ck-app,
body.ck-app *,
body.ck-app *::before,
body.ck-app *::after {
    box-sizing: border-box;
}

body.ck-app {
    background: var(--ck-canvas);
    color: var(--ck-ink);
    font-family: var(--ck-font);
    font-size: 15px;
    line-height: 1.5;
}

body.ck-app::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background: var(--ck-canvas);
    background-image: none;
    content: "";
    pointer-events: none;
}

body.ck-app ::selection {
    background: rgba(32, 195, 227, 0.24);
    color: var(--ck-ink);
}

body.ck-app :focus-visible {
    outline: 3px solid rgba(32, 195, 227, 0.42);
    outline-offset: 3px;
}

body.ck-app .nano > .nano-pane {
    right: 3px;
    width: 5px;
    background: transparent;
}

body.ck-app .nano > .nano-pane > .nano-slider {
    border-radius: 10px;
    background: #b6c8cb;
}

/* Keep the established single-piece artwork; it renders consistently in older browsers. */
body.ck-app .BtnBack,
body.ck-app .BtnSetting,
body.ck-app .BtnCategory,
body.ck-app a.BtnEdit,
body.ck-app .BtnSave,
body.ck-app a.BtnDelete,
body.ck-app #Upcoming .title a {
    position: relative;
    display: inline-grid;
    width: 42px;
    height: 42px;
    min-width: 42px;
    margin: 0;
    padding: 0;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 13px;
    background-color: transparent !important;
    background-image: none !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    color: var(--ck-ink-soft);
    cursor: pointer;
}

body.ck-app .BtnBack { background-image: url("../images/back.png") !important; }
body.ck-app .BtnSetting { background-image: url("../images/setting.png") !important; }
body.ck-app .BtnCategory { background-image: url("../images/down.png") !important; }
body.ck-app a.BtnEdit { background-image: url("../images/edit.png") !important; }
body.ck-app .BtnSave { background-image: url("../images/save.png") !important; }
body.ck-app a.BtnDelete { background-image: url("../images/icon_delete.png") !important; }

body.ck-app .BtnBack::before,
body.ck-app .BtnSetting::before,
body.ck-app .BtnCategory::before,
body.ck-app a.BtnEdit::before,
body.ck-app .BtnSave::before,
body.ck-app a.BtnDelete::before,
body.ck-app #Upcoming .title a::before,
body.ck-app #ClientList .search button::before,
body.ck-app #Search .search-box button::before,
body.ck-app .add::before {
    content: none;
}

body.ck-app .BtnBack:hover,
body.ck-app .BtnSetting:hover,
body.ck-app .BtnCategory:hover,
body.ck-app a.BtnEdit:hover,
body.ck-app .BtnSave:hover,
body.ck-app #Upcoming .title a:hover {
    border-color: var(--ck-line);
    background-color: var(--ck-panel-tint) !important;
    color: var(--ck-primary-strong);
}

body.ck-app a.BtnDelete:hover {
    border-color: #f2c8cc;
    background-color: var(--ck-danger-soft) !important;
    color: var(--ck-danger);
}

/* Adaptive three-pane workspace. */
body.ck-app #ClientList,
body.ck-app #CategoryList,
body.ck-app #Setting {
    width: var(--ck-sidebar);
    padding: 0 18px;
    border-right: 1px solid var(--ck-line);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: none;
    color: var(--ck-ink);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

body.ck-app .content {
    inset: 0 var(--ck-agenda) 0 var(--ck-sidebar);
    width: auto;
    padding: 0 28px 28px;
    background: var(--ck-canvas);
    background-image: none;
    color: var(--ck-ink);
}

body.ck-app #Upcoming {
    width: var(--ck-agenda);
    border-left: 1px solid var(--ck-line);
    background: var(--ck-panel-tint);
    color: var(--ck-ink);
}

body.ck-app #ClientList .title,
body.ck-app #Upcoming .title,
body.ck-app .content .title,
body.ck-app #Setting .title,
body.ck-app #CategoryList .title {
    position: relative;
    display: flex;
    min-height: 78px;
    height: 78px;
    margin: 0;
    padding: 14px 0;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    background-image: none;
    color: var(--ck-ink);
}

body.ck-app .content .title {
    position: sticky;
    z-index: 20;
    top: 0;
    padding-right: 4px;
    padding-left: 4px;
    background: rgba(243, 247, 247, 0.9);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

body.ck-app .ck-pane-heading {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

body.ck-app .ck-pane-heading small {
    display: block;
    margin-bottom: 3px;
    color: var(--ck-muted);
    font-size: 10px;
    font-weight: 760;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
}

body.ck-app .ck-pane-heading > span,
body.ck-app #ClientList .title .ck-pane-heading > span,
body.ck-app #Upcoming .title .ck-pane-heading > span,
body.ck-app #Setting .title .ck-pane-heading > span {
    position: static;
    overflow: hidden;
    color: var(--ck-ink);
    font-size: 20px;
    font-weight: 760;
    letter-spacing: -0.035em;
    line-height: 1.15;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ck-app .content .title > span {
    overflow: hidden;
    color: var(--ck-ink);
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -0.03em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ck-app #ClientList .title .BtnSetting,
body.ck-app #ClientList .title .BtnCategory,
body.ck-app #Setting .title .BtnBack,
body.ck-app #CategoryList .title .BtnBack {
    position: relative;
    inset: auto;
    float: none;
}

body.ck-app #ClientList .title .BtnCategory {
    width: 42px;
    height: 42px;
}

/* Customer navigation. */
body.ck-app #ClientList .search {
    position: relative;
    display: block;
    width: 100%;
    height: 50px;
    margin: 2px 0 16px;
    padding: 0;
    border: 0;
    background: transparent;
}

body.ck-app #ClientList .search input[type="text"],
body.ck-app #Search .search-input input {
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0 16px 0 46px;
    border: 1px solid var(--ck-line);
    border-radius: 15px;
    background: var(--ck-panel-soft);
    box-shadow: 0 1px 1px rgba(16, 42, 48, 0.02);
    color: var(--ck-ink);
    font-size: 14px;
}

body.ck-app #ClientList .search input[type="text"]:hover,
body.ck-app #Search .search-input input:hover {
    border-color: var(--ck-line-strong);
    background: var(--ck-panel);
}

body.ck-app #ClientList .search input[type="text"]:focus,
body.ck-app #Search .search-input input:focus {
    border-color: var(--ck-primary);
    background: var(--ck-panel);
    box-shadow: 0 0 0 4px rgba(32, 195, 227, 0.13);
}

body.ck-app #ClientList .search button,
body.ck-app #Search .search-box button {
    --ck-icon: url("../images/ui/search.svg");
    position: absolute;
    z-index: 2;
    top: 4px;
    left: 4px;
    right: auto;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: transparent;
    background-image: none;
    color: var(--ck-muted);
    cursor: pointer;
}

body.ck-app #ClientList .search button#ClientSearchBtn,
body.ck-app #Search .search-box button#ClientSearchBtn {
    background-image: url("../images/search.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 25px 25px;
}

body.ck-app #ClientList .search button:hover,
body.ck-app #Search .search-box button:hover {
    color: var(--ck-primary-strong);
}

body.ck-app #ClientList .search button#UpcomingBtn {
    right: 4px;
    left: auto;
    background-image: url("../images/btn_upcoming.png");
}

body.ck-app #ClientListBox {
    inset: 146px 6px 0 18px;
    width: auto;
    height: auto;
    padding: 0 10px 22px 0;
}

body.ck-app #ClientList .add,
body.ck-app #CategoryList .add,
body.ck-app #ClientDetail .ClientRecords .add {
    --ck-icon: url("../images/ui/plus.svg");
    display: flex;
    width: 100%;
    min-height: 48px;
    height: auto;
    margin: 0 0 12px;
    padding: 0 15px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #bdebf4;
    border-radius: 15px;
    background: var(--ck-primary-container) url("../images/icon_create.png") 15px center / 20px 20px no-repeat;
    color: var(--ck-primary-strong);
    font-size: 13px;
    font-weight: 760;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

body.ck-app #ClientList .add:hover,
body.ck-app #CategoryList .add:hover,
body.ck-app #ClientDetail .ClientRecords .add:hover {
    border-color: var(--ck-primary);
    background-color: #d5f4fa;
    transform: translateY(-1px);
}

body.ck-app #ClientList .add::before,
body.ck-app #CategoryList .add::before,
body.ck-app #ClientDetail .ClientRecords .add::before {
    content: none;
}

body.ck-app #ClientList .list,
body.ck-app #RecordList,
body.ck-app #ClientCategoryList,
body.ck-app #UpcomingList,
body.ck-app #Search #SearchList {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.ck-app #ClientList .list li {
    position: relative;
    display: grid;
    min-height: 58px;
    margin: 0 0 4px;
    padding: 7px 6px 7px 8px;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 10px;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 15px;
    background: transparent;
    color: var(--ck-ink-soft);
    font-size: 14px;
    line-height: 1.3;
    cursor: pointer;
}

body.ck-app #ClientList .list li:hover,
body.ck-app #ClientList .list li.hover {
    border-color: #ccebf0;
    background: var(--ck-primary-container);
    color: var(--ck-ink);
    transform: none;
}

body.ck-app .ck-client-avatar {
    --ck-icon: url("../images/ui/user.svg");
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    background: #e9f0f1;
    color: var(--ck-muted);
}

body.ck-app .ck-client-avatar::before {
    width: 18px;
    height: 18px;
    background: currentColor;
    content: "";
    -webkit-mask: var(--ck-icon) center / contain no-repeat;
    mask: var(--ck-icon) center / contain no-repeat;
}

body.ck-app #ClientList .list li.hover .ck-client-avatar,
body.ck-app #ClientList .list li:hover .ck-client-avatar {
    background: var(--ck-primary);
    color: #fff;
}

body.ck-app .ck-client-name {
    min-width: 0;
    overflow: hidden;
    font-weight: 680;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ck-app #ClientList .list li .BtnDelete,
body.ck-app #CategoryList .BtnDelete,
body.ck-app #RecordList li a.BtnDelete {
    position: relative;
    inset: auto;
    float: none;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border: 0;
    background: transparent !important;
    background-image: none !important;
    color: var(--ck-danger);
    opacity: 0;
}

body.ck-app #ClientList .list li:hover .BtnDelete,
body.ck-app #ClientList .list li .BtnDelete:focus-visible,
body.ck-app #CategoryList li:hover .BtnDelete,
body.ck-app #CategoryList .BtnDelete:focus-visible,
body.ck-app #RecordList li:hover a.BtnDelete,
body.ck-app #RecordList li a.BtnDelete:focus-visible {
    opacity: 1;
}

body.ck-app #ClientList .list li.ck-list-status,
body.ck-app #ClientList .list li.ck-list-more {
    display: block;
    min-height: 46px;
    padding: 5px;
    border: 0;
    background: transparent;
    color: var(--ck-muted);
    line-height: 36px;
    text-align: center;
}

body.ck-app .ck-list-more button {
    min-width: 160px;
    min-height: 40px;
    border: 1px solid var(--ck-line);
    border-radius: 13px;
    background: var(--ck-panel);
    color: var(--ck-primary-strong);
    font-size: 13px;
    font-weight: 720;
}

/* Settings and group management use the same calm left-pane grammar. */
body.ck-app #Setting,
body.ck-app #CategoryList {
    z-index: 1250;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 18px 30px;
    list-style: none;
    scrollbar-gutter: stable;
}

body.ck-app #Setting .title,
body.ck-app #CategoryList .title {
    position: sticky;
    z-index: 4;
    top: 0;
    margin: 0 -4px;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

body.ck-app #Setting li {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    background-image: none;
    line-height: normal;
}

body.ck-app #Setting li.title {
    display: flex;
    min-height: 78px;
    height: 78px;
    padding: 14px 0;
}

body.ck-app #Setting .ck-settings-section-label {
    margin: 10px 4px 8px;
    color: var(--ck-muted);
    font-size: 10px;
    font-weight: 780;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.ck-app #Setting .ck-settings-section-label small {
    display: block;
    margin-top: 4px;
    color: var(--ck-muted);
    font-size: 11px;
    font-weight: 520;
    letter-spacing: normal;
    line-height: 1.4;
    text-transform: none;
}

body.ck-app #Setting .action {
    min-height: 48px;
    margin-bottom: 4px;
    border-radius: 14px;
    color: var(--ck-ink-soft);
    font-size: 14px;
}

body.ck-app #Setting .action:hover {
    background: var(--ck-panel-tint);
    color: var(--ck-ink);
}

body.ck-app #Setting .action span {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 48px;
    padding: 0 42px 0 14px;
    align-items: center;
    border-radius: inherit;
    background: none;
    color: inherit;
    font-weight: 650;
    cursor: pointer;
}

body.ck-app #Setting .action span::after {
    --ck-icon: url("../images/ui/chevron-right.svg");
    position: absolute;
    top: 15px;
    right: 13px;
    width: 18px;
    height: 18px;
    background: currentColor;
    content: "";
    opacity: 0.55;
    -webkit-mask: var(--ck-icon) center / contain no-repeat;
    mask: var(--ck-icon) center / contain no-repeat;
}

body.ck-app #Setting .action .attention::before {
    display: none;
}

body.ck-app #Setting .action.danger {
    color: var(--ck-danger);
}

body.ck-app #Setting .ck-custom-fields-heading {
    margin-top: 24px;
}

body.ck-app #Setting li.ck-custom-field {
    position: relative;
    display: flex;
    min-height: 52px;
    margin: 0 0 7px;
    padding: 5px 8px 5px 54px;
    align-items: center;
    border: 1px solid var(--ck-line);
    border-radius: 14px;
    background: var(--ck-panel-soft);
}

body.ck-app #Setting li.ck-custom-field:focus-within {
    border-color: var(--ck-primary);
    background: var(--ck-panel);
    box-shadow: 0 0 0 3px rgba(32, 195, 227, 0.11);
}

body.ck-app #Setting .ck-custom-field > input[type="text"] {
    position: static;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0 8px;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ck-ink);
    font-size: 14px;
}

body.ck-app #Setting .ck-custom-field > input[type="text"]:focus {
    outline: 0;
}

body.ck-app #Setting .ck-custom-field > label.checkbox {
    position: absolute;
    top: 13px;
    left: 12px;
    display: block;
    width: 32px;
    height: 20px;
    margin: 0;
    border-radius: 10px;
    background: #c5d1d3;
    background-image: none;
    cursor: pointer;
}

body.ck-app #Setting .ck-custom-field > label.checkbox::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(16, 42, 48, 0.25);
    content: "";
    transition: transform 180ms ease;
}

body.ck-app #Setting .ck-custom-field > input[type="checkbox"]:checked + label.checkbox {
    background: var(--ck-primary);
}

body.ck-app #Setting .ck-custom-field > input[type="checkbox"]:checked + label.checkbox::after {
    transform: translateX(12px);
}

body.ck-app #Setting .ck-settings-save-note {
    margin: 14px 4px 0;
    color: var(--ck-muted);
    font-size: 11px;
    text-align: center;
}

body.ck-app #CategoryList .add {
    margin: 2px 0 12px;
}

body.ck-app #ClientCategoryContent {
    position: relative;
    inset: auto;
    width: 100%;
    height: calc(100vh - 210px);
}

body.ck-app #ClientCategoryList li {
    position: relative;
    display: flex;
    min-height: 52px;
    margin: 0 0 5px;
    padding: 5px 6px 5px 14px;
    align-items: center;
    gap: 4px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--ck-ink-soft);
    line-height: 1.3;
}

body.ck-app #ClientCategoryList li:hover {
    border-color: var(--ck-line);
    background: var(--ck-panel-tint);
    color: var(--ck-ink);
    transform: none;
}

body.ck-app #ClientCategoryList li > span,
body.ck-app #ClientCategoryList li > input {
    min-width: 0;
    flex: 1;
}

body.ck-app #ClientCategoryList li > input {
    height: 38px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid var(--ck-primary);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(32, 195, 227, 0.11);
}

body.ck-app #CategoryList .BtnEdit,
body.ck-app #CategoryList .BtnSave,
body.ck-app #CategoryList .BtnDelete {
    position: relative;
    inset: auto;
    width: 36px;
    height: 36px;
    min-width: 36px;
    opacity: 0;
}

body.ck-app #ClientCategoryList li:hover .BtnEdit,
body.ck-app #ClientCategoryList li:hover .BtnDelete,
body.ck-app #ClientCategoryList li.Edit .BtnSave,
body.ck-app #ClientCategoryList a:focus-visible {
    opacity: 1;
}

body.ck-app #CategoryList .footer {
    position: sticky;
    bottom: 0;
    display: flex;
    min-height: 58px;
    padding: 10px 12px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--ck-line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ck-muted);
    box-shadow: var(--ck-shadow-soft);
}

body.ck-app #CategoryList .footer small {
    font-size: 11px;
}

body.ck-app #CategoryList .footer .CategoryTitle {
    color: var(--ck-primary-strong);
    font-size: 13px;
    font-weight: 740;
}

/* Agenda rail. */
body.ck-app #Upcoming .title {
    position: absolute;
    inset: 0 0 auto;
    padding: 14px 16px;
    background: rgba(237, 247, 248, 0.93);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

body.ck-app #Upcoming .title .ck-pane-heading {
    margin-right: auto;
}

body.ck-app #Upcoming .title a {
    width: 60px;
    min-width: 60px;
    margin-left: 4px;
    border-color: var(--ck-line);
    background-color: rgba(255, 255, 255, 0.65) !important;
    color: var(--ck-primary-strong);
}

body.ck-app #Upcoming .title .BtnNow,
body.ck-app #Upcoming .title .BtnPass {
    background-image: url("../images/btn_upcoming.png") !important;
}

body.ck-app #Upcoming .title .BtnBack {
    width: 42px;
    min-width: 42px;
    background-image: url("../images/back.png") !important;
    display: none;
}

body.ck-app .hide,
body.ck-app [hidden] {
    display: none !important;
}

body.ck-app #Upcoming .title .BtnNow::before,
body.ck-app #Upcoming .title .BtnPass::before,
body.ck-app #Upcoming .title .BtnBack::before {
    content: none;
}

body.ck-app #UpcomingContent {
    position: absolute;
    inset: 78px 0 0;
    width: auto;
    height: auto;
    padding: 2px 12px 24px;
}

body.ck-app #UpcomingList li {
    margin: 0 0 6px;
}

body.ck-app #UpcomingList #Date {
    height: auto;
    margin: 14px 7px 6px;
    padding: 0;
    background: transparent;
    color: var(--ck-muted);
    font-size: 10px;
    font-weight: 780;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-transform: uppercase;
}

body.ck-app #UpcomingList li .Content {
    position: relative;
    min-height: 76px;
    margin: 0;
    padding: 13px 14px 13px 17px;
    border: 1px solid var(--ck-line);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.82);
    background-image: none;
    box-shadow: none;
}

body.ck-app #UpcomingList li .Content::before {
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--ck-primary);
    content: "";
}

body.ck-app #UpcomingList li .Content:hover {
    border-color: #bfe5eb;
    background: #fff;
    box-shadow: var(--ck-shadow-soft);
    transform: translateY(-1px);
}

body.ck-app #UpcomingList .Name,
body.ck-app #UpcomingList #Description {
    overflow: hidden;
    color: var(--ck-ink);
    font-size: 13px;
    font-weight: 680;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ck-app #UpcomingList #Time,
body.ck-app #UpcomingList li.Birthday #Time {
    margin-top: 6px;
    color: var(--ck-primary-strong);
    font-size: 11px;
    font-weight: 720;
}

body.ck-app #UpcomingList .BirthdayIcon {
    display: none;
}

/* Detail and editor surfaces. */
body.ck-app #ClientDetail,
body.ck-app #ClientAdd,
body.ck-app #RecordDetail,
body.ck-app #Export,
body.ck-app #Dashboard {
    isolation: isolate;
    background: var(--ck-canvas);
    background-image: none;
}

/* Dashboard shares the persistent shell but is not one of its three base panes. */
body.ck-app #Dashboard.ck-shell-piece.hidden:not(.page-active) {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
}

body.ck-app #Dashboard.ck-shell-piece.page-active {
    display: block !important;
    visibility: visible;
    pointer-events: auto;
}

body.ck-app #ClientDetail > .nano-content,
body.ck-app #ClientAddContent > .nano-content,
body.ck-app #RecordDetailContent > .nano-content {
    padding-bottom: 36px;
}

body.ck-app #ClientContent,
body.ck-app #ClientAddContent .detail,
body.ck-app #RecordDetailContent .detail,
body.ck-app #RecordDetail > .detail {
    width: 100%;
    max-width: 880px;
    margin-right: auto;
    margin-left: auto;
}

body.ck-app #ClientDetail .details {
    display: grid;
    overflow: hidden;
    padding: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--ck-line);
    border-radius: 22px;
    background: var(--ck-panel);
    box-shadow: 0 1px 0 rgba(16, 42, 48, 0.03);
}

body.ck-app #ClientDetail .details > div {
    position: relative;
    float: none;
    width: auto;
    height: 86px;
    padding: 17px 16px 13px;
    border: 0;
    border-radius: 15px;
}

body.ck-app #ClientDetail .details > div:hover {
    background: var(--ck-panel-soft);
}

body.ck-app #ClientDetail .details .Name,
body.ck-app #ClientDetail .details .Email,
body.ck-app #ClientDetail .details .Edit {
    grid-column: 1 / -1;
}

body.ck-app #ClientDetail .details .Name {
    height: 98px;
    background: var(--ck-primary-container);
    background-image: none;
}

body.ck-app #ClientDetail .details .Name > span {
    font-size: 25px;
    font-style: normal;
    font-weight: 760;
    letter-spacing: -0.035em;
}

body.ck-app #ClientDetail .details > div .ck-field-label {
    position: absolute;
    bottom: 13px;
    left: 16px;
    color: var(--ck-muted);
    font-size: 10px;
    font-weight: 760;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

body.ck-app #ClientDetail .details > div span,
body.ck-app #ClientDetail .details > div a {
    color: var(--ck-ink);
    font-size: 15px;
}

body.ck-app #ClientDetail .details .Email a {
    display: inline-flex;
    max-width: 100%;
    padding: 7px 11px;
    align-items: center;
    border-radius: 11px;
    background: var(--ck-panel-tint);
    color: var(--ck-primary-strong);
    font-weight: 650;
    overflow-wrap: anywhere;
}

body.ck-app #ClientDetail .details .Edit {
    position: relative;
    inset: auto;
    display: flex;
    height: 48px;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    border: 1px solid #c6edf4;
    background: var(--ck-primary-container);
    color: var(--ck-primary-strong);
    text-align: center;
    cursor: pointer;
}

body.ck-app #ClientDetail .details .Edit:hover {
    border-color: var(--ck-primary);
    background: #d5f4fa;
}

body.ck-app #ClientDetail .details .Edit span.pc {
    display: none;
}

body.ck-app #ClientDetail .details .Edit span.mobile {
    position: static;
    display: flex;
    width: 100%;
    height: 100%;
    padding: 0;
    align-items: center;
    justify-content: center;
    background: none;
    color: inherit;
    font-size: 13px;
    font-weight: 740;
    line-height: 1;
}

body.ck-app #ClientDetail .ClientRecords {
    margin-top: 24px;
    border-top: 0;
}

body.ck-app #ClientDetail .ClientRecords > .title {
    min-height: 34px;
    height: auto;
    margin: 0 0 8px;
    padding: 0 2px;
    background: transparent;
    color: var(--ck-ink);
    font-size: 18px;
    font-weight: 740;
    letter-spacing: -0.025em;
}

body.ck-app #ClientDetail .ClientRecords .add {
    max-width: 220px;
    margin: 0 0 12px;
}

body.ck-app #RecordList li {
    position: relative;
    display: block;
    min-height: 68px;
    margin: 0 0 7px;
    padding: 12px 52px 12px 15px;
    border: 1px solid var(--ck-line);
    border-radius: 16px;
    background: var(--ck-panel);
    color: var(--ck-ink);
    line-height: 1.4;
}

body.ck-app #RecordList li:hover {
    border-color: #bfe5eb;
    background: var(--ck-panel);
    box-shadow: var(--ck-shadow-soft);
    transform: translateY(-1px);
}

body.ck-app #RecordList li div#Description {
    overflow: hidden;
    color: var(--ck-ink);
    font-size: 14px;
    font-weight: 660;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ck-app #RecordList li div#Date {
    margin-top: 4px;
    color: var(--ck-primary-strong);
    font-size: 11px;
    font-weight: 680;
    line-height: 1.35;
}

body.ck-app #RecordList li a.BtnDelete {
    position: absolute;
    top: 15px;
    right: 9px;
}

body.ck-app .content .detail {
    display: grid;
    overflow: visible;
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.ck-app .content .detail .item {
    position: relative;
    width: 100%;
    min-height: 82px;
    padding: 25px 15px 8px;
    border: 1px solid var(--ck-line);
    border-radius: 16px;
    background: var(--ck-panel);
}

body.ck-app .content .detail .item:focus-within {
    border-color: var(--ck-primary);
    box-shadow: 0 0 0 3px rgba(32, 195, 227, 0.11);
}

body.ck-app .content .detail .item:has(textarea),
body.ck-app .content .detail .action {
    grid-column: 1 / -1;
}

body.ck-app .content .detail .item > label {
    position: absolute;
    top: 10px;
    left: 15px;
    margin: 0;
    color: var(--ck-muted);
    font-size: 10px;
    font-weight: 760;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

body.ck-app .content .detail .item input[type="text"],
body.ck-app .content .detail .item textarea,
body.ck-app .content .detail .item select,
body.ck-app .content .detail .item .SelectBox {
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 6px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ck-ink);
    font-size: 15px;
}

body.ck-app .content .detail .item input:focus,
body.ck-app .content .detail .item textarea:focus,
body.ck-app .content .detail .item select:focus {
    outline: 0;
}

body.ck-app .content .detail .item textarea {
    min-height: 112px;
    resize: vertical;
}

body.ck-app .content .detail .Gender {
    display: flex;
    height: 44px;
    align-items: center;
    gap: 9px;
}

body.ck-app #ClientAdd .Gender .Male label,
body.ck-app #ClientAdd .Gender .Female label {
    display: block;
    float: none;
    width: 40px;
    height: 40px;
    margin: 0;
    border: 1px solid var(--ck-line);
    border-radius: 12px;
    background-position: center;
    background-size: 26px;
}

body.ck-app .content .detail .action {
    display: flex;
    padding: 8px 0 0;
    justify-content: flex-end;
    gap: 10px;
}

body.ck-app .content .detail .action button,
body.ck-app .ck-primary-action {
    min-width: 138px;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: var(--ck-primary) !important;
    background-image: none !important;
    color: #fff;
    font-size: 13px;
    font-weight: 740;
    line-height: 1;
    cursor: pointer;
}

body.ck-app .content .detail .action .BtnDelete {
    border-color: #f1cdd0;
    background: var(--ck-danger-soft) !important;
    background-image: none !important;
    color: var(--ck-danger);
}

/* Search is an intentional, focused workspace. */
body.ck-app #Search {
    inset: 0 var(--ck-agenda) 0 0;
    background: var(--ck-canvas);
}

body.ck-app #Search .search-box {
    position: absolute;
    inset: 0 0 auto;
    height: 78px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--ck-line);
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

body.ck-app #Search .search-box a.BtnBack {
    position: absolute;
    top: 18px;
    left: 20px;
}

body.ck-app #Search .search-box .search-input {
    width: min(720px, calc(100% - 58px));
    height: 50px;
    margin: 0 auto;
    padding: 0;
}

body.ck-app #Search .search-box .search-input input {
    padding-left: 46px;
}

body.ck-app #Search .search-box button {
    top: 4px;
    left: 4px;
}

body.ck-app #Search #SearchContent {
    top: 79px;
}

body.ck-app #Search #SearchList {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 22px;
}

body.ck-app #Search #SearchList li {
    min-height: 70px;
    margin-bottom: 7px;
    padding: 12px 16px;
    border: 1px solid var(--ck-line);
    border-radius: 16px;
    background: var(--ck-panel);
    line-height: 1.4;
}

body.ck-app #Search #SearchList li:hover {
    border-color: #bfe5eb;
    background: var(--ck-panel);
    box-shadow: var(--ck-shadow-soft);
}

body.ck-app #Search #SearchList li.Client #ClientName,
body.ck-app #Search #SearchList li.Record #Description {
    color: var(--ck-ink);
    font-size: 15px;
    font-weight: 720;
}

/* Split authentication experience. */
body.ck-app[id^="Page-User"] > .ck-app-shell,
body.ck-app#Page-Account > .ck-app-shell,
body.ck-app.ck-signed-out > .ck-app-shell {
    display: none !important;
}

body.ck-app .PageUser.ck-auth-page {
    position: fixed;
    z-index: 2500;
    inset: 0;
    display: grid;
    width: 100%;
    min-height: 100dvh;
    grid-template-columns: minmax(370px, 0.88fr) minmax(500px, 1.12fr);
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--ck-canvas);
}

body.ck-app .ck-auth-page .topbar {
    position: relative;
    min-height: 100dvh;
    overflow: hidden;
    border: 0;
    background: #102f36;
    background-image: none;
    color: #fff;
}

body.ck-app .ck-auth-page .topbar::before,
body.ck-app .ck-auth-page .topbar::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

body.ck-app .ck-auth-page .topbar::before {
    top: -18vw;
    left: -16vw;
    width: 42vw;
    height: 42vw;
}

body.ck-app .ck-auth-page .topbar::after {
    right: -15vw;
    bottom: -20vw;
    width: 40vw;
    height: 40vw;
    box-shadow: 0 0 0 56px rgba(255, 255, 255, 0.025), 0 0 0 112px rgba(255, 255, 255, 0.018);
}

body.ck-app .ck-auth-wordmark {
    position: absolute;
    z-index: 2;
    top: 38px;
    left: clamp(32px, 5vw, 64px);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

body.ck-app .ck-brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    background: var(--ck-primary);
    box-shadow: 0 10px 26px rgba(32, 195, 227, 0.22);
    color: #fff;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.05em;
}

body.ck-app .ck-auth-wordmark strong {
    font-size: 16px;
    font-weight: 730;
    letter-spacing: -0.02em;
}

body.ck-app .ck-auth-page .topbar .title {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: clamp(32px, 5vw, 64px);
    bottom: auto;
    left: clamp(32px, 5vw, 64px);
    width: auto;
    min-height: 0;
    padding: 0;
    transform: translateY(-50%);
    text-align: left;
}

body.ck-app .ck-eyebrow {
    display: block;
    color: var(--ck-primary-strong);
    font-size: 10px;
    font-weight: 820;
    letter-spacing: 0.13em;
    line-height: 1.3;
    text-transform: uppercase;
}

body.ck-app .ck-auth-page .topbar .ck-eyebrow {
    color: #75dff1;
}

body.ck-app .ck-auth-page .topbar .title h3 {
    max-width: 560px;
    margin: 14px 0 18px;
    padding: 0;
    color: #fff;
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 740;
    letter-spacing: -0.06em;
    line-height: 0.98;
    text-align: left;
    text-shadow: none;
}

body.ck-app .ck-auth-page .topbar .title p {
    max-width: 500px;
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 450;
    line-height: 1.6;
    text-align: left;
}

body.ck-app .ck-auth-proof {
    position: absolute;
    z-index: 2;
    right: clamp(32px, 5vw, 64px);
    bottom: 38px;
    left: clamp(32px, 5vw, 64px);
    display: flex;
    gap: 18px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 11px;
    font-weight: 620;
}

body.ck-app .ck-auth-proof span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

body.ck-app .ck-auth-proof span::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ck-primary);
    content: "";
    box-shadow: 0 0 0 4px rgba(32, 195, 227, 0.12);
}

body.ck-app .ck-auth-page > .container {
    display: flex;
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    margin: 0;
    padding: clamp(40px, 7vw, 96px);
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: var(--ck-canvas);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

body.ck-app .ck-auth-form {
    width: min(100%, 460px);
    margin: 0 auto;
}

body.ck-app .ck-auth-heading {
    margin-bottom: 30px;
}

body.ck-app .ck-auth-heading h1 {
    margin: 8px 0 9px;
    color: var(--ck-ink);
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 750;
    letter-spacing: -0.055em;
    line-height: 1.08;
}

body.ck-app .ck-auth-heading p {
    margin: 0;
    color: var(--ck-muted);
    font-size: 14px;
    line-height: 1.55;
}

body.ck-app .ck-input-group {
    display: block;
    margin: 0 0 16px;
    color: var(--ck-ink-soft);
    font-size: 12px;
    font-weight: 700;
}

body.ck-app .ck-input-group > span:first-child {
    display: block;
    margin: 0 0 7px 2px;
}

body.ck-app .ck-input-group > label {
    display: block;
    margin: 0 0 7px 2px;
    color: var(--ck-ink-soft);
    font-size: 12px;
    font-weight: 700;
}

body.ck-app .ck-auth-page input,
body.ck-app .ck-auth-page input[type="text"],
body.ck-app .ck-auth-page input[type="email"],
body.ck-app .ck-auth-page input[type="password"] {
    width: 100%;
    height: 54px;
    margin: 0;
    padding: 0 15px;
    border: 1px solid var(--ck-line-strong);
    border-radius: 14px;
    background: var(--ck-panel);
    box-shadow: 0 1px 1px rgba(16, 42, 48, 0.02);
    color: var(--ck-ink);
    font-size: 15px;
}

body.ck-app .ck-auth-page input:focus {
    border-color: var(--ck-primary);
    box-shadow: 0 0 0 4px rgba(32, 195, 227, 0.13);
}

body.ck-app .ck-auth-page .password {
    position: relative;
    display: block;
    width: 100%;
    height: 54px;
    margin: 0;
    padding: 0;
}

body.ck-app .ck-auth-page .password input {
    padding-right: 90px;
}

body.ck-app .ck-auth-page .password button {
    position: absolute;
    top: 6px;
    right: 7px;
    width: auto;
    height: 42px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    background-image: none;
    color: var(--ck-primary-strong);
    font-size: 12px;
    font-weight: 720;
    cursor: pointer;
}

body.ck-app .ck-auth-page .password button:hover {
    background: var(--ck-primary-container);
}

body.ck-app .ck-auth-page .btn {
    float: none;
    width: 100%;
    min-height: 52px;
    height: auto;
    margin: 8px 0 0;
    padding: 13px 18px;
    border: 1px solid var(--ck-line);
    border-radius: 14px;
    background: var(--ck-panel);
    box-shadow: none;
    color: var(--ck-ink-soft);
    font-size: 14px;
    font-weight: 730;
    line-height: 1.2;
    text-align: center;
    text-shadow: none;
    cursor: pointer;
}

body.ck-app .ck-auth-page .BtnHighlight {
    border-color: var(--ck-primary);
    background: var(--ck-primary);
    box-shadow: 0 12px 26px rgba(32, 195, 227, 0.2);
    color: #fff;
}

body.ck-app .ck-auth-page .BtnHighlight:hover {
    border-color: var(--ck-primary-hover);
    background: var(--ck-primary-hover);
    transform: translateY(-1px);
}

body.ck-app .ck-auth-switch {
    display: flex;
    margin-top: 22px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--ck-muted);
    font-size: 13px;
}

body.ck-app .ck-auth-switch button {
    padding: 5px 7px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ck-primary-strong);
    font-size: inherit;
    font-weight: 740;
    cursor: pointer;
}

body.ck-app .ck-auth-switch button:hover {
    background: var(--ck-primary-container);
}

body.ck-app .ck-auth-home {
    display: block;
    margin-top: 18px;
    color: var(--ck-muted);
    font-size: 11px;
    text-align: center;
    text-decoration: none;
}

body.ck-app .ck-auth-home:hover {
    color: var(--ck-primary-strong);
}

body.ck-app .ck-form-note {
    margin: 12px 8px 0;
    color: var(--ck-muted);
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
}

/* Account is a focused signed-in surface, separate from the three-pane shell. */
body.ck-app .PageUser.ck-account-page {
    position: fixed;
    z-index: 2500;
    inset: 0;
    width: 100%;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--ck-canvas);
    background-image: none;
}

body.ck-app .ck-account-topbar {
    display: flex;
    width: min(100% - 36px, 980px);
    min-height: 82px;
    margin: 0 auto;
    align-items: center;
    gap: 12px;
}

body.ck-app .ck-account-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ck-ink);
    text-decoration: none;
    cursor: pointer;
}

body.ck-app .ck-account-wordmark .ck-brand-mark {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 13px;
}

body.ck-app .ck-account-wordmark strong {
    font-size: 15px;
    letter-spacing: -0.02em;
}

body.ck-app .ck-account-page > .container {
    width: min(100% - 36px, 900px);
    max-width: none;
    margin: 0 auto 56px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.ck-app .ck-account-card {
    overflow: hidden;
    border: 1px solid var(--ck-line);
    border-radius: 26px;
    background: var(--ck-panel);
    box-shadow: var(--ck-shadow-soft);
}

body.ck-app .ck-account-heading {
    padding: 34px 36px 28px;
    background: var(--ck-primary-container);
    background-image: none;
}

body.ck-app .ck-account-heading h1 {
    margin: 7px 0 7px;
    color: var(--ck-ink);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 760;
    letter-spacing: -0.055em;
    line-height: 1;
}

body.ck-app .ck-account-heading p {
    margin: 0;
    color: var(--ck-muted);
    font-size: 14px;
}

body.ck-app .ck-account-summary {
    display: grid;
    margin: 0;
    padding: 26px 36px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    border-bottom: 1px solid var(--ck-line);
}

body.ck-app .ck-account-summary > div {
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--ck-line);
    border-radius: 15px;
    background: var(--ck-panel-soft);
}

body.ck-app .ck-account-summary dt {
    color: var(--ck-muted);
    font-size: 10px;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.ck-app .ck-account-summary dd {
    overflow: hidden;
    margin: 6px 0 0;
    color: var(--ck-ink);
    font-size: 15px;
    font-weight: 680;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ck-app .ck-plan-heading {
    display: flex;
    padding: 28px 36px 18px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

body.ck-app .ck-plan-heading h2 {
    margin: 5px 0 0;
    color: var(--ck-ink);
    font-size: 20px;
    letter-spacing: -0.03em;
}

body.ck-app .ck-plan-badge {
    padding: 6px 9px;
    border-radius: 9px;
    background: var(--ck-success-soft);
    color: var(--ck-success);
    font-size: 10px;
    font-weight: 760;
}

body.ck-app .ck-plan-list {
    margin: 0;
    padding: 0 36px 26px;
    list-style: none;
}

body.ck-app .ck-plan-list li {
    height: auto;
    margin: 0 0 8px;
    padding: 0;
    border: 1px solid var(--ck-line);
    border-radius: 16px;
    background: var(--ck-panel);
    line-height: normal;
}

body.ck-app .ck-plan-list li.featured {
    border-color: #aae3ed;
    background: var(--ck-primary-container);
}

body.ck-app .ck-plan-list a {
    display: flex;
    min-height: 70px;
    padding: 13px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--ck-ink);
    text-decoration: none;
}

body.ck-app .ck-plan-list a:hover {
    background: var(--ck-panel-tint);
}

body.ck-app .ck-plan-list a > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

body.ck-app .ck-plan-list strong {
    font-size: 14px;
}

body.ck-app .ck-plan-list small {
    margin-top: 3px;
    color: var(--ck-muted);
    font-size: 11px;
}

body.ck-app .ck-plan-list b {
    color: var(--ck-primary-strong);
    font-size: 18px;
    letter-spacing: -0.03em;
}

body.ck-app .ck-account-note {
    margin: 0;
    padding: 16px 36px;
    border-top: 1px solid var(--ck-line);
    background: var(--ck-panel-soft);
    color: var(--ck-muted);
    font-size: 11px;
    text-align: center;
}

/* Dashboard, export, and modal refinements. */
body.ck-app .ck-dashboard-scroll,
body.ck-app .ck-export-scroll {
    scrollbar-gutter: stable;
}

body.ck-app .ck-dashboard-intro h1,
body.ck-app .ck-export-intro h1 {
    color: var(--ck-ink);
    font-weight: 750;
    letter-spacing: -0.05em;
}

body.ck-app .ck-attention-card,
body.ck-app .ck-attention-open,
body.ck-app .ck-form-card,
body.ck-app .ck-choice,
body.ck-app .ck-switch-row {
    border-color: var(--ck-line);
    background: var(--ck-panel);
    box-shadow: none;
}

body.ck-app .ck-attention-card:hover,
body.ck-app .ck-attention-card.is-active,
body.ck-app .ck-attention-open:hover,
body.ck-app .ck-choice:hover,
body.ck-app .ck-choice:has(input:checked) {
    border-color: #b9e6ee;
    background: var(--ck-primary-container);
}

body.ck-app .ck-dashboard-refresh {
    border-color: var(--ck-line);
    background: var(--ck-panel);
    color: var(--ck-primary-strong);
}

body.ck-app #Modal.modal {
    position: fixed;
    z-index: 3000;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none !important;
    visibility: hidden;
    width: auto;
    min-height: 0;
    margin: 0 !important;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
}

body.ck-app #Modal.modal.in {
    display: block !important;
    visibility: visible;
}

body.ck-app #Modal.modal .modal-content {
    z-index: 1;
    margin: 0 !important;
    pointer-events: auto;
}

body.ck-app .modal .modal-content {
    border: 1px solid var(--ck-line);
    border-radius: 22px;
    background: var(--ck-panel);
    box-shadow: var(--ck-shadow);
}

body.ck-app .modal .modal-body h2 {
    color: var(--ck-ink);
    letter-spacing: -0.03em;
}

body.ck-app .modal .modal-footer {
    border-top-color: var(--ck-line);
    background: var(--ck-panel-soft);
}

body.ck-app .modal-backdrop {
    z-index: 2990;
    opacity: 0.55 !important;
    filter: alpha(opacity=55);
}

/* Standalone import/export pages inherit the same material system. */
body.ck-utility {
    background: var(--ck-canvas);
    background-image: none;
}

.ck-utility-card {
    border-color: var(--ck-line);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--ck-shadow-soft);
}

.ck-utility-heading {
    background: var(--ck-primary-container);
    background-image: none;
}

@media (max-width: 1180px) and (min-width: 1024px) {
    :root {
        --ck-sidebar: 280px;
        --ck-agenda: 260px;
    }

    body.ck-app .content {
        padding-right: 20px;
        padding-left: 20px;
    }
}

@media (max-width: 1023px) {
    body.ck-app {
        overflow: hidden;
    }

    body.ck-app .ck-shell-piece.hidden {
        visibility: hidden;
        pointer-events: none;
    }

    body.ck-app .ck-shell-piece.page-active {
        visibility: visible;
        pointer-events: auto;
    }

    body.ck-app #ClientList,
    body.ck-app #CategoryList,
    body.ck-app #Setting,
    body.ck-app #Upcoming,
    body.ck-app #Search,
    body.ck-app .content {
        inset: 0;
        width: 100%;
        max-width: none;
        border: 0;
    }

    body.ck-app #ClientList,
    body.ck-app #CategoryList,
    body.ck-app #Setting {
        padding-right: max(18px, env(safe-area-inset-right));
        padding-left: max(18px, env(safe-area-inset-left));
    }

    body.ck-app .content {
        padding: 0 max(18px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    }

    body.ck-app #Upcoming .title .BtnBack {
        display: inline-grid;
    }

    body.ck-app #ClientList .search {
        padding: 0;
    }

    body.ck-app #ClientList .search input[type="text"] {
        padding-right: 48px;
    }

    body.ck-app #ClientList .search button#UpcomingBtn {
        display: grid;
    }

    body.ck-app #Search {
        inset: 0;
    }

    body.ck-app #Search .search-box .search-input {
        width: calc(100% - 56px);
        margin-right: 0;
    }

    body.ck-app #ClientDetail .details,
    body.ck-app .content .detail {
        max-width: 760px;
    }
}

@media (max-width: 820px) {
    body.ck-app .PageUser.ck-auth-page {
        display: block;
        background: var(--ck-canvas);
    }

    body.ck-app .ck-auth-page .topbar {
        min-height: 250px;
    }

    body.ck-app .ck-auth-wordmark {
        top: 24px;
        left: 24px;
    }

    body.ck-app .ck-auth-page .topbar .title {
        top: auto;
        right: 24px;
        bottom: 30px;
        left: 24px;
        transform: none;
    }

    body.ck-app .ck-auth-page .topbar .title h3 {
        max-width: 620px;
        margin: 8px 0 9px;
        font-size: clamp(31px, 8vw, 48px);
        line-height: 1.02;
    }

    body.ck-app .ck-auth-page .topbar .title p,
    body.ck-app .ck-auth-proof {
        display: none;
    }

    body.ck-app .ck-auth-page > .container {
        min-height: calc(100dvh - 250px);
        padding: 38px 24px 56px;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    body.ck-app #ClientList .title,
    body.ck-app #Upcoming .title,
    body.ck-app .content .title,
    body.ck-app #Setting .title,
    body.ck-app #CategoryList .title {
        min-height: 70px;
        height: 70px;
    }

    body.ck-app #ClientListBox {
        inset: 138px 4px 0 18px;
    }

    body.ck-app #UpcomingContent {
        inset: 70px 0 0;
    }

    body.ck-app #ClientDetail .details,
    body.ck-app .content .detail {
        grid-template-columns: 1fr;
    }

    body.ck-app #ClientDetail .details .Name,
    body.ck-app #ClientDetail .details .Email,
    body.ck-app #ClientDetail .details .Edit,
    body.ck-app .content .detail .item:has(textarea),
    body.ck-app .content .detail .action {
        grid-column: auto;
    }

    body.ck-app #ClientDetail .details > div {
        height: 78px;
    }

    body.ck-app #ClientDetail .details .Name {
        display: none;
    }

    body.ck-app #ClientDetail .ClientRecords .add {
        width: 100%;
        max-width: none;
    }

    body.ck-app .content .detail .action {
        flex-direction: column;
    }

    body.ck-app .content .detail .action button {
        width: 100%;
    }

    body.ck-app #Search .search-box {
        height: 70px;
        padding: 10px 14px;
    }

    body.ck-app #Search .search-box a.BtnBack {
        top: 14px;
        left: 12px;
    }

    body.ck-app #Search #SearchContent {
        top: 71px;
    }

    body.ck-app #Search #SearchList {
        padding: 14px;
    }

    body.ck-app .ck-auth-page .topbar {
        min-height: 218px;
    }

    body.ck-app .ck-auth-page .topbar .title {
        bottom: 24px;
    }

    body.ck-app .ck-auth-page .topbar .title h3 {
        max-width: 430px;
        font-size: clamp(28px, 9vw, 39px);
    }

    body.ck-app .ck-auth-page > .container {
        min-height: calc(100dvh - 218px);
        padding: 32px 18px 44px;
    }

    body.ck-app .ck-auth-heading {
        margin-bottom: 24px;
    }

    body.ck-app .ck-auth-heading h1 {
        font-size: 30px;
    }

    body.ck-app .ck-auth-switch {
        flex-wrap: wrap;
    }

    body.ck-app .ck-account-topbar,
    body.ck-app .ck-account-page > .container {
        width: min(100% - 20px, 900px);
    }

    body.ck-app .ck-account-heading,
    body.ck-app .ck-plan-heading {
        padding-right: 20px;
        padding-left: 20px;
    }

    body.ck-app .ck-account-summary {
        padding: 20px;
        grid-template-columns: 1fr;
    }

    body.ck-app .ck-plan-list {
        padding-right: 20px;
        padding-left: 20px;
    }

    body.ck-app .ck-attention-summary {
        grid-template-columns: 1fr;
    }
}

@media (hover: none) {
    body.ck-app #ClientList .list li .BtnDelete,
    body.ck-app #CategoryList .BtnEdit,
    body.ck-app #CategoryList .BtnDelete,
    body.ck-app #RecordList li a.BtnDelete {
        color: #83979b;
        opacity: 0.62;
    }

    body.ck-app #ClientList .list li .BtnDelete:active,
    body.ck-app #CategoryList .BtnDelete:active,
    body.ck-app #RecordList li a.BtnDelete:active {
        color: var(--ck-danger);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.ck-app *,
    body.ck-app *::before,
    body.ck-app *::after,
    body.ck-utility *,
    body.ck-utility *::before,
    body.ck-utility *::after {
        scroll-behavior: auto !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}
