:root {
    --color-indigo: #6366F1;
    --color-pink: #EC4899;
    --color-orange: #FF7A00;
    --color-cyan: #00D4FF;
    --color-light: #F2F2F7;
    --color-mid: #999;
    --color-dark: #0D0D0F;
}

* {
    box-sizing: border-box;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(184, 174, 255, 0.42) rgba(255, 255, 255, 0.045);
}

*::-webkit-scrollbar {
    width: 0.65rem;
    height: 0.65rem;
}

*::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999rem;
}

*::-webkit-scrollbar-thumb {
    border: 0.18rem solid transparent;
    border-radius: 999rem;
    background:
        linear-gradient(rgba(184, 174, 255, 0.58), rgba(128, 111, 224, 0.48)) padding-box;
}

*::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(rgba(205, 198, 255, 0.72), rgba(151, 132, 245, 0.62)) padding-box;
}

*::-webkit-scrollbar-corner {
    background: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Didact Gothic', sans-serif;
    font-size: 15px;
    color: var(--color-dark);
    background-color: var(--color-light);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--color-indigo);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
    color: var(--color-indigo);
}

h3 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    color: var(--color-dark);
}

p {
    font-size: 1rem;
    margin: 0 0 1rem 0;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.55);
    outline-offset: 3px;
}

.dn {
    display: none;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    z-index: 100;
}

.header-inner {
    max-width: 100rem;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-shrink: 0;
}

.header-logo {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    text-decoration: none;
    white-space: nowrap;
}

.header-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-family: 'Didact Gothic', sans-serif;
    font-size: 1rem;
    color: #666;
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-indigo);
    border-bottom-color: var(--color-indigo);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.language-selector {
    position: relative;
}

.language-toggle,
.icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 3.75rem;
    height: 2.5rem;
    padding-inline: 0.65rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: white;
    font-family: 'Didact Gothic', sans-serif;
    font-size: 0.9rem;
    color: var(--color-dark);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    position: relative;
}

.language-toggle:hover,
.icon-button:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.language-globe {
    font-size: 1rem;
}

.language-code {
    font-weight: 700;
}

.language-menu {
    position: absolute;
    inset-block-start: calc(100% + 0.5rem);
    inset-inline-end: 0;
    width: min(20rem, calc(100vw - 2rem));
    max-height: min(28rem, calc(100vh - 7rem));
    overflow: auto;
    padding: 0.75rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 1rem 2rem rgba(13, 13, 15, 0.14);
    z-index: 200;
}

.language-search {
    display: block;
    margin-bottom: 0.5rem;
}

.language-search span {
    display: block;
    margin-bottom: 0.25rem;
    color: #666;
    font-size: 0.9rem;
}

.language-search input {
    width: 100%;
    padding: 0.5rem 0.75rem;
}

.language-options {
    display: grid;
    gap: 0.15rem;
}

.language-option {
    display: grid;
    grid-template-columns: 1.25rem 1fr auto;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem;
    border: 0;
    border-radius: 0.35rem;
    background-color: transparent;
    color: var(--color-dark);
    cursor: pointer;
    font: inherit;
    text-align: start;
}

.language-option:hover,
.language-option:focus-visible {
    background-color: #f3f4f6;
}

.language-small-code {
    color: #666;
    font-size: 0.85rem;
}

.avatar-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    background-color: white;
    font-size: 1.25rem;
    color: var(--color-dark);
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.avatar-button:hover {
    border-color: var(--color-indigo);
}

.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-dark);
    text-decoration: none;
}

.account-button:hover .avatar-button {
    border-color: var(--color-indigo);
}

.account-name {
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Didact Gothic', sans-serif;
    font-size: 1rem;
    color: #666;
}

.container {
    max-width: 80rem;
    margin: 5rem auto 0;
    padding: 3rem 2rem;
    display: block;
}

.dashboard {
    width: 100%;
    margin-top: 5rem;
    padding: 0;
    background-image: radial-gradient(circle, #d0d0d5 0.08rem, transparent 0.08rem);
    background-size: 1rem 1rem;
    background-color: var(--color-light);
    background-attachment: local;
    position: relative;
    min-height: calc(100vh - 5rem);
}

.widget {
    background-color: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.widget:hover {
    border-color: var(--color-indigo);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.widget-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    font-family: 'Unbounded', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
    background-color: #fafafa;
}

.widget-content {
    padding: 1rem;
    flex: 1;
    overflow: auto;
    font-family: 'Didact Gothic', sans-serif;
    font-size: 0.95rem;
}

.section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #ccc;
}

.section:last-child {
    border-bottom: none;
}

.form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-dark);
    border-radius: 0.5rem;
    font-family: 'Didact Gothic', sans-serif;
    font-size: 1rem;
    background-color: white;
    color: var(--color-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-indigo);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.button {
    padding: 0.75rem 2rem;
    background-color: var(--color-indigo);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-family: 'Unbounded', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    align-self: flex-start;
    text-decoration: none;
}

.button:hover {
    background-color: var(--color-pink);
    transform: translateY(-2px);
}

.button:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.button-secondary {
    background-color: white;
    color: var(--color-dark);
    border: 2px solid #e5e7eb;
}

.button-secondary:hover {
    color: white;
}

.button.danger {
    background-color: #b91c1c;
}

.auth-section {
    max-width: 34rem;
}

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: #666;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background-color: #ccc;
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.auth-links a {
    color: var(--color-indigo);
}

.form-status {
    min-height: 1.5rem;
    margin-bottom: 1rem;
    color: #666;
}

.form-status[data-state="error"] {
    color: #b91c1c;
}

.form-status[data-state="ok"] {
    color: #047857;
}

.details {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.5rem 1rem;
}

.details dt {
    color: #666;
}

.details dd {
    margin: 0;
}

.danger-zone {
    border-inline-start: 0.25rem solid #b91c1c;
    padding-inline-start: 1rem;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.account-panel {
    min-width: 0;
}

.account-panel h2 {
    margin: 0 0 0.85rem;
    font-size: 1rem;
}

.account-actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

[dir="rtl"] body {
    text-align: start;
}

[dir="rtl"] .header-left,
[dir="rtl"] .header-right,
[dir="rtl"] .auth-links {
    direction: rtl;
}

@media (max-width: 639px) {
    .account-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        padding: 0.75rem 1rem;
        gap: 1rem;
    }

    .header-left {
        gap: 1rem;
    }

    .header-logo {
        font-size: 1.25rem;
    }

    .header-nav {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .account-name {
        display: none;
    }

    .container {
        padding: 2rem 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

@media (min-width: 640px) and (max-width: 1279px) {
    .header-nav {
        gap: 1.5rem;
    }

}

.workspace-page {
    min-height: 100vh;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.92);
    background-color: #111319;
}

.workspace-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(180deg, rgba(8, 10, 15, 0.28), rgba(8, 10, 15, 0.58)),
        linear-gradient(90deg, rgba(10, 12, 18, 0.34), rgba(10, 12, 18, 0.04) 45%, rgba(10, 12, 18, 0.44)),
        url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=2400&q=85");
    background-position: center;
    background-size: cover;
}

.workspace-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 48%, rgba(255, 208, 151, 0.16), transparent 32rem),
        rgba(3, 5, 10, 0.26);
    pointer-events: none;
}

.workspace-command-bar {
    position: fixed;
    left: 1.2rem;
    right: 1.2rem;
    bottom: max(1.2rem, env(safe-area-inset-bottom));
    z-index: 110;
    width: auto;
    max-width: none;
    min-height: 4.05rem;
    padding: 0.36rem 0.58rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    transform: none;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 0.78rem;
    background: linear-gradient(135deg, rgba(26, 27, 32, 0.72), rgba(13, 14, 18, 0.64));
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(1.15rem) saturate(120%);
    -webkit-backdrop-filter: blur(1.15rem) saturate(120%);
}

.command-group,
.command-utility-group,
.workspace-weather {
    display: flex;
    align-items: center;
}

.command-group {
    min-width: 0;
    gap: 0.12rem;
}

