:root {
  color-scheme: dark;
  font-family: "Pretendard", "Noto Sans KR", "Segoe UI", "Malgun Gothic", sans-serif;
  --page-bg: #080a0e;
  --page-wash: linear-gradient(145deg, rgba(31, 41, 55, 0.28), rgba(8, 10, 14, 0) 48%);
  --panel-bg: rgba(12, 15, 21, 0.72);
  --card-bg: rgba(13, 17, 24, 0.62);
  --field-bg: #171d27;
  --text-main: #f4f7fb;
  --text-soft: #d8e0eb;
  --text-muted: #a0acbd;
  --accent: #afe8bd;
  --accent-soft: rgba(175, 232, 189, 0.12);
  --accent-border: rgba(175, 232, 189, 0.38);
  --line-soft: rgba(200, 210, 224, 0.12);
  background: var(--page-bg);
  color: #f4f7fb;
}

body[data-theme="light"] {
  color-scheme: light;
  --page-bg: #eef3f8;
  --page-wash: linear-gradient(145deg, rgba(37, 99, 235, 0.11), rgba(255, 255, 255, 0) 52%);
  --panel-bg: rgba(255, 255, 255, 0.88);
  --card-bg: rgba(255, 255, 255, 0.76);
  --field-bg: #ffffff;
  --text-main: #121821;
  --text-soft: #2f3b4d;
  --text-muted: #435166;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --accent-border: rgba(37, 99, 235, 0.32);
  --line-soft: rgba(15, 23, 42, 0.12);
}

body[data-theme="blue"] {
  --page-bg: #070d18;
  --page-wash: linear-gradient(145deg, rgba(71, 145, 255, 0.18), rgba(7, 13, 24, 0) 52%);
  --panel-bg: rgba(8, 18, 33, 0.8);
  --card-bg: rgba(12, 28, 48, 0.68);
  --field-bg: #101d31;
  --accent: #82bfff;
  --accent-soft: rgba(130, 191, 255, 0.14);
  --accent-border: rgba(130, 191, 255, 0.42);
}

body[data-theme="green"] {
  --page-bg: #06110c;
  --page-wash: linear-gradient(145deg, rgba(84, 214, 139, 0.16), rgba(6, 17, 12, 0) 52%);
  --panel-bg: rgba(8, 24, 17, 0.8);
  --card-bg: rgba(11, 30, 22, 0.68);
  --field-bg: #10241a;
  --accent: #8df0ad;
  --accent-soft: rgba(141, 240, 173, 0.14);
  --accent-border: rgba(141, 240, 173, 0.42);
}

body[data-theme="rose"] {
  --page-bg: #150910;
  --page-wash: linear-gradient(145deg, rgba(255, 105, 160, 0.16), rgba(21, 9, 16, 0) 52%);
  --panel-bg: rgba(31, 12, 21, 0.8);
  --card-bg: rgba(38, 14, 24, 0.68);
  --field-bg: #291420;
  --accent: #ff9fbd;
  --accent-soft: rgba(255, 159, 189, 0.14);
  --accent-border: rgba(255, 159, 189, 0.42);
}

body[data-theme="mono"] {
  --page-bg: #080808;
  --page-wash: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(8, 8, 8, 0) 52%);
  --panel-bg: rgba(18, 18, 18, 0.82);
  --card-bg: rgba(23, 23, 23, 0.7);
  --field-bg: #1b1b1b;
  --text-main: #f7f7f7;
  --text-soft: #d6d6d6;
  --text-muted: #b0b0b0;
  --accent: #f2f2f2;
  --accent-soft: rgba(242, 242, 242, 0.12);
  --accent-border: rgba(242, 242, 242, 0.36);
}

body[data-theme="paper"] {
  color-scheme: light;
  --page-bg: #f6f3ed;
  --page-wash: linear-gradient(145deg, rgba(30, 91, 83, 0.1), rgba(246, 243, 237, 0) 52%);
  --panel-bg: rgba(255, 253, 248, 0.9);
  --card-bg: rgba(255, 253, 248, 0.76);
  --field-bg: #fffdf8;
  --text-main: #1c211d;
  --text-soft: #3f4a43;
  --text-muted: #4d584c;
  --accent: #1d6b5e;
  --accent-soft: rgba(29, 107, 94, 0.1);
  --accent-border: rgba(29, 107, 94, 0.32);
  --line-soft: rgba(23, 32, 44, 0.12);
}

body[data-theme="mint"] {
  color-scheme: light;
  --page-bg: #effaf5;
  --page-wash: linear-gradient(145deg, rgba(20, 184, 166, 0.12), rgba(239, 250, 245, 0) 52%);
  --panel-bg: rgba(252, 255, 253, 0.9);
  --card-bg: rgba(255, 255, 255, 0.74);
  --field-bg: #ffffff;
  --text-main: #14231c;
  --text-soft: #2d4a3c;
  --text-muted: #496858;
  --accent: #16a34a;
  --accent-soft: rgba(22, 163, 74, 0.11);
  --accent-border: rgba(22, 163, 74, 0.32);
  --line-soft: rgba(20, 35, 28, 0.12);
}

body[data-theme="sunrise"] {
  color-scheme: light;
  --page-bg: #fff3eb;
  --page-wash: linear-gradient(145deg, rgba(249, 115, 22, 0.12), rgba(219, 39, 119, 0.06), rgba(255, 243, 235, 0) 62%);
  --panel-bg: rgba(255, 255, 255, 0.88);
  --card-bg: rgba(255, 255, 255, 0.74);
  --field-bg: #ffffff;
  --text-main: #251923;
  --text-soft: #594352;
  --text-muted: #614455;
  --accent: #db2777;
  --accent-soft: rgba(219, 39, 119, 0.1);
  --accent-border: rgba(219, 39, 119, 0.3);
  --line-soft: rgba(37, 25, 35, 0.12);
}

body[data-theme="aqua"] {
  --page-bg: #061114;
  --page-wash: linear-gradient(145deg, rgba(56, 189, 248, 0.16), rgba(6, 17, 20, 0) 52%);
  --panel-bg: rgba(8, 26, 31, 0.8);
  --card-bg: rgba(9, 33, 39, 0.68);
  --field-bg: #10272d;
  --accent: #6ee7f9;
  --accent-soft: rgba(110, 231, 249, 0.13);
  --accent-border: rgba(110, 231, 249, 0.38);
}

body[data-theme="ember"] {
  --page-bg: #140d09;
  --page-wash: linear-gradient(145deg, rgba(245, 158, 11, 0.16), rgba(20, 13, 9, 0) 52%);
  --panel-bg: rgba(29, 19, 13, 0.8);
  --card-bg: rgba(37, 23, 15, 0.68);
  --field-bg: #281a12;
  --accent: #ffb86b;
  --accent-soft: rgba(255, 184, 107, 0.13);
  --accent-border: rgba(255, 184, 107, 0.38);
}

body[data-theme="neon"] {
  --page-bg: #070712;
  --page-wash: linear-gradient(145deg, rgba(94, 234, 212, 0.14), rgba(168, 85, 247, 0.1), rgba(7, 7, 18, 0) 62%);
  --panel-bg: rgba(12, 12, 27, 0.82);
  --card-bg: rgba(17, 17, 36, 0.7);
  --field-bg: #17172d;
  --accent: #66f5d8;
  --accent-soft: rgba(102, 245, 216, 0.13);
  --accent-border: rgba(102, 245, 216, 0.38);
}

body[data-theme="custom"] {
  --page-bg: var(--custom-page, #080a0e);
  --page-wash: linear-gradient(145deg, var(--custom-accent-soft, rgba(175, 232, 189, 0.12)), rgba(0, 0, 0, 0) 54%);
  --panel-bg: var(--custom-panel-rgb, rgba(13, 17, 24, 0.76));
  --card-bg: var(--custom-card-rgb, rgba(13, 17, 24, 0.66));
  --field-bg: var(--custom-field, #171d27);
  --text-main: var(--custom-text, #f4f7fb);
  --text-soft: var(--custom-text-soft, #d8e0eb);
  --text-muted: var(--custom-text-muted, #a0acbd);
  --accent: var(--custom-accent, #afe8bd);
  --accent-soft: var(--custom-accent-soft, rgba(175, 232, 189, 0.12));
  --accent-border: var(--custom-accent-border, rgba(175, 232, 189, 0.38));
  --line-soft: var(--custom-line-soft, rgba(200, 210, 224, 0.12));
}

body[data-theme-tone="light"] {
  color: var(--text-main);
}

body[data-theme-tone="light"] :is(
  .app-nav button,
  .nav-toggle,
  .digital-clock,
  .clock-date,
  .weather-temp,
  .weather-summary,
  .mini-module-value,
  .mini-module-meta,
  .panel-inner h1,
  .help-grid strong,
  .command-option,
  .command-option strong,
  .design-grid strong,
  .module-card strong,
  .module-card .module-preview,
  .preview-digital,
  .clock-setting-row,
  .clock-setting-row span,
  .module-action-button,
  .weather-location-form input,
  .weather-location-form button,
  .weather-detail-hero strong,
  .weather-detail-hero em,
  .weather-detail-grid strong,
  .file-page-head strong,
  .file-info strong,
  .file-folder-open,
  .file-drop-zone strong,
  .file-folder-form input,
  .file-folder-select,
  .calendar-day-number,
  .calendar-list-head strong,
  .calendar-popover-head strong,
  .calendar-event strong,
  .calendar-controls input,
  .calendar-popover-card input,
  .calendar-popover-card select,
  .calendar-edit-fields input,
  .admin-card strong,
  .admin-section-head strong,
  .admin-user-row strong,
  .note-title,
  .note-row p,
  .theme-grid strong,
  .theme-color-row strong,
  input,
  textarea
) {
  color: var(--text-main);
}

body[data-theme-tone="light"] :is(
  .weather-location,
  .weather-meta,
  .panel-kicker,
  .help-grid span,
  .design-grid span,
  .module-card span,
  .module-title em,
  .file-info small,
  .file-empty,
  .file-page-head span,
  .calendar-empty,
  .calendar-event small,
  .admin-card span,
  .admin-section-head span,
  .admin-user-row span,
  .note-row small,
  .placeholder-preview,
  .command-option span
) {
  color: var(--text-muted);
}

html {
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html.has-scroll-lower-modules {
  overflow-y: auto;
}

html::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    var(--page-wash),
    var(--page-bg);
  overflow-y: hidden;
  user-select: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: background-color 420ms ease, background 420ms ease, color 420ms ease;
}

body,
button,
input,
textarea,
select,
.app-nav,
.nav-toggle,
.login-card,
.password-input-wrap,
.enter-button,
.clock-wrap,
.clock-date,
.module-stage-lower,
.mini-module-card,
.center-panel,
.panel-inner,
.panel-close,
.command-suggestions,
.command-option,
.theme-color-row,
.theme-tone-row button,
.theme-color-chip,
.theme-picker-button,
.language-grid button,
.module-card,
.module-config,
.clock-setting-row,
.setting-buttons,
.setting-buttons button,
.weather-detail-grid div,
.calendar-controls button,
.calendar-day-cell,
.calendar-event,
.calendar-side,
.calendar-popover-card,
.calendar-popover-card button,
.file-drop-zone,
.file-folder-grid,
.file-folder-drop,
.file-folder-contents,
.file-pathbar,
.file-row,
.note-row,
.note-edit-title,
.note-edit-body,
.note-form-actions button,
.note-actions button {
  transition-property: background, background-color, border-color, color, box-shadow, opacity, transform;
  transition-duration: 420ms;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-theme-transitioning,
body.is-theme-transitioning * {
  transition-property: background, background-color, border-color, color, fill, stroke, box-shadow !important;
  transition-duration: 520ms !important;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}

body.has-scroll-lower-modules {
  overflow-y: auto;
}

body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body.has-center-panel {
  overflow: hidden;
}

body[data-theme="light"] {
  color: var(--text-main);
}

body[data-theme="paper"],
body[data-theme="mint"],
body[data-theme="sunrise"] {
  color: var(--text-main);
}

.nav-toggle,
.app-nav,
.bookmark-dock {
  display: none;
}

body.is-authenticated .app-nav {
  position: fixed;
  left: 24px;
  top: 50%;
  z-index: 20;
  width: 162px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  gap: 12px;
  padding: 0;
  transform: translateY(-50%);
}

.app-nav-title {
  color: #748195;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  padding: 0 0 6px;
  text-transform: uppercase;
}

.app-nav button,
.nav-toggle {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d8e0eb;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  min-height: 36px;
}

.app-nav button {
  text-align: left;
  padding: 0;
}

.app-nav button:hover,
.app-nav button:focus,
.nav-toggle:hover,
.nav-toggle:focus {
  color: var(--accent);
}

body[data-theme="light"] .app-nav {
  background: transparent;
}

body[data-theme="light"] .app-nav-title {
  color: var(--text-muted);
}

body[data-theme="light"] .app-nav button,
body[data-theme="light"] .nav-toggle,
body[data-theme="light"] .bookmark-edge {
  background: transparent;
  color: var(--text-soft);
}

body.is-authenticated .bookmark-dock {
  position: fixed;
  right: 22px;
  top: 50%;
  z-index: 21;
  width: 142px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d8e0eb;
  display: grid;
  gap: 10px;
  padding: 0;
  transform: translateY(-50%);
}

.bookmark-edge {
  min-height: 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d8e0eb;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  padding: 0;
  text-align: right;
}

.bookmark-edge:hover,
.bookmark-edge:focus {
  color: var(--accent);
}

.bookmark-dock-list {
  display: grid;
  gap: 6px;
  justify-items: end;
  max-height: min(44vh, 360px);
  overflow: auto;
  scrollbar-width: none;
}

.bookmark-dock-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.bookmark-dock-list a,
.bookmark-dock-empty,
.bookmark-dock-more {
  max-width: 100%;
  border: 0;
  background: transparent;
  color: #98a5b8;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  overflow: hidden;
  padding: 0;
  text-align: right;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bookmark-dock-list a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.bookmark-dock-list a > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bookmark-dock-list a:hover,
.bookmark-dock-list a:focus,
.bookmark-dock-more:hover,
.bookmark-dock-more:focus {
  color: var(--accent);
}

.bookmark-dock-more {
  cursor: pointer;
}

button,
input,
textarea {
  font: inherit;
}

input,
textarea {
  user-select: text;
}

.shell {
  width: min(960px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px;
}

body.has-scroll-lower-modules .shell {
  min-height: var(--module-scroll-height, 150vh);
}

.login-view {
  position: relative;
  z-index: 12;
  min-height: 100vh;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: transform 920ms cubic-bezier(0.22, 1, 0.36, 1);
}

.has-center-panel .login-view {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  transform: translateY(calc(50vh - 124px));
}

.is-main-scrolled:not(.has-center-panel) .login-view {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  transform: translateY(calc(50vh - 124px));
}

.login-card {
  pointer-events: auto;
}

.has-center-panel .module-stage {
  opacity: 0;
  transform: translateX(-50%) translateY(-10px) scale(0.98);
}

.is-main-scrolled:not(.has-center-panel) .module-stage {
  opacity: 0;
  transform: translateX(-50%) translateY(-18px) scale(0.96);
  pointer-events: none;
}

.login-card {
  border: 1px solid rgba(200, 210, 224, 0.12);
  border-radius: 8px;
  background: rgba(15, 18, 24, 0.86);
}

.login-card {
  position: relative;
  width: min(440px, calc(100vw - 48px));
  border: 0;
  background: transparent;
  padding: 0;
}

.module-stage {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 128px);
  width: min(720px, calc(100vw - 48px));
  color: #e7edf6;
  display: grid;
  place-items: center;
  text-align: center;
  transform: translateX(-50%);
  transition: opacity 380ms cubic-bezier(0.22, 1, 0.36, 1), transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.module-stage-lower {
  position: relative;
  width: min(680px, calc(100vw - 48px));
  margin: -28vh auto 140px;
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 26px;
  align-items: start;
  padding-bottom: 120px;
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

body.has-lower-modules .module-stage-lower {
  display: grid;
}

.is-main-scrolled:not(.has-center-panel) .module-stage-lower {
  margin-top: 64vh;
}

.has-center-panel .module-stage-lower {
  opacity: 0;
  pointer-events: none;
}

.screen-module[hidden] {
  display: none;
}

.screen-module {
  display: grid;
  width: 100%;
}

.module-stage-lower .screen-module {
  place-items: center;
  transform: translateY(-72px);
}

.weather-module {
  transform: translateY(-72px);
}

.clock-module {
  place-items: center;
}

.clock {
  width: 100%;
  min-width: 0;
  color: #e7edf6;
  display: grid;
  place-items: center;
  gap: 24px;
  text-align: center;
  pointer-events: none;
}

.weather-card {
  appearance: none;
  width: 100%;
  min-width: 0;
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 0;
  text-align: center;
}

.weather-card:hover .weather-temp,
.weather-card:focus .weather-temp {
  color: var(--accent);
}

.weather-location {
  color: #8794a7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.weather-temp {
  color: #f4f7fb;
  font-size: clamp(38px, 7vw, 64px);
  font-weight: 900;
  line-height: 0.96;
}

.weather-summary {
  color: #d8e0eb;
  font-size: 15px;
  font-weight: 900;
}

.weather-meta {
  min-height: 18px;
  color: #8794a7;
  font-size: 12px;
  font-weight: 800;
}

.weather-page {
  display: grid;
  gap: 14px;
}

.weather-detail-hero {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 16px 0 8px;
  text-align: center;
}

.weather-detail-hero span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.weather-detail-hero strong {
  color: var(--text-main);
  font-size: clamp(56px, 12vw, 92px);
  font-weight: 900;
  line-height: 0.95;
}

.weather-detail-hero em {
  color: var(--text-soft);
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
}

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

.weather-detail-grid div {
  min-height: 74px;
  border: 1px solid rgba(200, 210, 224, 0.09);
  border-radius: 8px;
  background: rgba(7, 10, 15, 0.18);
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 12px;
}

.weather-detail-grid span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 900;
}

.weather-detail-grid strong {
  color: var(--text-main);
  font-size: 18px;
  font-weight: 900;
}

.weather-detail-actions {
  display: flex;
  gap: 8px;
}

.weather-detail-actions button {
  flex: 1 1 0;
  min-height: 38px;
  border: 1px solid rgba(200, 210, 224, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  cursor: pointer;
  font-weight: 900;
}

.weather-detail-actions button:hover,
.weather-detail-actions button:focus {
  background: rgba(244, 247, 251, 0.1);
  color: var(--text-main);
}

.mini-module-card {
  width: 100%;
  min-width: 0;
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 0;
  text-align: center;
}

button.mini-module-card {
  appearance: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

button.mini-module-card:hover,
button.mini-module-card:focus {
  border-color: transparent;
  background: transparent;
  transform: translateY(-1px);
}

.mini-module-label {
  color: #8794a7;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-module-value {
  color: #f4f7fb;
  font-size: clamp(38px, 7vw, 64px);
  font-weight: 900;
  line-height: 0.96;
}

.mini-module-meta {
  min-height: 16px;
  color: #98a5b8;
  font-size: 12px;
  font-weight: 800;
}

.calendar-card .mini-module-label {
  color: #8794a7;
  font-size: 12px;
  letter-spacing: 0;
}

.calendar-card .mini-module-meta {
  min-height: 18px;
  color: #8794a7;
  font-size: 12px;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.quick-links button {
  min-height: 32px;
  border: 1px solid rgba(200, 210, 224, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: #d8e0eb;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.quick-links button:hover,
.quick-links button:focus {
  background: rgba(244, 247, 251, 0.1);
  color: #f4f7fb;
}

.digital-clock {
  position: relative;
  display: block;
  justify-self: center;
  width: max-content;
  max-width: none;
  font-size: clamp(58px, 10vw, 112px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
  white-space: nowrap;
}

.period-text {
  position: static;
  display: inline-block;
  margin-left: 0;
  vertical-align: baseline;
  color: #8c98aa;
  font-size: 0.22em;
  font-weight: 900;
}

.clock-date {
  color: #8794a7;
  font-size: clamp(13px, 2vw, 17px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.clock.hide-calendar .clock-date {
  display: none;
}

.clock-schedule {
  max-width: min(520px, calc(100vw - 48px));
  overflow: hidden;
  color: var(--accent);
  font-size: clamp(13px, 2vw, 16px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clock.hide-schedule .clock-schedule {
  display: none;
}

.analog-clock {
  display: none;
  position: relative;
  justify-self: center;
  width: clamp(150px, 22vw, 230px);
  aspect-ratio: 1;
  border: 1px solid rgba(215, 225, 240, 0.2);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(244, 247, 251, 0.08), transparent 28%),
    rgba(15, 18, 24, 0.46);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.clock.is-analog .digital-clock {
  display: none;
}

.clock.is-analog .analog-clock {
  display: block;
}

.clock-mark {
  position: absolute;
  width: 4px;
  height: 14px;
  border-radius: 99px;
  background: rgba(231, 237, 246, 0.7);
}

.mark-12 {
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
}

.mark-3 {
  top: 50%;
  right: 14px;
  transform: translateY(-50%) rotate(90deg);
}

.mark-6 {
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
}

.mark-9 {
  top: 50%;
  left: 14px;
  transform: translateY(-50%) rotate(90deg);
}

.hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  border-radius: 99px;
  transform-origin: 50% 100%;
}

.hour-hand {
  width: 7px;
  height: 28%;
  margin-left: -3.5px;
  background: #e7edf6;
}

.minute-hand {
  width: 5px;
  height: 38%;
  margin-left: -2.5px;
  background: #b9c5d6;
}

.second-hand {
  width: 2px;
  height: 42%;
  margin-left: -1px;
  background: #ff8e8e;
}

.clock.hide-seconds .second-hand {
  display: none;
}

.clock-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e7edf6;
  transform: translate(-50%, -50%);
}

.password-row {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
}

.password-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  width: min(440px, 100%);
  justify-self: center;
}

.enter-button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(200, 210, 224, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  color: #d8e0eb;
  font-size: 14px;
  font-weight: 800;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.enter-button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(215, 225, 240, 0.24);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  background: var(--field-bg);
  color: #d8e0eb;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  margin-left: 0;
}

.enter-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.command-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 8;
  width: 100%;
  max-height: min(320px, calc(100vh - 96px));
  border: 1px solid rgba(200, 210, 224, 0.13);
  border-radius: 10px;
  background: rgba(12, 15, 21, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body[data-theme="light"] .command-suggestions {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

.command-suggestions::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.command-suggestions.is-above {
  top: auto;
  bottom: calc(100% + 8px);
  box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.28);
}

.command-option {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #d8e0eb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 10px;
  text-align: left;
}

.command-option strong {
  color: #f4f7fb;
  font-size: 14px;
  font-weight: 900;
}

.command-option span {
  color: #8390a3;
  font-size: 12px;
  font-weight: 800;
}

.command-option:hover,
.command-option.is-selected {
  background: rgba(244, 247, 251, 0.08);
}

.note-form-actions,
.note-actions,
.placeholder-form {
  display: flex;
  gap: 8px;
}

.note-form-actions button,
.note-actions button,
.placeholder-form button {
  min-height: 34px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: var(--card-bg);
  color: var(--text-soft);
  cursor: pointer;
  font-weight: 900;
  padding: 0 12px;
}

.center-panel {
  position: fixed;
  inset: 0;
  z-index: 16;
  display: grid;
  place-items: start center;
  padding: 72px 24px 170px;
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transform: translateY(12px) scale(0.985);
  transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1), transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.center-panel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.center-panel.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.center-panel.is-leaving {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.985);
}

.center-panel[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.panel-inner {
  position: relative;
  width: min(620px, 100%);
  max-height: min(780px, calc(100dvh - 242px));
  border: 1px solid rgba(200, 210, 224, 0.12);
  border-radius: 12px;
  background: var(--panel-bg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.panel-inner-wide {
  width: min(920px, 100%);
}

.center-panel .panel-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 56px;
}

.center-panel .panel-body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.panel-inner::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.panel-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 28px 18px;
}

.panel-body {
  display: grid;
  gap: 18px;
  padding: 0 28px 28px;
}

.panel-close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(200, 210, 224, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  color: #98a5b8;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.panel-close:hover,
.panel-close:focus {
  border-color: rgba(244, 247, 251, 0.3);
  background: rgba(244, 247, 251, 0.08);
  color: #f4f7fb;
  transform: translateY(-1px);
}

.panel-kicker {
  display: none;
  color: #748195;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.panel-inner h1 {
  margin: 0;
  color: #f4f7fb;
  font-size: 34px;
  letter-spacing: 0;
  line-height: 1;
}

body[data-theme="light"] .panel-inner h1,
body[data-theme="light"] .digital-clock,
body[data-theme="light"] .mini-module-value,
body[data-theme="light"] .weather-temp,
body[data-theme="light"] .help-grid strong,
body[data-theme="light"] .design-grid strong,
body[data-theme="light"] .module-card strong,
body[data-theme="light"] .admin-card strong,
body[data-theme="light"] .admin-section-head strong,
body[data-theme="light"] .admin-user-row strong,
body[data-theme="light"] .calendar-day-number,
body[data-theme="light"] .calendar-event strong,
body[data-theme="light"] .calendar-popover-head strong,
body[data-theme="light"] .calendar-month-label,
body[data-theme="light"] .file-row span,
body[data-theme="light"] .file-info strong,
body[data-theme="light"] .link-row .file-info strong,
body[data-theme="light"] .command-option strong {
  color: var(--text-main);
}

body[data-theme="light"] .panel-kicker,
body[data-theme="light"] .help-section h2,
body[data-theme="light"] .help-grid span,
body[data-theme="light"] .module-card span,
body[data-theme="light"] .clock-setting-row span,
body[data-theme="light"] .admin-card span,
body[data-theme="light"] .admin-section-head span,
body[data-theme="light"] .admin-user-row span,
body[data-theme="light"] .admin-empty,
body[data-theme="light"] .calendar-weekday,
body[data-theme="light"] .calendar-empty,
body[data-theme="light"] .calendar-event small,
body[data-theme="light"] .file-empty,
body[data-theme="light"] .file-row small,
body[data-theme="light"] .file-info small,
body[data-theme="light"] .link-row .file-info small,
body[data-theme="light"] .command-option span,
body[data-theme="light"] .message {
  color: var(--text-muted);
}

body[data-theme="light"] .panel-close,
body[data-theme="light"] .enter-button,
body[data-theme="light"] .module-action-button,
body[data-theme="light"] .weather-location-form button,
body[data-theme="light"] .file-upload-form button,
body[data-theme="light"] .link-form button,
body[data-theme="light"] .calendar-controls button,
body[data-theme="light"] .calendar-popover-card button,
body[data-theme="light"] .setting-buttons button,
body[data-theme="light"] .quick-links button {
  color: var(--text-soft);
}

.help-grid {
  display: grid;
  gap: 8px;
}

#help-panel .panel-body {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.help-section {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.help-section h2 {
  margin: 0;
  color: #8794a7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.help-grid div {
  min-height: 52px;
  border-bottom: 1px solid rgba(200, 210, 224, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.help-grid div:last-child {
  border-bottom: 0;
}

.help-grid strong {
  color: #f4f7fb;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.help-grid span {
  color: #98a5b8;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  line-height: 1.45;
}

.design-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.theme-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-width: 0;
}

.theme-page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.settings-section {
  display: grid;
  gap: 12px;
}

.settings-section h2 {
  margin: 0;
  color: #8794a7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.theme-color-row {
  position: relative;
  z-index: 1;
  min-height: 64px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text-main);
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-align: left;
}

.theme-tone-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.theme-tone-row button {
  min-height: 42px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.theme-tone-row button:hover,
.theme-tone-row button:focus,
.theme-tone-row button.is-active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--text-main);
}

.theme-color-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.theme-color-chip {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: var(--chip-color);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: pointer;
  padding: 0;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.theme-color-chip:hover,
.theme-color-chip:focus,
.theme-color-chip.is-active {
  border-color: var(--accent-border);
  box-shadow:
    0 0 0 3px var(--accent-soft),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.language-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.language-title {
  color: #8794a7;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
}

.language-grid button {
  position: relative;
  z-index: 2;
  min-height: 34px;
  border: 1px solid rgba(200, 210, 224, 0.11);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.028);
  color: #d8e0eb;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.language-grid button:hover,
.language-grid button:focus,
.language-grid button.is-active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--text-main);
}

body[data-theme="light"] .theme-grid button,
body[data-theme="light"] .language-grid button,
body[data-theme="light"] .admin-card,
body[data-theme="light"] .module-config,
body[data-theme="light"] .design-grid button,
body[data-theme="light"] .module-card,
body[data-theme="light"] .clock-setting-row,
body[data-theme="light"] .calendar-day-cell,
body[data-theme="light"] .calendar-event,
body[data-theme="light"] .calendar-side,
body[data-theme="light"] .calendar-popover-card,
body[data-theme="light"] .file-row,
body[data-theme="light"] .admin-user-row {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.58);
}

body[data-theme="light"] .calendar-month-label {
  border-bottom-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.92);
}

body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .command-suggestions,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .theme-grid button,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .language-grid button,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .admin-card,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .module-config,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .design-grid button,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .module-card,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .clock-setting-row,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .calendar-day-cell,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .calendar-event,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .calendar-side,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .calendar-popover-card,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .file-row,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .admin-user-row {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.58);
}

body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .app-nav {
  border: 0;
  background: transparent;
  box-shadow: none;
}

body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .app-nav-title,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .panel-kicker,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .settings-section h2,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .help-section h2,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .language-title,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .weather-location,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .clock-date,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .file-page-head {
  color: var(--text-muted);
}

body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .app-nav button,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .nav-toggle,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .help-grid span,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .module-card span,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .design-grid span,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .file-drop-zone em {
  color: var(--text-soft);
}

body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .panel-inner h1,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .digital-clock,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .mini-module-value,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .weather-temp,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .help-grid strong,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .design-grid strong,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .module-card strong,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .admin-card strong,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .admin-section-head strong,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .admin-user-row strong,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .calendar-day-number,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .calendar-event strong,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .calendar-popover-head strong,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .calendar-month-label,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .file-row span,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .file-info strong,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .command-option strong {
  color: var(--text-main);
}

body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .panel-kicker,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .help-section h2,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .help-grid span,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .module-card span,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .clock-setting-row span,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .admin-card span,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .admin-section-head span,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .admin-user-row span,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .admin-empty,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .calendar-weekday,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .calendar-empty,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .calendar-event small,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .file-empty,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .file-row small,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .file-info small,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .command-option span,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .message {
  color: var(--text-muted);
}

body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) input,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) textarea,
body:is([data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .calendar-popover-card select {
  border-color: rgba(15, 23, 42, 0.16);
  background: var(--field-bg);
  color: var(--text-main);
}

body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .panel-inner,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .command-suggestions,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .calendar-popover-card {
  box-shadow: 0 18px 54px rgba(35, 45, 58, 0.11);
}

body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) input,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) textarea {
  box-shadow: 0 10px 28px rgba(35, 45, 58, 0.08);
}

body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) input:focus,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) textarea:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 10px 28px rgba(35, 45, 58, 0.06);
}

body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .command-suggestions {
  background: rgba(255, 255, 255, 0.96);
}

body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .weather-detail-grid div,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .preview-analog,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .preview-digital,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .module-preview,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .clock-setting-row,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .setting-buttons,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .calendar-controls button,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .calendar-popover-card button,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .file-pathbar,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .file-folder-grid,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .file-folder-drop,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .file-folder-contents,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .file-drop-zone,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .note-row,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .note-row.is-editing {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
}

body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .note-edit-title,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .note-edit-body,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .file-folder-form input {
  border-color: rgba(15, 23, 42, 0.16);
  background: var(--field-bg);
  color: var(--text-main);
}

body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .setting-buttons button,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .file-row-secondary,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .file-row-folder {
  color: var(--text-soft);
}

body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .setting-buttons button:hover,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .setting-buttons button:focus,
body:is([data-theme="light"], [data-theme="paper"], [data-theme="mint"], [data-theme="sunrise"]) .setting-buttons button.is-active {
  background: var(--accent-soft);
  color: var(--text-main);
}

.app-nav-title,
.weather-location,
.weather-meta,
.clock-date,
.clock-schedule,
.panel-kicker,
.help-section h2,
.settings-section h2,
.language-title,
.file-page-head,
.file-empty,
.file-row small,
.file-info small,
.note-row small,
.calendar-weekday,
.calendar-empty,
.calendar-event small,
.admin-empty,
.message,
.placeholder-preview,
.command-option span {
  color: var(--text-muted);
}

.app-nav button,
.nav-toggle,
.weather-summary,
.help-grid span,
.module-card span,
.design-grid span,
.clock-setting-row span,
.admin-card span,
.admin-section-head span,
.admin-user-row span,
.file-drop-zone em,
.file-folder-button,
.setting-buttons button,
label {
  color: var(--text-soft);
}

.panel-close,
.note-form-actions button,
.note-actions button,
.placeholder-form button,
.language-grid button,
.file-folder-form button,
.weather-detail-actions button {
  color: var(--text-soft);
}

.theme-grid strong {
  color: var(--text-main);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.theme-swatch {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 56px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.theme-swatch-default {
  background: linear-gradient(135deg, #080a0e 0 40%, #17202c 40% 72%, #afe8bd 72% 100%);
}

.theme-swatch-blue {
  background: linear-gradient(135deg, #070d18 0 40%, #101d31 40% 72%, #82bfff 72% 100%);
}

.theme-swatch-green {
  background: linear-gradient(135deg, #06110c 0 40%, #10241a 40% 72%, #8df0ad 72% 100%);
}

.theme-swatch-rose {
  background: linear-gradient(135deg, #150910 0 40%, #291420 40% 72%, #ff9fbd 72% 100%);
}

.theme-swatch-mono {
  background: linear-gradient(135deg, #080808 0 40%, #1b1b1b 40% 72%, #f2f2f2 72% 100%);
}

.theme-swatch-light {
  background: linear-gradient(135deg, #eef3f8 0 40%, #ffffff 40% 72%, #2563eb 72% 100%);
}

.theme-swatch-paper {
  background: linear-gradient(135deg, #f6f3ed 0 40%, #fffdf8 40% 72%, #1d6b5e 72% 100%);
}

.theme-swatch-mint {
  background: linear-gradient(135deg, #effaf5 0 40%, #ffffff 40% 72%, #16a34a 72% 100%);
}

.theme-swatch-sunrise {
  background: linear-gradient(135deg, #fff3eb 0 40%, #ffffff 40% 72%, #db2777 72% 100%);
}

.theme-swatch-aqua {
  background: linear-gradient(135deg, #061114 0 40%, #10272d 40% 72%, #6ee7f9 72% 100%);
}

.theme-swatch-ember {
  background: linear-gradient(135deg, #140d09 0 40%, #281a12 40% 72%, #ffb86b 72% 100%);
}

.theme-swatch-neon {
  background: linear-gradient(135deg, #070712 0 40%, #17172d 40% 72%, #66f5d8 72% 100%);
}

.theme-swatch-custom {
  background: linear-gradient(135deg, var(--custom-page, #080a0e) 0 40%, var(--custom-panel, #0d1118) 40% 72%, var(--custom-accent, #afe8bd) 72% 100%);
}

.custom-theme-form {
  position: fixed;
  left: -100px;
  top: -100px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  grid-column: 1 / -1;
  z-index: 1000;
}

.language-panel {
  grid-column: 1 / -1;
}

.custom-theme-form input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.theme-picker-button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: var(--field-bg);
  color: var(--text-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.theme-picker-button:hover,
.theme-picker-button:focus {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--text-main);
}

.theme-picker-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.module-config {
  border: 1px solid rgba(200, 210, 224, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.024);
  overflow: hidden;
  opacity: 0.72;
  min-width: 0;
  transition: opacity 160ms ease, border-color 160ms ease, background 160ms ease;
}

.module-config.is-enabled {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  opacity: 1;
}

.design-grid button,
.module-card {
  min-height: 150px;
  border: 1px solid rgba(200, 210, 224, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.028);
  color: #d8e0eb;
  cursor: pointer;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.module-card {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(200, 210, 224, 0.08);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.018);
}

.module-detail {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.design-preview,
.module-preview {
  width: 100%;
  height: 58px;
  border: 1px solid rgba(200, 210, 224, 0.1);
  border-radius: 7px;
  background: rgba(7, 10, 15, 0.48);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  overflow: hidden;
}

.module-preview {
  color: #eef4fb;
  font-size: 28px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.preview-digital {
  color: #eef4fb;
  font-size: 28px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.preview-analog {
  position: relative;
  width: 100%;
  height: 58px;
  border-radius: 7px;
  background:
    radial-gradient(circle at center, rgba(244, 247, 251, 0.08), transparent 26%),
    rgba(7, 10, 15, 0.48);
  box-shadow: none;
}

.preview-analog::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(215, 225, 240, 0.2);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(244, 247, 251, 0.12), transparent 28%),
    rgba(15, 18, 24, 0.62);
  box-shadow: inset 0 0 0 1px rgba(215, 225, 240, 0.08);
  transform: translate(-50%, -50%);
}

.preview-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  border-radius: 99px;
  transform-origin: 50% 100%;
}

.preview-hour {
  z-index: 1;
  width: 3px;
  height: 14px;
  margin-left: -1.5px;
  background: #eef4fb;
  transform: rotate(330deg);
}

.preview-minute {
  z-index: 1;
  width: 2px;
  height: 19px;
  margin-left: -1px;
  background: #aebbd0;
  transform: rotate(70deg);
}

.preview-pin {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #eef4fb;
  transform: translate(-50%, -50%);
}

.design-grid button:hover,
.design-grid button:focus,
.module-card:hover,
.module-card:focus {
  border-color: rgba(244, 247, 251, 0.28);
  background: rgba(244, 247, 251, 0.08);
  color: #f4f7fb;
  transform: translateY(-1px);
}

.design-grid button.is-active,
.module-card.is-active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.design-grid strong,
.module-card strong {
  color: #f4f7fb;
  font-size: 18px;
  font-weight: 900;
}

.module-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.module-title em {
  min-width: 42px;
  border: 1px solid rgba(200, 210, 224, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #8794a7;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  padding: 6px 8px;
  text-align: center;
}

.module-config.is-enabled .module-title em {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
}

.design-grid span,
.module-card span {
  color: #8794a7;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.module-card .module-preview {
  color: #eef4fb;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.module-preview-weather {
  background:
    radial-gradient(circle at 24% 26%, var(--accent-soft), transparent 26%),
    rgba(7, 10, 15, 0.48);
}

.clock-settings {
  border-top: 1px solid rgba(200, 210, 224, 0.08);
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
}

.clock-setting-row {
  min-height: 48px;
  border: 1px solid rgba(200, 210, 224, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.024);
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 8px 10px 8px 14px;
}

.weather-location-row {
  align-items: stretch;
  flex-direction: column;
}

.weather-location-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  width: 100%;
}

.weather-location-form input {
  min-height: 36px;
  border: 1px solid rgba(200, 210, 224, 0.1);
  border-radius: 7px;
  background: rgba(7, 10, 15, 0.34);
  color: #f4f7fb;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  outline: 0;
  padding: 0 10px;
}

.weather-location-form input:focus {
  border-color: rgba(244, 247, 251, 0.28);
  box-shadow: 0 0 0 2px rgba(244, 247, 251, 0.06);
}

.weather-location-form button {
  min-width: 54px;
  min-height: 36px;
  border: 1px solid rgba(200, 210, 224, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: #d8e0eb;
  cursor: pointer;
  font-weight: 900;
}

.weather-location-form button:hover,
.weather-location-form button:focus {
  background: rgba(244, 247, 251, 0.1);
  color: #f4f7fb;
}

.module-action-button {
  min-height: 38px;
  border: 1px solid rgba(200, 210, 224, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: #d8e0eb;
  cursor: pointer;
  font-weight: 900;
}

.module-action-button:hover,
.module-action-button:focus {
  background: rgba(244, 247, 251, 0.1);
  color: #f4f7fb;
}

.file-page {
  display: grid;
  gap: 12px;
  min-height: 0;
}

.links-page {
  display: grid;
  gap: 14px;
}

.link-form {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr) auto;
  gap: 8px;
}

.link-form button {
  min-height: 42px;
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  padding: 0 14px;
}

.link-form button:hover,
.link-form button:focus {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

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

.link-row {
  min-height: 50px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
}

.link-row:hover,
.link-row:focus-within {
  background: rgba(255, 255, 255, 0.04);
}

.link-row a,
.link-row button {
  min-height: 28px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  padding: 0 9px;
  text-decoration: none;
}

.link-row a,
.link-row button[data-edit-link] {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.link-row a:hover,
.link-row a:focus,
.link-row button[data-edit-link]:hover,
.link-row button[data-edit-link]:focus {
  background: var(--accent-soft);
}

.link-row button[data-link-id] {
  border: 1px solid rgba(255, 120, 120, 0.18);
  background: rgba(255, 80, 80, 0.06);
  color: #ff9f9f;
  cursor: pointer;
}

.link-row button[data-link-id]:hover,
.link-row button[data-link-id]:focus {
  border-color: rgba(255, 150, 150, 0.34);
  background: rgba(255, 90, 90, 0.12);
  color: #ffc1c1;
}

.link-row button[data-confirm="ready"] {
  border-color: rgba(255, 175, 120, 0.42);
  background: rgba(255, 130, 70, 0.14);
  color: #ffd0ac;
}

.link-row.is-editing {
  grid-template-columns: 1fr;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
}

.link-edit-url,
.link-edit-title {
  min-height: 40px;
  border-radius: 8px;
  box-shadow: none;
  font-size: 14px;
}

.link-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.link-edit-actions button {
  min-height: 30px;
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
}

.link-edit-actions button[data-save-link] {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
}

.bookmark-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-grid;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  place-items: center;
  text-transform: uppercase;
}

.bookmark-icon img {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  display: block;
  object-fit: contain;
}

.admin-page {
  display: grid;
  gap: 18px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-card {
  min-height: 112px;
  border: 1px solid rgba(200, 210, 224, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.028);
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 16px;
}

.admin-card span,
.admin-section-head span,
.admin-user-row span,
.admin-empty {
  color: #8794a7;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.admin-card strong {
  color: #f4f7fb;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-section-head strong {
  color: #f4f7fb;
  font-size: 14px;
  font-weight: 900;
}

.admin-user-list {
  display: grid;
  gap: 8px;
}

.admin-user-row {
  min-height: 48px;
  border: 1px solid rgba(200, 210, 224, 0.08);
  border-radius: 8px;
  background: rgba(7, 10, 15, 0.28);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 4px 14px;
  padding: 10px 12px;
}

.admin-user-row strong {
  color: #f4f7fb;
  font-size: 14px;
  font-weight: 900;
}

.admin-user-row .admin-user-storage {
  color: var(--accent);
  font-weight: 900;
  white-space: nowrap;
}

.admin-user-row .admin-user-usage {
  grid-column: 2 / 5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-delete {
  min-height: 30px;
  border: 1px solid rgba(255, 160, 140, 0.22);
  border-radius: 7px;
  background: rgba(255, 90, 70, 0.08);
  color: #ffb7ae;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 0 10px;
}

.admin-user-delete:hover,
.admin-user-delete:focus,
.admin-user-delete[data-confirm="ready"] {
  border-color: rgba(255, 160, 140, 0.42);
  background: rgba(255, 90, 70, 0.18);
}

.admin-user-delete:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.calendar-panel-inner {
  max-height: min(720px, calc(100dvh - 242px));
}

.calendar-page {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 0;
}

.calendar-controls {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  gap: 8px;
}

.calendar-workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.75fr);
  gap: 12px;
  align-items: stretch;
}

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

.calendar-weekday,
.calendar-day-cell {
  min-width: 0;
  border-radius: 7px;
  text-align: left;
}

.calendar-weekday {
  color: #8794a7;
  font-size: 11px;
  font-weight: 900;
  padding: 0 4px;
  text-transform: uppercase;
}

.calendar-day-cell {
  min-height: 62px;
  border: 1px solid rgba(200, 210, 224, 0.08);
  background: rgba(7, 10, 15, 0.24);
  color: #d8e0eb;
  cursor: pointer;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 8px;
}

.calendar-day-cell:hover,
.calendar-day-cell:focus {
  border-color: rgba(244, 247, 251, 0.22);
  background: rgba(244, 247, 251, 0.07);
}

.calendar-day-cell.is-muted {
  opacity: 0.38;
}

.calendar-day-cell.is-selected {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.calendar-day-number {
  color: #f4f7fb;
  font-size: 12px;
  font-weight: 900;
}

.calendar-day-dot {
  width: 100%;
  overflow: hidden;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-controls input,
.calendar-popover-card input,
.calendar-popover-card select,
.calendar-edit-fields input {
  min-height: 38px;
  min-width: 0;
  border: 1px solid rgba(200, 210, 224, 0.1);
  border-radius: 7px;
  background: rgba(7, 10, 15, 0.34);
  color: #d8e0eb;
  font-size: 12px;
  font-weight: 800;
  padding: 8px;
}

.calendar-controls button,
.calendar-popover-card button,
.calendar-delete {
  min-height: 38px;
  border: 1px solid rgba(200, 210, 224, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: #d8e0eb;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 0 10px;
}

.calendar-controls button:hover,
.calendar-controls button:focus,
.calendar-popover-card button:hover,
.calendar-popover-card button:focus,
.calendar-delete:hover,
.calendar-delete:focus {
  background: rgba(244, 247, 251, 0.1);
  color: #f4f7fb;
}

.calendar-side {
  min-height: 0;
  max-height: min(506px, calc(100vh - 260px));
  border: 1px solid rgba(200, 210, 224, 0.08);
  border-radius: 8px;
  background: rgba(7, 10, 15, 0.18);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
}

.calendar-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #8794a7;
  font-size: 12px;
  font-weight: 900;
}

.calendar-list-head strong {
  color: #f4f7fb;
  font-size: 14px;
}

.calendar-list {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.calendar-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.calendar-popover {
  position: absolute;
  right: 14px;
  top: 58px;
  z-index: 8;
  width: min(340px, calc(100% - 28px));
}

.calendar-popover-card {
  border: 1px solid rgba(200, 210, 224, 0.14);
  border-radius: 10px;
  background: rgba(12, 15, 21, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  display: grid;
  gap: 8px;
  padding: 12px;
}

.calendar-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.calendar-popover-head strong {
  color: #f4f7fb;
  font-size: 14px;
  font-weight: 900;
}

.calendar-popover-head button {
  min-width: 30px;
  min-height: 30px;
  border-radius: 50%;
  padding: 0;
}

.calendar-popover-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.calendar-month-group {
  display: grid;
  gap: 8px;
}

.calendar-month-label {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid rgba(200, 210, 224, 0.08);
  background: rgba(8, 10, 14, 0.92);
  color: #f4f7fb;
  font-size: 12px;
  font-weight: 900;
  padding: 2px 0 8px;
}

.calendar-day-group {
  display: grid;
  gap: 6px;
}

.calendar-day-label {
  color: #8794a7;
  font-size: 12px;
  font-weight: 900;
}

.calendar-event {
  min-height: 40px;
  border: 1px solid rgba(200, 210, 224, 0.08);
  border-radius: 7px;
  background: rgba(7, 10, 15, 0.28);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
}

.calendar-event strong {
  color: #f4f7fb;
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event small,
.calendar-empty {
  color: #8794a7;
  font-size: 12px;
  font-weight: 800;
}

.calendar-delete {
  min-height: 28px;
  border-color: rgba(255, 120, 120, 0.18);
  background: rgba(255, 80, 80, 0.06);
  color: #ff9f9f;
}

.calendar-edit-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.calendar-edit-fields input {
  min-height: 32px;
  min-width: 0;
  border: 1px solid rgba(200, 210, 224, 0.1);
  border-radius: 6px;
  background: rgba(7, 10, 15, 0.34);
  color: #d8e0eb;
  font-size: 12px;
  font-weight: 800;
  padding: 6px;
}

.file-upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 8px;
  align-items: stretch;
}

.file-drop-zone {
  min-height: 72px;
  border: 1px solid rgba(200, 210, 224, 0.11);
  border-radius: 8px;
  background: rgba(7, 10, 15, 0.22);
  cursor: pointer;
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  transition: border-color 160ms ease, background 160ms ease;
}

.file-drop-zone:hover,
.file-drop-zone:focus-within,
.file-drop-zone.is-dragging {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.file-drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-drop-zone span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.file-drop-zone strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-drop-zone em {
  color: #8794a7;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.file-upload-form button {
  min-width: 0;
  border: 1px solid rgba(200, 210, 224, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: #d8e0eb;
  cursor: pointer;
  font-weight: 900;
}

.file-upload-form button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.file-folder-tools {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(200, 210, 224, 0.08);
  border-radius: 8px;
  background: rgba(7, 10, 15, 0.16);
  padding: 8px;
}

.file-pathbar {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.file-pathbar > button,
.file-breadcrumb button {
  min-height: 34px;
  border: 1px solid rgba(200, 210, 224, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 0 10px;
}

.file-pathbar > button:disabled {
  cursor: default;
  opacity: 0.45;
}

#file-folder-up {
  color: var(--accent);
}

#file-folder-add-open {
  color: var(--accent);
}

.file-breadcrumb {
  min-width: 0;
  min-height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 0 2px;
}

.file-breadcrumb span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.file-explorer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.78fr);
  gap: 12px;
  min-height: 320px;
  max-height: min(540px, calc(100dvh - 330px));
}

.file-page-simple .file-folder-tools,
.file-page-simple .file-folder-preview {
  display: none;
}

.file-page-simple .file-explorer {
  grid-template-columns: 1fr;
  min-height: 300px;
  max-height: min(560px, calc(100dvh - 300px));
}

.file-page-simple .file-row {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
}

.file-folder-list {
  display: grid;
  gap: 4px;
  align-content: start;
  border: 1px solid rgba(200, 210, 224, 0.08);
  border-radius: 8px;
  background: rgba(7, 10, 15, 0.14);
  padding: 6px;
}

.file-explorer-main {
  border: 1px solid rgba(200, 210, 224, 0.08);
  border-radius: 8px;
  background: rgba(7, 10, 15, 0.13);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  min-height: 0;
  padding: 10px;
}

.file-folder-preview {
  border: 1px solid rgba(200, 210, 224, 0.08);
  border-radius: 8px;
  background: rgba(7, 10, 15, 0.1);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  min-height: 0;
  padding: 10px;
}

.file-folder-button {
  min-height: 34px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  padding: 0 10px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.file-folder-button:hover,
.file-folder-button:focus,
.file-folder-button.is-active {
  background: var(--accent-soft);
  color: var(--text-main);
}

.file-folder-button small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.file-folder-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.file-folder-form[hidden] {
  display: none;
}

.file-folder-form input,
.file-folder-select {
  min-width: 0;
  min-height: 34px;
  border: 1px solid rgba(200, 210, 224, 0.1);
  border-radius: 7px;
  background: rgba(7, 10, 15, 0.34);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 800;
  padding: 0 9px;
}

.file-folder-form button {
  min-height: 34px;
  border: 1px solid rgba(200, 210, 224, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 0 12px;
}

.file-list {
  display: grid;
  gap: 4px;
  align-content: start;
  border: 0;
  border-radius: 0;
  background: transparent;
  min-height: 0;
  overflow-y: auto;
  padding: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.file-folder-contents {
  border: 0;
  background: transparent;
  min-height: 0;
  overflow-y: auto;
}

.file-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  border-bottom: 1px solid rgba(200, 210, 224, 0.07);
  color: #8794a7;
  font-size: 12px;
  font-weight: 900;
  padding-bottom: 8px;
}

.file-page-head strong {
  color: #f4f7fb;
  font-size: 14px;
}

.file-row {
  min-height: 48px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 170px) auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
}

.file-row:hover,
.file-row:focus-within {
  background: rgba(255, 255, 255, 0.04);
}

button.file-row {
  width: 100%;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.file-folder-row {
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid rgba(200, 210, 224, 0.06);
  background: rgba(255, 255, 255, 0.024);
}

.file-folder-row:hover,
.file-folder-row:focus-within {
  background: rgba(255, 255, 255, 0.055);
}

.file-folder-open {
  min-width: 0;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: grid;
  padding: 0;
  text-align: left;
}

.file-folder-open:hover .file-info strong,
.file-folder-open:focus .file-info strong {
  color: var(--accent);
}

.file-folder-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.file-folder-action {
  min-height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 0 8px;
}

.file-folder-action:hover,
.file-folder-action:focus {
  background: var(--accent-soft);
}

.file-row-secondary {
  border-bottom: 1px solid rgba(200, 210, 224, 0.05);
}

.file-row-action {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.file-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.file-info strong {
  color: #f4f7fb;
  font-size: 14px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-info small,
.file-empty {
  color: #8794a7;
  font-size: 12px;
  font-weight: 800;
}

.file-row a {
  min-height: 28px;
  border-radius: 6px;
  color: var(--accent);
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  padding: 0 8px;
  text-decoration: none;
}

.file-row a:hover,
.file-row a:focus {
  background: var(--accent-soft);
}

.file-share {
  min-height: 28px;
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 0 9px;
}

.file-share:hover,
.file-share:focus {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.file-share:disabled {
  cursor: wait;
  opacity: 0.62;
}

.file-delete {
  min-height: 28px;
  border: 1px solid rgba(255, 120, 120, 0.18);
  border-radius: 6px;
  background: rgba(255, 80, 80, 0.06);
  color: #ff9f9f;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 0 9px;
}

.file-delete:hover,
.file-delete:focus {
  border-color: rgba(255, 150, 150, 0.34);
  background: rgba(255, 90, 90, 0.12);
  color: #ffc1c1;
}

.file-delete[data-confirm="ready"] {
  border-color: rgba(255, 175, 120, 0.42);
  background: rgba(255, 130, 70, 0.14);
  color: #ffd0ac;
}

.file-delete:disabled {
  cursor: wait;
  opacity: 0.55;
}

.notes-page {
  display: grid;
  gap: 14px;
}

.note-form {
  display: grid;
  gap: 10px;
}

.note-form-actions {
  justify-content: flex-end;
}

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

.note-row {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--card-bg);
  display: grid;
  gap: 8px;
  padding: 12px;
}

.note-row p {
  max-height: 150px;
  margin: 0;
  overflow: auto;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
}

.note-title {
  color: var(--text-main);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
  user-select: text;
  -webkit-user-select: text;
}

.note-row small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.note-row.is-editing {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.note-edit-title,
.note-edit-body {
  border-color: var(--line-soft);
  background: var(--field-bg);
  color: var(--text-main);
}

.note-edit-title {
  min-height: 38px;
  font-size: 14px;
  font-weight: 900;
}

.note-edit-body {
  min-height: 132px;
  font-size: 14px;
  font-weight: 800;
}

.note-actions {
  justify-content: flex-end;
}

.note-actions button[data-confirm="ready"] {
  border-color: rgba(255, 175, 120, 0.42);
  background: rgba(255, 130, 70, 0.14);
  color: #ffd0ac;
}

.note-actions button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.placeholder-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(88px, 120px));
  align-items: center;
}

.account-delete-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.44fr) auto;
  gap: 8px;
  align-items: center;
}

.account-delete-form input {
  min-height: 36px;
  border-radius: 7px;
  font-size: 14px;
}

.placeholder-form button.is-active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--text-main);
}

.placeholder-preview {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.placeholder-preview span {
  color: var(--text-main);
}

.account-delete-form button {
  min-height: 36px;
  border: 1px solid rgba(255, 160, 140, 0.24);
  border-radius: 7px;
  background: rgba(255, 90, 70, 0.1);
  color: #ffb7ae;
  cursor: pointer;
  font-weight: 900;
  padding: 0 12px;
}

.account-delete-form button:hover,
.account-delete-form button:focus {
  border-color: rgba(255, 160, 140, 0.42);
  background: rgba(255, 90, 70, 0.18);
}

.account-delete-form button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.clock-setting-row span {
  color: #8794a7;
  font-size: 13px;
  font-weight: 900;
}

.setting-buttons {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(200, 210, 224, 0.08);
  border-radius: 9px;
  background: rgba(7, 10, 15, 0.34);
}

.setting-buttons button {
  min-width: 48px;
  min-height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #d8e0eb;
  cursor: pointer;
  font-weight: 900;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.setting-buttons button:hover,
.setting-buttons button:focus {
  background: rgba(244, 247, 251, 0.08);
  color: #f4f7fb;
}

.setting-buttons button.is-active {
  background: var(--accent-soft);
  color: #f4f7fb;
}

label {
  display: grid;
  gap: 9px;
  color: #d8e0eb;
  font-size: 14px;
  font-weight: 800;
}

.password-control label {
  flex: 1;
  min-width: 0;
}

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

input,
textarea {
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--field-bg);
  color: var(--text-main);
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

body[data-theme="custom"] input,
body[data-theme="custom"] textarea,
body[data-theme="custom"] .calendar-popover-card select,
body[data-theme="custom"] .note-edit-title,
body[data-theme="custom"] .note-edit-body {
  border-color: var(--line-soft);
  background: var(--field-bg);
  color: var(--text-main);
}

body[data-theme="custom"] input::placeholder,
body[data-theme="custom"] textarea::placeholder,
body[data-theme="custom"] .note-edit-title::placeholder,
body[data-theme="custom"] .note-edit-body::placeholder {
  color: var(--text-muted);
}

input {
  min-height: 48px;
  border-radius: 10px 0 0 10px;
  padding: 0 16px;
  font-size: 17px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
}

#command-textarea {
  min-height: 140px;
  border-radius: 10px 0 0 10px;
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.5;
  resize: vertical;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
}

.password-form.is-note-command .password-control {
  align-items: stretch;
}

.password-form.is-note-command .enter-button {
  min-height: 140px;
}

textarea {
  min-height: 150px;
  resize: vertical;
  padding: 14px;
  line-height: 1.6;
}

input:focus,
textarea:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.password-control label:focus-within + .enter-button {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.primary-button {
  border: 1px solid #e7eef8;
  background: #e7eef8;
  color: #0b0f16;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  min-height: 44px;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.message {
  min-height: 22px;
  margin-top: 12px;
  color: #98a5b8;
  font-size: 14px;
  line-height: 1.55;
}

.login-message {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 42px);
  min-height: 0;
  margin: 0;
  max-width: min(460px, calc(100vw - 40px));
  opacity: 0;
  pointer-events: none;
  text-align: center;
  color: #cfd7e4;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
  white-space: nowrap;
}

.login-message.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.message.error {
  color: #ffbeb5;
}

.message.ok {
  color: var(--accent);
}

@media (max-width: 640px) {
  body.is-authenticated .nav-toggle {
    position: fixed;
    left: 14px;
    top: 14px;
    z-index: 31;
    display: inline-grid;
    place-items: center;
    min-width: 0;
    min-height: 36px;
    padding: 0;
  }

  body.is-authenticated .app-nav {
    left: 14px;
    top: 48px;
    z-index: 30;
    width: min(220px, calc(100vw - 28px));
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  body.is-authenticated.is-nav-open .app-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.is-authenticated .bookmark-dock {
    right: 14px;
    top: 56px;
    width: min(136px, calc(50vw - 20px));
    transform: none;
  }

  .bookmark-edge,
  .bookmark-dock-list a,
  .bookmark-dock-empty,
  .bookmark-dock-more {
    font-size: 13px;
  }

  .shell {
    padding: 20px;
  }

  .login-card {
    padding: 0;
  }

  .module-stage {
    bottom: calc(100% + 76px);
  }

  .module-stage-lower {
    width: min(340px, calc(100vw - 40px));
    margin-top: -22vh;
    grid-template-columns: 1fr;
  }

  .is-main-scrolled:not(.has-center-panel) .module-stage-lower {
    margin-top: 68vh;
  }

  .has-center-panel .login-view {
    transform: translateY(calc(50vh - 94px));
  }

  .is-main-scrolled:not(.has-center-panel) .login-view {
    transform: translateY(calc(50vh - 94px));
  }

  .center-panel {
    padding: 42px 18px 128px;
  }

  .panel-inner {
    max-height: calc(100dvh - 170px);
  }

  .panel-head {
    padding: 22px 22px 14px;
  }

  .panel-body {
    padding: 0 22px 22px;
  }

  #help-panel .panel-body,
  .theme-page,
  .calendar-workspace,
  .module-grid,
  .admin-grid,
  .file-upload-form,
  .file-folder-form,
  .file-explorer,
  .file-pathbar,
  .file-row,
  .link-form,
  .link-row,
  .custom-theme-form,
  .placeholder-form,
  .account-delete-form,
  .calendar-controls,
  .calendar-popover-row,
  .calendar-edit-fields {
    grid-template-columns: 1fr;
  }

  .admin-user-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .calendar-day-cell {
    min-height: 58px;
    padding: 6px;
  }

  .help-grid div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
  }

  .help-grid span {
    text-align: left;
  }

  .design-grid,
  .theme-grid {
    grid-template-columns: 1fr;
  }

}