.command-group+.command-group {
    padding-inline-start: 0.52rem;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.08);
}

.command-nav-group {
    flex: 0 0 auto;
}

.command-utility-group {
    margin-inline-start: auto;
    gap: 0.42rem;
    min-width: 0;
    position: relative;
    right: 6.8rem;
}

.command-utility-group .command-group+.command-group {
    padding-inline-start: 0.5rem;
}

.command-profile-group {
    padding-inline-start: 0.62rem;
}

.workspace-logo {
    flex: 0 0 auto;
    width: 7.5rem;
    height: 2.3rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin-inline-end: 0.12rem;
    border-radius: 0.7rem;
    color: #fff;
    background: rgba(132, 102, 255, 0.18);
    font-size: 1.25rem;
    text-shadow: 0 0 0.8rem rgba(130, 96, 255, 0.4);
}

.workspace-weather {
    gap: 0.5rem;
    padding-inline: 0.28rem 0.15rem;
    min-width: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.weather-mark {
    width: 1.22rem;
    height: 1.22rem;
    display: grid;
    place-items: center;
    color: #ffd45a;
}

.weather-copy {
    display: grid;
    line-height: 1.05;
    white-space: nowrap;
}

.weather-copy strong,
.workspace-time {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.weather-copy small {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.66rem;
}

.workspace-time {
    min-width: 4.3rem;
    padding-inline: 0.22rem;
    text-align: center;
    font-family: 'Didact Gothic', sans-serif;
    font-weight: 400;
    display: grid;
    line-height: 1.05;
}

.workspace-time small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.64rem;
}

.workspace-time-button {
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.workspace-utility-flyout {
    position: fixed;
    z-index: 111;
    width: min(28rem, calc(100vw - 1.2rem));
    max-height: min(38rem, calc(100vh - 7rem));
    overflow: auto;
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.78rem;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(22, 24, 31, 0.94);
    box-shadow: 0 1.3rem 3.4rem rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(1.1rem) saturate(125%);
    -webkit-backdrop-filter: blur(1.1rem) saturate(125%);
}

.workspace-utility-flyout[data-utility-kind="weather"] {
    width: min(43rem, calc(100vw - 1.2rem));
    padding: 1rem;
}

.workspace-utility-flyout[hidden] {
    display: none;
}

.workspace-utility-flyout header,
.utility-calendar-head,
.utility-clock-row,
.utility-inline-form,
.pomodoro-tool {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.workspace-utility-flyout header {
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.workspace-utility-flyout h3 {
    margin: 0 0 0.45rem;
    color: #fff;
    font-size: 0.82rem;
}

.workspace-utility-flyout button,
.workspace-utility-flyout input {
    min-height: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.5rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font: inherit;
}

.workspace-utility-flyout button {
    padding: 0.35rem 0.55rem;
    cursor: pointer;
}

.workspace-utility-flyout input {
    min-width: 0;
    padding: 0.35rem 0.55rem;
}

.utility-current {
    display: grid;
    gap: 0.1rem;
    margin-bottom: 0.65rem;
}

.utility-current strong {
    color: #fff;
    font-size: 2.1rem;
    line-height: 1;
}

.utility-current small,
.utility-muted,
.utility-strip small,
.utility-measures dt {
    color: rgba(255, 255, 255, 0.58);
}

.utility-measures {
    margin: 0 0 0.75rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
}

.utility-measures div {
    min-width: 0;
}

.utility-measures dt,
.utility-measures dd {
    margin: 0;
}

.utility-strip,
.utility-section {
    margin-top: 0.85rem;
}

.utility-strip>div {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(4.4rem, 1fr);
    gap: 0.35rem;
    overflow-x: auto;
}

.utility-strip span,
.utility-clock-row {
    min-width: 0;
    padding: 0.45rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.07);
}

.utility-strip span {
    display: grid;
    gap: 0.1rem;
}

.utility-city-switcher,
.utility-results {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.6rem;
}

.utility-city-row {
    display: inline-flex;
    gap: 0.25rem;
}

.utility-city-switcher .active {
    background: rgba(143, 124, 255, 0.24);
}

.utility-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.22rem;
}

.utility-calendar-grid button {
    aspect-ratio: 1;
    padding: 0;
}

.utility-calendar-grid .muted {
    opacity: 0.42;
}

.utility-calendar-grid .today {
    border-color: rgba(196, 171, 255, 0.82);
    background: rgba(143, 124, 255, 0.22);
}

.utility-calendar-head {
    justify-content: space-between;
    margin-bottom: 0.45rem;
}

.utility-clock-row {
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.utility-clock-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pomodoro-tool {
    flex-wrap: wrap;
}

.pomodoro-tool strong {
    min-width: 5.6rem;
    color: #fff;
    font-size: 1.45rem;
}

.pomodoro-tool input {
    width: 4.5rem;
}

.workspace-utility-flyout[data-utility-kind="time"] {
    width: min(43rem, calc(100vw - 1.2rem));
    padding: 1.15rem;
}

.today-flyout-head {
    align-items: flex-start !important;
    margin-bottom: 1.1rem !important;
}

.today-flyout-head>div {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
}

.today-flyout-head strong {
    color: #fff;
    font-size: 1.18rem;
}

.today-flyout-head time {
    color: #fff;
    font-size: clamp(2.1rem, 8vw, 3rem);
    line-height: 1;
    font-weight: 700;
}

.today-flyout-head small {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.88rem;
}

.today-flyout-head button {
    appearance: none;
    -webkit-appearance: none;
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
    min-height: 2rem;
    padding: 0;
    display: grid;
    place-items: center;
    line-height: 1;
}

.time-action-svg {
    width: 1rem;
    height: 1rem;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.today-section {
    margin-top: 1.15rem;
}

.today-section-head {
    min-height: 2.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.today-section-head h3 {
    margin: 0;
    color: #fff;
    font-size: 0.98rem;
}

.today-calendar-head {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem;
    justify-items: center;
}

.today-calendar-head button {
    width: 2.25rem;
    min-width: 2.25rem;
    height: 2.25rem;
    min-height: 2.25rem;
    padding: 0;
}

.today-calendar-head h3 {
    align-self: center;
    font-size: 1.08rem;
}

.today-weekdays,
.utility-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.today-weekdays {
    margin-top: 0.55rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.76rem;
    text-align: center;
}

.utility-calendar-grid {
    margin-top: 0.35rem;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.72rem;
    background: rgba(255, 255, 255, 0.025);
}

.utility-calendar-grid button {
    min-width: 0;
    min-height: 2.85rem;
    aspect-ratio: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.88);
    background: transparent;
    font-size: 0.92rem;
}

.utility-calendar-grid button:not(:nth-child(7n + 1)) {
    border-left: 1px solid rgba(255, 255, 255, 0.045);
}

.utility-calendar-grid button:nth-child(n + 8) {
    border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.utility-calendar-grid button:hover,
.utility-calendar-grid button:focus-visible {
    background: rgba(255, 255, 255, 0.07);
}

.utility-calendar-grid button span {
    width: 2rem;
    height: 2rem;
    display: inline-grid;
    place-items: center;
    border-radius: 0.5rem;
}

.utility-calendar-grid .muted {
    opacity: 0.38;
}

.utility-calendar-grid .today,
.utility-calendar-grid .selected {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.utility-calendar-grid .today span {
    color: #fff;
    background: rgba(143, 124, 255, 0.74);
    box-shadow: inset 0 0 0 1px rgba(217, 210, 255, 0.22);
}

.utility-calendar-grid .selected:not(.today) span {
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(163, 145, 255, 0.88);
}

.today-empty-events {
    min-height: 4.4rem;
    margin-top: 0.35rem;
    padding: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.72rem;
    background: rgba(255, 255, 255, 0.035);
}

.today-empty-events .time-action-svg {
    width: 1.65rem;
    height: 1.65rem;
    color: #9b83ff;
}

.today-empty-events span {
    display: grid;
    gap: 0.12rem;
}

.today-empty-events strong {
    color: #fff;
}

.today-empty-events small {
    color: rgba(255, 255, 255, 0.58);
}

.world-clock-grid {
    margin-top: 0.45rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
    gap: 0.6rem;
}

.world-clock-card {
    position: relative;
    min-width: 0;
    padding: 0.75rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.72rem;
    background: rgba(255, 255, 255, 0.04);
}

.world-clock-remove {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
    min-height: 2rem;
    padding: 0;
    display: grid;
    place-items: center;
    line-height: 1;
}

.world-clock-face {
    width: 3.9rem;
    height: 3.9rem;
    fill: none;
    stroke: rgba(155, 131, 255, 0.92);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.world-clock-face circle:first-child {
    fill: rgba(143, 124, 255, 0.055);
    stroke: rgba(155, 131, 255, 0.34);
}

.world-clock-face circle:last-child {
    fill: #9b83ff;
}

.clock-ticks {
    stroke: rgba(177, 161, 255, 0.78);
}

.clock-hand {
    transform-origin: 32px 32px;
    stroke: #9b83ff;
}

.clock-hand.minute {
    stroke: rgba(218, 212, 255, 0.88);
}

.world-clock-copy {
    min-width: 0;
    display: grid;
    line-height: 1.16;
}

.world-clock-copy strong,
.world-clock-copy span,
.world-clock-copy small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.world-clock-copy strong {
    color: #fff;
    padding-right: 1.6rem;
}

.world-clock-copy span,
.world-clock-copy small {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.76rem;
}

.world-clock-copy time {
    margin-top: 0.28rem;
    color: #fff;
    font-size: 1.55rem;
    line-height: 1;
}

.today-add-form {
    margin-top: 0.65rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
}

.today-add-form button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.today-clock-results {
    display: grid;
    gap: 0.3rem;
}

.pomodoro-tool {
    margin-top: 0.45rem;
    padding: 0.9rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.72rem;
    background: rgba(255, 255, 255, 0.035);
}

.pomodoro-ring {
    width: clamp(8.4rem, 30vw, 10.5rem);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    align-content: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(16, 18, 26, 0.92) 0 57%, transparent 58%),
        conic-gradient(#8d6fff 0 76%, rgba(255, 255, 255, 0.08) 76% 100%);
}

.pomodoro-ring strong {
    color: #fff;
    font-size: 2rem;
    line-height: 1;
}

.pomodoro-ring small {
    margin-top: 0.3rem;
    color: #9b83ff;
}

.pomodoro-side {
    min-width: 0;
    display: grid;
    gap: 0.7rem;
}

.pomodoro-side label {
    min-width: 0;
    display: grid;
    gap: 0.25rem;
}

.pomodoro-side label span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
}

.pomodoro-side input[type="text"],
.pomodoro-side input[type="number"] {
    width: 100%;
}

.pomodoro-side input[type="number"] {
    max-width: 5rem;
}

.pomodoro-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
}

.pomodoro-actions button {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.pomodoro-actions .primary {
    border-color: rgba(155, 131, 255, 0.46);
    background: rgba(143, 124, 255, 0.36);
}

@media (max-width: 560px) {
    .workspace-utility-flyout[data-utility-kind="time"] {
        width: calc(100vw - 1rem);
        max-height: calc(100vh - 6rem);
        padding: 0.9rem;
    }

    .utility-calendar-grid button {
        min-height: 2.35rem;
    }

    .world-clock-grid {
        grid-template-columns: 1fr;
    }

    .pomodoro-tool {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .pomodoro-side {
        width: 100%;
    }

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

.weather-svg {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.weather-sun {
    color: #ffd45a;
    fill: rgba(255, 212, 90, 0.18);
}

.weather-moon,
.weather-cloud,
.weather-fog,
.weather-wind {
    color: rgba(225, 232, 242, 0.86);
}

.weather-rain {
    color: #73c9ff;
}

.weather-snow {
    color: #dcecff;
}

.weather-lightning {
    color: #ffd45a;
    fill: rgba(255, 212, 90, 0.2);
}

.weather-svg-dock {
    width: 1.3rem;
    height: 1.3rem;
    filter: drop-shadow(0 0 0.35rem rgba(255, 211, 111, 0.22));
}

.weather-svg-hero {
    width: clamp(4.1rem, 14vw, 6.6rem);
    height: clamp(4.1rem, 14vw, 6.6rem);
    flex: 0 0 auto;
}

.weather-svg-hour,
.weather-svg-day {
    width: 1.75rem;
    height: 1.75rem;
}

.weather-svg-metric,
.weather-svg-city {
    width: 1.2rem;
    height: 1.2rem;
}

.weather-action-svg {
    width: 1rem;
    height: 1rem;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.weather-flyout-head {
    min-width: 0;
    align-items: flex-start;
    padding-bottom: 0.72rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.weather-flyout-head>span:first-child {
    min-width: 0;
    display: grid;
    gap: 0.12rem;
}

.weather-flyout-head strong {
    color: #fff;
    font-size: 0.98rem;
}

.weather-flyout-head small {
    min-width: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weather-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.weather-head-actions button,
.weather-city-default,
.weather-city-remove {
    appearance: none;
    -webkit-appearance: none;
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
    min-height: 2rem;
    padding: 0;
    display: grid;
    place-items: center;
    line-height: 1;
}

.today-flyout-head button>svg,
.today-flyout-head button>.stild-close-glyph,
.world-clock-remove>.stild-close-glyph,
.weather-head-actions button>svg,
.weather-head-actions button>.stild-close-glyph,
.weather-city-default>svg,
.weather-city-remove>svg,
.weather-city-remove>.stild-close-glyph {
    display: flex;
    margin: auto;
}

.weather-current-panel {
    padding: 1.05rem 0 0.9rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 14rem);
    gap: 1rem;
    align-items: center;
}

.weather-current-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: clamp(0.9rem, 3vw, 1.5rem);
}

.weather-current-main>div {
    min-width: 0;
    display: grid;
    gap: 0.12rem;
}

.weather-current-main strong {
    color: #fff;
    font-size: clamp(3.4rem, 14vw, 5rem);
    line-height: 0.94;
    font-weight: 700;
}

.weather-current-main span {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.weather-current-main small,
.weather-current-main p {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
}

.weather-current-main p {
    margin-top: 0.45rem;
    color: rgba(255, 255, 255, 0.78);
}

.weather-current-main p span::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 1.1em;
    margin-inline: 0.65rem;
    vertical-align: -0.18em;
    background: rgba(255, 255, 255, 0.16);
}

.weather-current-metrics {
    margin: 0;
    display: grid;
    gap: 0.15rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 0.9rem;
}

.weather-current-metrics div {
    min-width: 0;
    padding: 0.45rem 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: center;
}

.weather-current-metrics div+div {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.weather-current-metrics dt {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
}

.weather-current-metrics dd {
    margin: 0;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

.weather-section {
    margin-top: 0.9rem;
}

.weather-section h3 {
    margin: 0 0 0.45rem;
    color: #fff;
    font-size: 0.86rem;
}

.weather-hourly-strip,
.weather-daily-list {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.035);
}

.weather-hourly-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(4.75rem, 1fr);
    overflow-x: auto;
}

.weather-hour {
    min-width: 0;
    padding: 0.6rem 0.5rem;
    display: grid;
    justify-items: center;
    gap: 0.3rem;
    text-align: center;
}

.weather-hour+.weather-hour {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.weather-hour time,
.weather-hour small,
.weather-day small {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.7rem;
}

.weather-hour small,
.weather-day small {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weather-hour strong,
.weather-day strong {
    color: #fff;
    font-size: 0.9rem;
}

.weather-daily-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.weather-day {
    min-width: 0;
    padding: 0.65rem 0.55rem;
    display: grid;
    justify-items: center;
    gap: 0.28rem;
    text-align: center;
}

.weather-day+.weather-day {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.weather-day.today {
    color: #fff;
    background: rgba(143, 124, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(143, 124, 255, 0.36);
}

.weather-city-panel {
    margin-top: 0.95rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.weather-city-panel summary {
    min-height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: #fff;
    cursor: pointer;
    list-style: none;
}

.weather-city-panel summary::-webkit-details-marker {
    display: none;
}

.weather-city-panel summary span {
    color: rgba(255, 255, 255, 0.52);
}

.weather-city-list {
    display: grid;
    gap: 0.25rem;
    margin-top: 0.45rem;
}

.weather-city-row {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.3rem;
    align-items: center;
    padding: 0.22rem;
    border-radius: 0.55rem;
}

.weather-city-row.active {
    background: rgba(143, 124, 255, 0.14);
}

.weather-city-main {
    min-width: 0;
    min-height: 2.55rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.5rem !important;
    border-color: transparent !important;
    background: transparent !important;
    text-align: left;
}

.weather-city-main span {
    min-width: 0;
    display: grid;
    line-height: 1.2;
}

.weather-city-main strong,
.weather-city-main small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weather-city-main small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.72rem;
}

.weather-city-default.active {
    color: #9b83ff;
    background: rgba(143, 124, 255, 0.14);
}

.weather-add-city {
    margin-top: 0.65rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
}

.weather-empty {
    margin: 0.8rem 0 0;
    color: rgba(255, 255, 255, 0.62);
}

.weather-city-results {
    display: grid;
    gap: 0.3rem;
}

@media (max-width: 520px) {
    .workspace-utility-flyout[data-utility-kind="weather"] {
        width: calc(100vw - 1rem);
        max-height: calc(100vh - 6rem);
        padding: 0.85rem;
    }

    .weather-current-panel {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .weather-current-metrics {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 0.4rem;
    }

    .weather-daily-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .weather-day {
        border-left: 0 !important;
    }

    .weather-day:nth-child(n + 3) {
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }
}

.workspace-page .language-toggle {
    height: 2.65rem;
    min-width: 3.7rem;
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 0.72rem;
    color: rgba(255, 255, 255, 0.86);
    background-color: rgba(255, 255, 255, 0.055);
}

.workspace-page .language-toggle:hover,
.workspace-page .language-toggle:focus-visible {
    border-color: rgba(255, 255, 255, 0.16);
    background-color: rgba(255, 255, 255, 0.1);
}

.workspace-page .language-menu {
    inset-block-start: auto;
    inset-block-end: calc(100% + 0.75rem);
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(26, 28, 34, 0.9);
    color: #fff;
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(1.2rem);
    -webkit-backdrop-filter: blur(1.2rem);
}

.workspace-page .language-search span,
.workspace-page .language-small-code {
    color: rgba(255, 255, 255, 0.64);
}

.workspace-page .language-option {
    color: #fff;
}

.workspace-page .language-option:hover,
.workspace-page .language-option:focus-visible {
    background-color: rgba(255, 255, 255, 0.1);
}

.workspace-login {
    min-width: 5.4rem;
    height: 2.65rem;
    padding-inline: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.72rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
    font-family: 'Unbounded', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
}

.workspace-account-chip {
    max-width: 10.5rem;
    justify-content: flex-start;
    gap: 0.5rem;
    padding-inline: 0.45rem 0.8rem;
}

.workspace-account-avatar {
    width: 1.9rem;
    height: 1.9rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    color: #2a2240;
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    line-height: 1;
    object-fit: cover;
}

.workspace-account-copy {
    min-width: 0;
    display: grid;
    line-height: 1.05;
}

.workspace-account-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-account-copy small {
    color: rgba(255, 255, 255, 0.52);
    font-family: 'Didact Gothic', sans-serif;
    font-size: 0.64rem;
    font-weight: 400;
    white-space: nowrap;
}

.workspace-dashboard {
    min-height: 100vh;
    margin-top: 0;
    padding: 0;
    background: transparent;
}

.workspace-stage {
    min-height: 100vh;
}

.dock-item {
    width: 4rem;
    min-height: 3.25rem;
    padding: 0.2rem 0.18rem;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.2rem;
    border-radius: 0.68rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.dock-item:hover,
.dock-item:focus-visible,
.dock-item.active {
    color: #fff;
    background-color: rgba(115, 86, 255, 0.13);
    transform: translateY(-0.08rem);
}

.dock-icon {
    position: relative;
    width: 1.45rem;
    height: 1.45rem;
    display: grid;
    place-items: center;
    border-radius: 0.45rem;
    background: transparent;
    box-shadow: none;
}

.icon {
    width: 1.18rem;
    height: 1.18rem;
    display: block;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dock-item.active .dock-icon {
    color: #8d7bff;
    background: rgba(103, 75, 255, 0.18);
    box-shadow: 0 0 1rem rgba(105, 76, 255, 0.22);
}

.workspace-command-bar .workspace-login {
    flex-shrink: 0;
}

.workspace-d-character {
    position: fixed;
    right: 2.1rem;
    bottom: 1.6rem;
    z-index: 112;
    width: 6.2rem;
    height: 6.2rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    filter: drop-shadow(0 1.1rem 1.5rem rgba(5, 7, 16, 0.42));
    transition: transform 0.2s ease, filter 0.2s ease;
}

.workspace-d-character:hover,
.workspace-d-character:focus-visible {
    transform: translateY(-0.25rem) scale(1.03);
    filter: drop-shadow(0 1.35rem 1.8rem rgba(5, 7, 16, 0.5));
}

.d-orb {
    position: relative;
    display: inline-block;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 28%, #34365f 0, #121528 48%, #070814 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.d-orb-large {
    width: 5.1rem;
    height: 5.1rem;
}

.d-orb-icon {
    width: 1.85rem;
    height: 1.85rem;
}

.d-orb-message {
    width: 3.05rem;
    height: 3.05rem;
}

.d-orb-eye {
    position: absolute;
    top: 41%;
    width: 7%;
    height: 18%;
    border-radius: 999rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 0 0.28rem rgba(255, 255, 255, 0.5);
}

.d-orb-eye:first-child {
    left: 35%;
}

.d-orb-eye:last-child {
    right: 35%;
}

.d-orb-shadow {
    position: absolute;
    left: 50%;
    bottom: 0.3rem;
    width: 4.9rem;
    height: 1.15rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(126, 129, 200, 0.42) 0, rgba(126, 129, 200, 0) 72%);
    transform: translateX(-50%);
}

.d-notification {
    position: absolute;
    top: 0.45rem;
    right: 0.5rem;
    width: 1.55rem;
    height: 1.55rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #6f63ff;
    box-shadow: 0 0.35rem 0.9rem rgba(69, 58, 196, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    font-family: 'Unbounded', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.d-animated {
    animation: d-float 5.8s ease-in-out infinite;
}

.d-animated .d-orb-shadow {
    animation: d-shadow-breathe 5.8s ease-in-out infinite;
}

.d-animated .d-orb-eye {
    transform-origin: center;
    animation: d-wink 7.5s ease-in-out infinite;
}

.d-animated .d-orb-eye+.d-orb-eye {
    animation-delay: 0.08s;
}

@keyframes d-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-0.42rem);
    }
}

@keyframes d-shadow-breathe {

    0%,
    100% {
        transform: translateX(-50%) scaleX(1);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) scaleX(0.82);
        opacity: 0.62;
    }
}

@keyframes d-wink {

    0%,
    88%,
    92%,
    100% {
        transform: scaleY(1);
    }

    90% {
        transform: scaleY(0.12);
    }
}

.workspace-menu-popover {
    position: fixed;
    z-index: 130;
    width: 16rem;
    padding: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(145deg, rgba(35, 37, 45, 0.82), rgba(20, 22, 29, 0.7));
    box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(1.25rem) saturate(125%);
    -webkit-backdrop-filter: blur(1.25rem) saturate(125%);
}

.workspace-menu-popover[hidden] {
    display: none;
}

.workspace-menu-title {
    padding: 0.2rem 0.35rem 0.55rem;
    color: rgba(255, 255, 255, 0.58);
    font-family: 'Unbounded', sans-serif;
    font-size: 0.72rem;
}

.workspace-menu-items {
    display: grid;
    gap: 0.12rem;
}

.workspace-menu-items button {
    width: 100%;
    padding: 0.62rem 0.7rem;
    border: 0;
    border-radius: 0.55rem;
    color: rgba(255, 255, 255, 0.88);
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.workspace-menu-items button:hover,
.workspace-menu-items button:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.workspace-window-layer {
    position: fixed;
    inset: 0;
    z-index: 105;
    display: grid;
    place-items: center;
    padding: 1.25rem 1.25rem 6.75rem;
    pointer-events: none;
}

.workspace-window-layer[hidden] {
    display: none;
}

.workspace-window {
    width: min(34rem, calc(100vw - 2rem));
    max-height: min(42rem, calc(100vh - 11rem));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.95rem;
    background: linear-gradient(145deg, rgba(26, 28, 36, 0.78), rgba(18, 20, 27, 0.58));
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(1.6rem) saturate(130%);
    -webkit-backdrop-filter: blur(1.6rem) saturate(130%);
    pointer-events: auto;
}

.workspace-window-wide {
    width: min(54rem, calc(100vw - 2rem));
}

.workspace-window-notes {
    width: min(92rem, calc(100vw - 2.5rem));
    height: min(48rem, calc(100vh - 8.25rem));
    max-height: calc(100vh - 8.25rem);
}

.workspace-window.workspace-window-maximized {
    width: 100%;
    height: 100%;
    max-height: 100%;
}

.workspace-window-bar {
    min-height: 3.25rem;
    padding: 0.7rem 0.85rem 0.7rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.workspace-window-title {
    color: rgba(255, 255, 255, 0.72);
    font-family: 'Unbounded', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0;
}

.workspace-window-controls {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.workspace-window-close {
    width: 2.2rem;
    height: 2.2rem;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0.65rem;
    color: rgba(255, 255, 255, 0.78);
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.workspace-window-toggle {
    width: 2.2rem;
    height: 2.2rem;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0.65rem;
    color: rgba(255, 255, 255, 0.68);
    background-color: rgba(255, 255, 255, 0.075);
    cursor: pointer;
}

.workspace-window-close:hover,
.workspace-window-close:focus-visible,
.workspace-window-toggle:hover,
.workspace-window-toggle:focus-visible {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.17);
}

.workspace-window-body {
    overflow: auto;
    padding: 1.6rem;
}

.workspace-window-notes .workspace-window-body {
    min-height: 0;
    flex: 1;
    padding: 0;
    overflow: hidden;
}

.workspace-window .section {
    margin: 0;
    padding: 0;
    border: 0;
}

.workspace-window h1 {
    margin-bottom: 0.55rem;
    color: #fff;
    font-size: 2rem;
}

.workspace-window .muted,
.workspace-window .form-status,
.workspace-window .auth-links {
    color: rgba(255, 255, 255, 0.68);
}

.workspace-window .button {
    width: 100%;
    justify-content: center;
    align-self: stretch;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, rgba(196, 171, 255, 0.95), rgba(116, 101, 180, 0.92));
    box-shadow: 0 0.85rem 1.7rem rgba(73, 56, 124, 0.24);
}

.workspace-window .button-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.workspace-window .form-group {
    margin-bottom: 1rem;
}

.workspace-window .form-group label {
    color: rgba(255, 255, 255, 0.78);
}

.workspace-window input[type="email"],
.workspace-window input[type="password"],
.workspace-window input[type="search"],
.workspace-window input[type="text"] {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.7rem;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.11);
}

.workspace-window input[type="email"]:focus,
.workspace-window input[type="password"]:focus,
.workspace-window input[type="search"]:focus,
.workspace-window input[type="text"]:focus {
    border-color: rgba(196, 171, 255, 0.86);
    box-shadow: 0 0 0 3px rgba(196, 171, 255, 0.16);
}

.workspace-window .account-window h1 {
    margin-bottom: 0;
}

.workspace-window .account-grid {
    color: rgba(255, 255, 255, 0.82);
}

.workspace-window .account-panel {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    background-color: rgba(255, 255, 255, 0.07);
}

.workspace-window .account-panel h2 {
    color: #fff;
}

.credits-summary {
    margin-bottom: 0.85rem;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.credits-summary strong {
    color: #fff;
    font-family: 'Unbounded', sans-serif;
    font-size: 1.35rem;
}

.credits-summary span,
.credit-row small {
    color: rgba(255, 255, 255, 0.56);
}

.credits-activity {
    display: grid;
    gap: 0.35rem;
}

.credits-activity p {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
}

.credit-row {
    min-width: 0;
    padding: 0.58rem 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.credit-row span {
    min-width: 0;
    display: grid;
    gap: 0.12rem;
}

.credit-row strong,
.credit-row small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.credit-row strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.credit-row b {
    color: #fff;
    white-space: nowrap;
}

.credit-row-amount {
    min-width: 0;
    display: grid;
    justify-items: end;
    gap: 0.08rem;
    text-align: right;
}

.credit-row-amount small {
    max-width: 11rem;
    color: rgba(255, 255, 255, 0.46);
}

.workspace-window .details dt {
    color: rgba(255, 255, 255, 0.56);
}

.workspace-window .danger-zone {
    border-color: rgba(248, 113, 113, 0.92);
}

.workspace-window .divider {
    color: rgba(255, 255, 255, 0.54);
}

.workspace-window .divider::before,
.workspace-window .divider::after {
    background-color: rgba(255, 255, 255, 0.16);
}

.workspace-window .auth-links {
    margin-top: 1.2rem;
    justify-content: center;
}

.workspace-window .auth-links a {
    color: rgba(230, 219, 255, 0.95);
}

.workspace-window-error {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.messages-window {
    min-height: 28rem;
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
}

.d-conversation-overlay {
    position: fixed;
    right: 2.2rem;
    bottom: 7.65rem;
    z-index: 111;
    width: min(26rem, calc(100vw - 2rem));
    height: min(34rem, calc(100vh - 10.5rem));
    min-height: 24rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.9rem;
    color: rgba(255, 255, 255, 0.86);
    background: linear-gradient(145deg, rgba(22, 24, 32, 0.86), rgba(12, 14, 20, 0.74));
    box-shadow: 0 1.6rem 4.4rem rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(1.5rem) saturate(125%);
    -webkit-backdrop-filter: blur(1.5rem) saturate(125%);
}

.d-conversation-overlay[hidden] {
    display: none;
}

.d-conversation-head {
    min-height: 3.8rem;
    padding: 0.65rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.d-conversation-title {
    min-width: 0;
    flex: 1;
    display: grid;
    gap: 0.12rem;
}

.d-conversation-title strong {
    color: #fff;
    font-family: 'Unbounded', sans-serif;
    font-size: 0.86rem;
    letter-spacing: 0;
}

.d-conversation-title small,
.d-thinking {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
}

.d-close-button {
    width: 2.15rem;
    height: 2.15rem;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0.6rem;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.09);
    cursor: pointer;
}

.d-close-button .stild-close-glyph {
    margin: auto;
}

.d-close-button:hover,
.d-close-button:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.d-message-list {
    min-height: 0;
    flex: 1;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    overflow: auto;
}

.d-message {
    position: relative;
    max-width: 88%;
    padding: 0.7rem 0.8rem;
    border-radius: 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.d-message-content {
    min-width: 0;
}

.d-message-content p,
.d-message-content ul,
.d-message-content ol {
    margin: 0;
    line-height: 1.45;
}

.d-message-content p+p,
.d-message-content p+ul,
.d-message-content p+ol,
.d-message-content ul+p,
.d-message-content ol+p {
    margin-top: 0.7rem;
}

.d-message-content ul,
.d-message-content ol {
    padding-inline-start: 1rem;
}

.d-message-content li+li {
    margin-top: 0.28rem;
}

.d-message-content strong {
    color: #fff;
    font-weight: 700;
}

.d-message-content em {
    color: rgba(255, 255, 255, 0.82);
    font-style: italic;
}

.d-message-content code {
    padding: 0.08rem 0.26rem;
    border-radius: 0.35rem;
    color: rgba(255, 255, 255, 0.94);
    background: rgba(255, 255, 255, 0.1);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.9em;
}

.d-message-usage {
    margin-top: 0.45rem;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.72rem;
    line-height: 1.2;
}

.d-message-actions {
    margin-top: 0.65rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
    position: absolute;
    bottom: 0.8rem;
    right: 0.4rem;
}

.d-message-actions button {
    min-height: 1.75rem;
    padding: 0.25rem 0.55rem;
    border: 1px solid rgba(196, 171, 255, 0.35);
    border-radius: 0.48rem;
    color: #fff;
    background: rgba(128, 112, 255, 0.42);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
}

.d-message-actions button:hover,
.d-message-actions button:focus-visible {
    background: rgba(128, 112, 255, 0.62);
}

.d-confirm-countdown {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 0.65rem;
    padding-right: 2.5rem;
}

.d-confirm-countdown-hidden {
    display: none !important;
}

.d-countdown-text {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(196, 171, 255, 0.85);
    font-size: 0.78rem;
    line-height: 1.2;
    margin-top: 0.4rem;
}

.d-countdown-value {
    font-weight: 600;
    font-family: 'Monaco', 'Menlo', monospace;
    min-width: 1.2rem;
}

.d-pause-play-button {
    position: absolute;
    top: 0;
    right: 0;
    min-width: auto;
    min-height: auto;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: 1px solid rgba(128, 112, 255, 0.4);
    border-radius: 0.35rem;
    background: rgba(128, 112, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 150ms ease;
}

.d-pause-play-button .icon {
    width: 0.9rem;
    height: 0.9rem;
    color: rgba(196, 171, 255, 0.8);
}

.d-pause-play-button:hover,
.d-pause-play-button:focus-visible {
    background: rgba(128, 112, 255, 0.45);
    border-color: rgba(196, 171, 255, 0.6);
}

.d-pause-play-button:hover .icon,
.d-pause-play-button:focus-visible .icon {
    color: rgba(220, 200, 255, 0.95);
}

.d-message-user {
    align-self: flex-end;
    color: #fff;
    background: rgba(111, 99, 255, 0.28);
}

.d-message-assistant {
    align-self: flex-start;
    padding-right: 2.35rem;
    padding-bottom: 1.15rem;
    background: rgba(255, 255, 255, 0.08);
}

.d-message-menu-wrap {
    position: absolute;
    right: 0.36rem;
    bottom: 0.32rem;
}

.d-message-menu-toggle {
    width: 1.55rem;
    height: 1.35rem;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0.42rem;
    color: rgba(255, 255, 255, 0.52);
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1;
}

.d-message-menu-toggle .icon {
    width: 1rem;
    height: 1rem;
}

.d-message-menu-toggle:hover,
.d-message-menu-toggle:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.d-message-menu {
    position: absolute;
    right: 0;
    bottom: 1.75rem;
    min-width: 10rem;
    padding: 0.28rem;
    display: grid;
    gap: 0.12rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.6rem;
    background: rgba(22, 24, 31, 0.96);
    box-shadow: 0 0.9rem 2rem rgba(0, 0, 0, 0.32);
    z-index: 2;
}

.d-message-menu[hidden] {
    display: none;
}

.d-message-menu button {
    min-height: 2.1rem;
    padding: 0.38rem 0.55rem;
    border: 0;
    border-radius: 0.45rem;
    color: rgba(255, 255, 255, 0.82);
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    text-align: left;
}

.d-message-menu button:hover,
.d-message-menu button:focus-visible {
    color: #fff;
    background: rgba(128, 112, 255, 0.24);
}

.d-compose button {
    border: 0;
    border-radius: 0.6rem;
    color: #fff;
    background: rgba(128, 112, 255, 0.74);
    cursor: pointer;
    font: inherit;
}

.d-thinking {
    padding: 0 0.95rem 0.55rem;
}

.d-compose {
    padding: 0.75rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.d-compose input {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.7rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.d-compose input:focus {
    border-color: rgba(196, 171, 255, 0.86);
    box-shadow: 0 0 0 3px rgba(196, 171, 255, 0.16);
}

.d-compose button {
    min-width: 4.4rem;
    min-height: 2.55rem;
    padding: 0 0.9rem;
}

.d-compose button:disabled,
.d-compose input:disabled {
    opacity: 0.58;
    cursor: wait;
}

.notes-window {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(12rem, 17%) minmax(18rem, 29%) minmax(24rem, 1fr);
    color: rgba(255, 255, 255, 0.86);
    overflow: hidden;
}

.notes-mobile-tabs {
    display: none;
}

.notes-pane {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-inline-end: 1px solid rgba(255, 255, 255, 0.11);
}

.notes-editor-pane {
    border-inline-end: 0;
}

.notes-pane-head {
    min-height: 3.4rem;
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notes-pane-head h2,
.notes-editor-empty h2 {
    margin: 0;
    color: #fff;
    font-size: 0.9rem;
}

.notes-icon-button {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.55rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    font: inherit;
    cursor: pointer;
}

.notes-system-views,
.notes-collection-tree,
.notes-list {
    overflow: auto;
}

.notes-collection-tree {
    overflow: visible;
}

.notes-system-views,
.notes-collection-tree {
    padding: 0.7rem 0.75rem;
}

.notes-system-views {
    display: grid;
    gap: 0.12rem;
}

.notes-sidebar-divider {
    height: 1px;
    margin: 0.35rem 1rem;
    background: rgba(255, 255, 255, 0.09);
}

.notes-system-views button,
.notes-collection-node button,
.notes-list-item {
    width: 100%;
    border: 0;
    color: rgba(255, 255, 255, 0.78);
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.notes-system-views button,
.notes-collection-node button {
    min-height: 2.1rem;
    padding: 0.45rem 0.6rem;
    border-radius: 0.5rem;
}

.notes-system-views button:hover,
.notes-system-views button.active,
.notes-collection-node button:hover,
.notes-collection-node button.active,
.notes-list-item:hover,
.notes-list-item.active {
    color: #fff;
    background: rgba(143, 124, 255, 0.16);
}

.notes-collection-node {
    margin: 0;
    position: relative;
}

.notes-collection-node summary {
    display: grid;
    grid-template-columns: 0.7rem minmax(0, 1fr);
    align-items: center;
    list-style: none;
}

.notes-collection-node summary::-webkit-details-marker {
    display: none;
}

.notes-collection-node summary::before {
    content: "";
    width: 0;
    height: 0;
    border-block: 0.22rem solid transparent;
    border-inline-start: 0.32rem solid rgba(255, 255, 255, 0.34);
    transform: rotate(0deg);
    transition: transform 0.14s ease;
}

.notes-collection-node[open]>summary::before {
    transform: rotate(90deg);
}

.notes-collection-row {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.2rem;
}

.notes-collection-row>button {
    min-width: 0;
}

.notes-collection-row .notes-menu-button {
    opacity: 0;
}

.notes-collection-row:hover .notes-menu-button,
.notes-collection-row:focus-within .notes-menu-button {
    opacity: 1;
}

.notes-collection-children {
    padding-inline-start: 0.8rem;
}

.notes-collection-form {
    margin: 0.2rem 0.9rem 0.65rem;
    padding: 0.6rem;
    display: grid;
    gap: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.06);
}

.notes-collection-form[hidden] {
    display: none;
}

.notes-collection-form div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.notes-collection-form button,
.notes-editor-toolbar button,
.notes-menu button {
    min-height: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.5rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font: inherit;
    cursor: pointer;
}

.notes-search {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.workspace-window .notes-window input[type="search"],
.workspace-window .notes-window input[type="text"],
.workspace-window .notes-window textarea,
.workspace-window .notes-window select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.58rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font: inherit;
}

.workspace-window .notes-window textarea:focus,
.workspace-window .notes-window select:focus {
    outline: none;
    border-color: rgba(196, 171, 255, 0.86);
    box-shadow: 0 0 0 3px rgba(196, 171, 255, 0.16);
}

.notes-status {
    padding: 1rem;
    color: rgba(255, 255, 255, 0.56);
    line-height: 1.4;
}

.notes-list {
    flex: 1;
    display: grid;
    align-content: start;
    gap: 0.18rem;
    padding: 0.75rem;
}

.notes-list-item {
    min-height: 5.4rem;
    padding: 0.85rem;
    display: grid;
    gap: 0.15rem;
    border-radius: 0.62rem;
}

.notes-list-item strong,
.notes-list-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notes-list-item strong {
    color: inherit;
    font-size: 0.92rem;
}

.notes-list-item span,
.notes-list-item time {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
}

.notes-editor,
.notes-editor-empty {
    min-height: 0;
    flex: 1;
}

.notes-editor {
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
}

.notes-editor[hidden],
.notes-editor-empty[hidden] {
    display: none;
}

.notes-editor-empty {
    padding: 1.4rem;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0.35rem;
    text-align: center;
}

.notes-editor-empty p {
    max-width: 18rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.54);
}

.notes-editor-toolbar {
    min-height: 0;
    padding: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 0;
}

.notes-save-state {
    min-width: 0;
    color: rgba(255, 255, 255, 0.56);
}

.notes-back-button {
    display: none;
}

.notes-overflow {
    position: relative;
}

.notes-menu-button {
    width: 1.9rem;
    height: 1.9rem;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0.45rem;
    color: rgba(255, 255, 255, 0.68);
    background: transparent;
    font: inherit;
    line-height: 1;
    cursor: pointer;
}

.notes-menu-button:hover,
.notes-menu-button:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.notes-menu {
    position: absolute;
    inset-block-start: calc(100% + 0.35rem);
    inset-inline-end: 0;
    z-index: 4;
    width: 13rem;
    padding: 0.35rem;
    display: grid;
    gap: 0.18rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.55rem;
    background: rgba(22, 24, 31, 0.96);
    box-shadow: 0 1rem 2.2rem rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(1rem);
    -webkit-backdrop-filter: blur(1rem);
}

.notes-menu[hidden] {
    display: none;
}

.notes-menu button,
.notes-menu label {
    width: 100%;
    min-height: 2.15rem;
    padding: 0.5rem 0.55rem;
    display: grid;
    gap: 0.35rem;
    border-radius: 0.42rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
}

.notes-menu label span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.72rem;
}

.notes-menu select {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.08);
}

.notes-menu select option {
    color: #16181f;
    background-color: #fff;
}

.notes-menu button:hover,
.notes-menu button:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.notes-title-input {
    min-width: 0;
    min-height: 3.8rem;
    padding: 0.8rem 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-family: 'Unbounded', sans-serif !important;
    font-size: 1.45rem !important;
    font-weight: 700 !important;
}

.notes-title-row {
    min-width: 0;
    min-height: 4rem;
    padding: 0 1.15rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: visible;
}

.notes-title-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.notes-type-badge {
    color: rgba(255, 255, 255, 0.42);
    font-family: 'Unbounded', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0;
}

.notes-content-input,
.notes-content-preview {
    min-height: 0;
    padding: 1rem 1.15rem;
}

.notes-content-input {
    border: 0 !important;
    border-radius: 0 !important;
    resize: none;
    background: transparent !important;
    line-height: 1.6;
}

.notes-content-preview {
    overflow: auto;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.65;
    cursor: text;
}

.notes-content-preview[hidden] {
    display: none;
}

.notes-content-preview p,
.notes-content-preview ul,
.notes-content-preview ol {
    max-width: 58rem;
    margin: 0;
}

.notes-content-preview p+p,
.notes-content-preview p+ul,
.notes-content-preview p+ol,
.notes-content-preview ul+p,
.notes-content-preview ol+p {
    margin-top: 0.9rem;
}

.notes-content-preview ul,
.notes-content-preview ol {
    padding-inline-start: 1.25rem;
}

.notes-content-preview li+li {
    margin-top: 0.35rem;
}

.notes-content-preview strong {
    color: #fff;
    font-weight: 700;
}

.notes-content-preview em {
    color: rgba(255, 255, 255, 0.82);
    font-style: italic;
}

.notes-content-preview code {
    padding: 0.08rem 0.28rem;
    border-radius: 0.35rem;
    color: rgba(255, 255, 255, 0.94);
    background: rgba(255, 255, 255, 0.1);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.9em;
}

.notes-content-preview-empty {
    color: rgba(255, 255, 255, 0.46);
}

.notes-object-metadata {
    position: relative;
    padding: 0.42rem 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.76rem;
}

.notes-tag-filter {
    min-width: 0;
    max-width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.28rem;
    padding: 0.18rem 0.22rem 0.18rem 0.48rem;
    border: 1px solid rgba(143, 124, 255, 0.22);
    border-radius: 999rem;
    color: rgba(218, 212, 255, 0.78);
    background: rgba(143, 124, 255, 0.08);
    line-height: 1.2;
}

.notes-tag-filter[hidden] {
    display: none;
}

.notes-tag-filter span {
    min-width: 0;
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notes-tag-filter button {
    width: 1.2rem;
    min-width: 1.2rem;
    height: 1.2rem;
    min-height: 1.2rem;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999rem;
    color: rgba(255, 255, 255, 0.64);
    background: rgba(255, 255, 255, 0.08);
    font: inherit;
    cursor: pointer;
}

.notes-meta-bar {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.42rem;
    overflow: hidden;
    white-space: nowrap;
}

.notes-meta-bar>span {
    min-width: 0;
    display: contents;
}

.notes-meta-bar button,
.notes-meta-bar>span>button {
    min-width: 0;
    max-width: 12rem;
    height: 1.65rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: 0;
    color: rgba(255, 255, 255, 0.58);
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.notes-meta-bar button+button::before,
.notes-meta-bar>span>button::before,
.notes-meta-save::before {
    content: "\00B7";
    flex: 0 0 auto;
    margin-inline-end: 0.18rem;
    color: rgba(255, 255, 255, 0.26);
}

.notes-meta-bar button:hover,
.notes-meta-bar button:focus-visible {
    color: rgba(255, 255, 255, 0.88);
}

.notes-meta-bar strong,
.notes-meta-bar span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400;
}

.notes-meta-bar strong {
    color: rgba(255, 255, 255, 0.78);
}

.notes-meta-icon {
    width: 0.82rem;
    height: 0.82rem;
    flex: 0 0 auto;
    color: rgba(158, 137, 255, 0.82);
    stroke-width: 2.15;
}

.notes-meta-save {
    margin-inline-start: auto;
    color: rgba(255, 255, 255, 0.68) !important;
}

.notes-meta-save strong::before {
    content: "\2713";
    margin-inline-end: 0.25rem;
    color: rgba(158, 137, 255, 0.92);
}

.notes-meta-add {
    flex: 0 0 auto;
    width: 1.45rem;
    justify-content: center;
    color: rgba(196, 171, 255, 0.88) !important;
}

.notes-meta-popover {
    position: absolute;
    bottom: calc(100% + 0.45rem);
    z-index: 7;
    width: min(18rem, calc(100% - 1rem));
    padding: 0.7rem;
    display: grid;
    gap: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.72rem;
    color: rgba(255, 255, 255, 0.76);
    background: rgba(18, 20, 27, 0.96);
    box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(1rem) saturate(120%);
    -webkit-backdrop-filter: blur(1rem) saturate(120%);
}

.notes-meta-popover[hidden] {
    display: none;
}

.notes-meta-popover-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.notes-meta-popover-head strong {
    color: #fff;
    font-size: 0.84rem;
}

.notes-meta-popover input {
    width: 100%;
    min-height: 2rem;
    padding: 0.35rem 0.55rem !important;
    font-size: 0.78rem !important;
}

.notes-meta-popover button {
    min-height: 1.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.48rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    font: inherit;
    cursor: pointer;
}

.notes-meta-popover-head button {
    width: 1.75rem;
    min-width: 1.75rem;
    height: 1.75rem;
    min-height: 1.75rem;
    padding: 0;
}

.notes-quiet-action {
    justify-self: start;
    padding-inline: 0.5rem;
    color: rgba(196, 171, 255, 0.94) !important;
    background: rgba(143, 124, 255, 0.1) !important;
}

.notes-tag-chips {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.notes-tag-chip {
    min-height: 1.75rem;
    padding: 0.18rem 0.42rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid rgba(196, 171, 255, 0.24);
    border-radius: 0.45rem;
    color: #fff;
    background: rgba(143, 124, 255, 0.14);
    font: inherit;
    cursor: pointer;
}

.notes-tag-remove {
    color: rgba(255, 255, 255, 0.58);
    font-weight: 700;
}

.notes-tag-input-wrap,
.notes-meta-popover label {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
}

.notes-tag-input-wrap[hidden] {
    display: none;
}

.notes-location-results {
    display: grid;
    gap: 0.3rem;
}

.notes-location-results[hidden] {
    display: none;
}

.notes-location-results button {
    width: 100%;
    padding: 0.32rem 0.5rem;
    text-align: left;
}

.notes-muted {
    color: rgba(255, 255, 255, 0.42);
}

.notes-error {
    margin: 0;
    padding: 0.55rem 1rem;
    color: #fecaca;
    background: rgba(127, 29, 29, 0.28);
}

.messages-list {
    display: none;
    padding: 0.7rem;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.message-contact {
    width: 100%;
    padding: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 0;
    border-radius: 0.65rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    font: inherit;
    text-align: left;
}

.message-avatar {
    width: 2.35rem;
    height: 2.35rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 0.65rem;
    color: #fff;
    background: linear-gradient(135deg, rgba(164, 139, 255, 0.95), rgba(83, 76, 145, 0.95));
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
}

.message-d-avatar {
    width: 3.05rem;
    height: 3.05rem;
    display: block;
    flex: 0 0 auto;
    filter: drop-shadow(0 0.45rem 0.65rem rgba(5, 7, 16, 0.34));
}

.message-contact span:last-child,
.message-thread-head span:last-child {
    display: grid;
    line-height: 1.15;
}

.message-contact small,
.message-thread-head small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.75rem;
}

.message-thread {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.message-thread-head {
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.message-bubbles {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.65rem;
}

.message-bubble {
    width: fit-content;
    max-width: min(28rem, 82%);
    margin: 0;
    padding: 0.7rem 0.85rem;
    border-radius: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.11);
}

.message-bubble.yours {
    align-self: flex-end;
    background: rgba(154, 131, 226, 0.5);
}

.message-compose {
    padding: 0.8rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.55rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.message-compose input,
.message-compose button {
    height: 2.55rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.65rem;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.08);
    font: inherit;
}

.message-compose input {
    padding-inline: 0.85rem;
}

.message-compose button {
    padding-inline: 1rem;
}

@media (max-width: 900px) {
    .workspace-command-bar {
        left: 0.6rem;
        right: 0.6rem;
        bottom: max(0.6rem, env(safe-area-inset-bottom));
        max-width: calc(100vw - 1.2rem);
        min-height: 3.9rem;
        padding: 0.34rem;
        border-radius: 0.85rem;
        gap: 0.18rem;
    }

    .workspace-logo {
        width: 3.3rem;
        max-width: 3.3rem;
        overflow: hidden;
        font-size: 1.2rem;
        white-space: nowrap;
    }

    .command-group+.command-group {
        padding-inline-start: 0.34rem;
    }

    .command-utility-group {
        gap: 0.24rem;
    }

    .command-utility-group .command-group+.command-group {
        padding-inline-start: 0.32rem;
    }

    .weather-copy small {
        display: none;
    }

    .dock-item {
        width: 3.65rem;
        min-height: 3.05rem;
        font-size: 0.64rem;
    }

    .dock-icon {
        width: 1.35rem;
        height: 1.35rem;
    }

    .messages-window {
        min-height: 26rem;
        grid-template-columns: 1fr;
    }

    .d-conversation-overlay {
        right: 0.85rem;
        bottom: 10.7rem;
        width: min(27rem, calc(100vw - 1.2rem));
        height: min(35rem, calc(100vh - 12.8rem));
    }

    .messages-list {
        display: none;
    }

    .workspace-d-character {
        right: 0.85rem;
        bottom: 5.5rem;
        width: 5rem;
        height: 5rem;
    }

    .workspace-window-notes {
        width: calc(100vw - 1.2rem);
        height: calc(100vh - 6.2rem);
        max-height: calc(100vh - 6.2rem);
    }

    .notes-window {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .notes-pane {
        grid-column: 1;
        grid-row: 2;
        border-inline-end: 0;
    }

    .notes-pane:not(.active) {
        display: none;
    }

    .notes-mobile-tabs {
        grid-column: 1 / -1;
        min-height: 2.8rem;
        padding: 0.38rem;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.25rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .notes-mobile-tabs button {
        border: 0;
        border-radius: 0.55rem;
        color: rgba(255, 255, 255, 0.72);
        background: transparent;
        font: inherit;
    }

    .notes-mobile-tabs button.active {
        color: #fff;
        background: rgba(143, 124, 255, 0.16);
    }

    .notes-back-button {
        display: inline-block;
    }

    .notes-editor-toolbar {
        grid-template-columns: auto 1fr;
        padding: 0.45rem 0.8rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 520px) {
    .workspace-logo {
        display: none;
    }

    .command-utility-group {
        margin-inline-start: 0;
    }

    .workspace-login {
        min-width: 2.8rem;
        height: 2.42rem;
        padding-inline: 0.3rem;
        font-size: 0.62rem;
    }

    .workspace-account-chip {
        max-width: 2.42rem;
        min-width: 2.42rem;
        padding-inline: 0.3rem;
    }

    .workspace-account-copy {
        display: none;
    }

    .workspace-page .language-toggle {
        min-width: 2.42rem;
        height: 2.42rem;
        padding-inline: 0.34rem;
    }

    .workspace-time {
        min-width: 2.35rem;
        padding-inline: 0;
        font-size: 0.72rem;
    }

    .language-code {
        display: none;
    }

    .dock-item {
        width: 2.85rem;
        min-height: 2.8rem;
    }

    .dock-icon {
        width: 1.24rem;
        height: 1.24rem;
        border-radius: 0.58rem;
    }

    .workspace-window-layer {
        padding-top: 1rem;
    }

    .workspace-d-character {
        width: 4.4rem;
        height: 4.4rem;
    }

    .d-orb-large {
        width: 4.15rem;
        height: 4.15rem;
    }

    .d-orb-shadow {
        width: 4rem;
    }

    .d-notification {
        width: 1.35rem;
        height: 1.35rem;
        font-size: 0.64rem;
    }

    .workspace-window-layer {
        padding: 0.65rem 0.6rem 5.25rem;
    }

    .d-conversation-overlay {
        left: 0;
        right: 0;
        bottom: calc(4.7rem + env(safe-area-inset-bottom));
        width: 100%;
        height: min(40rem, calc(100vh - 5.4rem - env(safe-area-inset-bottom)));
        min-height: 0;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 0.9rem 0.9rem 0 0;
    }

    .d-message {
        max-width: 94%;
    }

    .workspace-window-notes {
        width: 100%;
        height: 100%;
        max-height: none;
    }

    .notes-window {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .notes-pane {
        grid-column: 1;
        grid-row: 2;
        border-inline-end: 0;
    }

    .notes-pane:not(.active) {
        display: none;
    }

    .notes-title-input {
        font-size: 1.15rem !important;
    }

    .notes-meta-bar {
        flex-wrap: wrap;
        gap: 0.2rem 0.42rem;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {

    .d-animated,
    .d-animated .d-orb-shadow,
    .d-animated .d-orb-eye {
        animation: none;
    }
}
