/* EZPlan — 데스크톱형 일정 UI */

:root {
  color-scheme: light;
  --ez-border-grid: rgba(60, 64, 67, 0.09);
  --ez-border-hair: 0.5px solid rgba(60, 64, 67, 0.1);
  --ez-cell-gutter: rgba(60, 64, 67, 0.09);
  --ez-text: #2d2f31;
  --ez-text-muted: #5f6368;
  --ez-bg-body: #f8f9fa;
  --ez-bg-surface: #ffffff;
  --ez-bg-surface-alt: #fafbfc;
  --ez-bg-muted: #f8f9fa;
  --ez-bg-hover: #f1f3f4;
  --ez-bg-hover-light: #fafafa;
  --ez-brand-title: #202124;
  --ez-icon-color: #5f6368;
  --ez-tab-bg: #ffffff;
  --ez-tab-hover-bg: #f8f9fa;
  --ez-tab-active-bg: #e8f0fe;
  --ez-tab-active-text: #1967d2;
  --ez-tab-inactive-text: #5f6368;
  --ez-input-bg: #ffffff;
  --ez-input-placeholder: #9aa0a6;
  --ez-search-row-border: rgba(60, 64, 67, 0.08);
  --ez-menu-sep: rgba(60, 64, 67, 0.12);
  --ez-shadow-popover: 0 4px 16px rgba(60, 64, 67, 0.18);
  --ez-shadow-modal: 0 8px 28px rgba(60, 64, 67, 0.35);
  --ez-modal-backdrop: rgba(32, 33, 36, 0.4);
  --ez-link-hover-bg: #e8f0fe;
  --ez-hint: #9aa0a6;
  --ez-hint-warn: #b06000;
  --ez-field-label: #5f6368;
  --ez-field-hint: #80868b;
  --ez-btn-ghost: #5f6368;
  --ez-danger-hover-bg: #fce8e6;
  --ez-color-swatch-border: rgba(32, 33, 36, 0.2);
  --ez-theme-active-bg: #e8f0fe;
  /* UI 표시 배율(달력·메뉴·모달 포함). Chromium/Electron zoom */
  --ez-ui-zoom: 1;
}

html[data-ez-theme="dark"] {
  color-scheme: dark;
  --ez-border-grid: rgba(255, 255, 255, 0.12);
  --ez-border-hair: 0.5px solid rgba(255, 255, 255, 0.14);
  --ez-cell-gutter: rgba(255, 255, 255, 0.1);
  --ez-text: #e8eaed;
  --ez-text-muted: #9aa0a6;
  --ez-bg-body: #131314;
  --ez-bg-surface: #1e1e1e;
  --ez-bg-surface-alt: #2a2a2c;
  --ez-bg-muted: #252528;
  --ez-bg-hover: #3c4043;
  --ez-bg-hover-light: #2d2d30;
  --ez-brand-title: #e8eaed;
  --ez-icon-color: #9aa0a6;
  --ez-tab-bg: #1e1e1e;
  --ez-tab-hover-bg: #2a2a2c;
  --ez-tab-active-bg: #394457;
  --ez-tab-active-text: #8ab4f8;
  --ez-tab-inactive-text: #9aa0a6;
  --ez-input-bg: #303134;
  --ez-input-placeholder: #80868b;
  --ez-search-row-border: rgba(255, 255, 255, 0.08);
  --ez-menu-sep: rgba(255, 255, 255, 0.12);
  --ez-shadow-popover: 0 4px 24px rgba(0, 0, 0, 0.45);
  --ez-shadow-modal: 0 8px 32px rgba(0, 0, 0, 0.55);
  --ez-modal-backdrop: rgba(0, 0, 0, 0.58);
  --ez-link-hover-bg: #30343c;
  --ez-hint: #9aa0a6;
  --ez-hint-warn: #fdd663;
  --ez-field-label: #9aa0a6;
  --ez-field-hint: #80868b;
  --ez-btn-ghost: #9aa0a6;
  --ez-danger-hover-bg: #3c2020;
  --ez-color-swatch-border: rgba(255, 255, 255, 0.2);
  --ez-theme-active-bg: #394457;
}

@media (prefers-color-scheme: dark) {
  html[data-ez-theme="system"] {
    color-scheme: dark;
    --ez-border-grid: rgba(255, 255, 255, 0.12);
    --ez-border-hair: 0.5px solid rgba(255, 255, 255, 0.14);
    --ez-cell-gutter: rgba(255, 255, 255, 0.1);
    --ez-text: #e8eaed;
    --ez-text-muted: #9aa0a6;
    --ez-bg-body: #131314;
    --ez-bg-surface: #1e1e1e;
    --ez-bg-surface-alt: #2a2a2c;
    --ez-bg-muted: #252528;
    --ez-bg-hover: #3c4043;
    --ez-bg-hover-light: #2d2d30;
    --ez-brand-title: #e8eaed;
    --ez-icon-color: #9aa0a6;
    --ez-tab-bg: #1e1e1e;
    --ez-tab-hover-bg: #2a2a2c;
    --ez-tab-active-bg: #394457;
    --ez-tab-active-text: #8ab4f8;
    --ez-tab-inactive-text: #9aa0a6;
    --ez-input-bg: #303134;
    --ez-input-placeholder: #80868b;
    --ez-search-row-border: rgba(255, 255, 255, 0.08);
    --ez-menu-sep: rgba(255, 255, 255, 0.12);
    --ez-shadow-popover: 0 4px 24px rgba(0, 0, 0, 0.45);
    --ez-shadow-modal: 0 8px 32px rgba(0, 0, 0, 0.55);
    --ez-modal-backdrop: rgba(0, 0, 0, 0.58);
    --ez-link-hover-bg: #30343c;
    --ez-hint: #9aa0a6;
    --ez-hint-warn: #fdd663;
    --ez-field-label: #9aa0a6;
    --ez-field-hint: #80868b;
    --ez-btn-ghost: #9aa0a6;
    --ez-danger-hover-bg: #3c2020;
    --ez-color-swatch-border: rgba(255, 255, 255, 0.2);
    --ez-theme-active-bg: #394457;
  }
}

html {
  height: 100%;
}

/* UI 줌은 html 이 아니라 앱 루트에만 적용 — html { zoom } 은 fixed 모달·입력의 히트 테스트가 깨지는 Chromium 이슈가 있음 */
.ez-ui-zoom-root {
  height: 100%;
  min-height: 0;
  zoom: var(--ez-ui-zoom, 1);
}

body.ezplan-is-desktop .ez-home-link {
  display: none;
}

body.ezplan-is-desktop #fileHint {
  display: none;
}

body.ezplan-is-desktop .ez-sidebar-web-view-hint {
  display: block;
}

.ez-sidebar-web-view-hint {
  display: none;
  font-size: 13px;
  color: var(--ez-hint);
  line-height: 1.45;
  padding: 0 4px;
  margin: 0;
}

.ez-sidebar-web-view-label {
  display: block;
  margin-bottom: 4px;
}

.ez-sidebar-web-view-url-row {
  display: flex;
  align-items: flex-start;
  gap: 2px;
}

.ez-sidebar-web-view-url {
  flex: 1;
  min-width: 0;
  display: block;
  color: var(--ez-hint);
  font-size: 12px;
  word-break: break-all;
}

.ez-sidebar-web-view-copy {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  margin-top: -2px;
  font-size: 18px;
}

.ez-sidebar-web-view-copy.is-copied {
  color: var(--ez-accent, #1a73e8);
}

/* 웹: 데스크톱과 같이 카테고리 아래 로컬 파일 UI·푸터 안내 숨김 (저장은 계정·클라우드) */
body:not(.ezplan-is-desktop) section[aria-label="캘린더 파일"] {
  display: none !important;
}

body:not(.ezplan-is-desktop) .ez-sidebar-footer {
  display: none !important;
}

/* 알림 설정은 Electron 데스크톱 전용 */
body:not(.ezplan-is-desktop) .ez-settings-menu [data-settings="notifications"] {
  display: none;
}

body:not(.ezplan-is-desktop) .ez-settings-startup-row {
  display: none;
}

.ez-settings-startup-row {
  padding: 6px 16px 8px;
  box-sizing: border-box;
}

.ez-settings-startup-label {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
}

.ez-settings-startup-label input {
  margin-top: 0;
}

body:not(.ezplan-is-desktop) .ez-event-reminder-section {
  display: none;
}

.ez-event-reminder-section .ez-event-reminder-radio {
  margin-top: 8px;
}

.ez-event-reminder-section .ez-event-reminder-radio:first-of-type {
  margin-top: 4px;
}

.ez-event-reminder-custom-wrap {
  margin-top: 6px;
  margin-left: 0;
}

.ezplan-body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  font-size: 15px;
  color: var(--ez-text);
  background: var(--ez-bg-body);
}

body.ezplan-body.ez-font-custom-active {
  font-family: var(--ez-font-user), "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
}

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

.ez-app {
  position: relative;
  display: flex;
  height: 100%;
  min-height: 0;
}

.ez-mobile-menu-btn {
  display: none;
  flex-shrink: 0;
}

.ez-mobile-drawer-backdrop {
  display: none;
}

/* 모바일 전용: 햄버거 메뉴 안 보기 전환 (데스크톱에서는 숨김) */
.ez-mobile-drawer-view-menu {
  display: none;
}

.ez-fab-create {
  display: none;
}

.ez-sidebar-extras {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  width: 100%;
  box-sizing: border-box;
}

.ez-sidebar-extras .ez-event-search-wrap {
  flex: 1 1 200px;
  min-width: 0;
}

@media (min-width: 901px) {
  .ez-sidebar-extras {
    display: none;
  }
}

/* Sidebar */
.ez-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--ez-bg-surface);
  border-right: var(--ez-border-hair);
  padding: 20px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  scrollbar-color: rgba(95, 99, 104, 0.22) transparent;
}

.ez-sidebar:hover,
.ez-sidebar:focus-within {
  scrollbar-width: thin;
}

.ez-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.ez-sidebar:hover::-webkit-scrollbar,
.ez-sidebar:focus-within::-webkit-scrollbar {
  width: 4px;
}

.ez-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.ez-sidebar::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 100px;
}

.ez-sidebar:hover::-webkit-scrollbar-thumb,
.ez-sidebar:focus-within::-webkit-scrollbar-thumb {
  background: rgba(95, 99, 104, 0.18);
}

.ez-sidebar:hover::-webkit-scrollbar-thumb:hover,
.ez-sidebar:focus-within::-webkit-scrollbar-thumb:hover {
  background: rgba(95, 99, 104, 0.3);
}

.ez-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 8px;
}

.ez-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.25);
  background: var(--ez-bg-surface);
}

.ez-brand-name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ez-brand-title);
}

.ez-mobile-drawer-close {
  display: none;
}

.ez-btn-primary {
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3);
}

.ez-btn-primary:hover {
  background: #1765cc;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.35);
}

.ez-btn-create {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding-left: 16px;
  padding-right: 24px;
}

.ez-btn-create-icon {
  font-size: 22px;
  line-height: 1;
  font-weight: 300;
}

.ez-icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ez-icon-color);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.ez-icon-btn:hover {
  background: var(--ez-bg-hover);
}

.ez-mini-wrap {
  margin-top: 4px;
}

.ez-mini-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ez-mini-title {
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ez-brand-title);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.ez-mini-title:hover {
  background: var(--ez-bg-hover);
}

.ez-mini-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  color: var(--ez-text-muted);
  margin-bottom: 4px;
}

.ez-mini-weekdays span {
  padding: 2px 0;
}

.ez-mini-weekdays span.ez-wd-sun {
  color: #b01f1c;
  font-weight: 600;
}

.ez-mini-weekdays span.ez-wd-sat {
  color: #1567d6;
  font-weight: 600;
}

.ez-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.ez-mini-cell {
  aspect-ratio: 1;
  max-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--ez-text);
  border: none;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  padding: 0;
}

.ez-mini-cell:hover:not(:disabled) {
  background: var(--ez-bg-hover);
}

.ez-mini-cell.is-muted {
  color: #8d9196;
}

.ez-mini-cell.is-sunday:not(.is-today):not(.is-selected) {
  color: #b01f1c;
}

.ez-mini-cell.is-saturday:not(.is-today):not(.is-selected) {
  color: #1567d6;
}

.ez-mini-cell.is-muted.is-sunday:not(.is-today) {
  color: #d98a8a;
}

.ez-mini-cell.is-muted.is-saturday:not(.is-today) {
  color: #8fabd6;
}

.ez-mini-cell.is-public-holiday:not(.is-today):not(.is-selected) {
  color: #b01f1c;
}

.ez-mini-cell.is-muted.is-public-holiday:not(.is-today) {
  color: #d98a8a;
}

.ez-mini-cell.is-today {
  background: #1a73e8;
  color: #fff;
  font-weight: 600;
}

.ez-mini-cell.is-selected:not(.is-today) {
  background: var(--ez-tab-active-bg);
  color: var(--ez-tab-active-text);
  font-weight: 600;
}

.ez-mini-cell:disabled {
  cursor: default;
  visibility: hidden;
}

.ez-side-section {
  margin-top: 8px;
}

.ez-side-heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--ez-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}

.ez-category-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-bottom: 5px;
}

.ez-side-heading-category {
  font-size: 14px;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.ez-btn-category-plus {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--ez-border-grid);
  border-radius: 6px;
  background: var(--ez-bg-surface);
  color: var(--ez-text);
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ez-btn-category-plus:hover {
  background: var(--ez-bg-hover);
  border-color: #dadce0;
}

.ez-completion-filter-box {
  margin: 0 0 10px;
  padding: 6px 8px;
  border: 1px solid var(--ez-border-grid);
  border-radius: 10px;
  background: var(--ez-bg-surface-alt);
  box-sizing: border-box;
}

.ez-completion-filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
}

.ez-completion-filter-row {
  flex: 1;
  min-width: 0;
  border-radius: 4px;
  min-height: 28px;
}

.ez-completion-filter-row:hover {
  background: var(--ez-bg-hover);
}

.ez-completion-filter-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 8px;
  margin: 0;
  height: 100%;
  cursor: pointer;
  color: var(--ez-text);
  user-select: none;
  box-sizing: border-box;
}

.ez-completion-filter-label input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--ez-accent, #1a73e8);
}

.ez-category-list {
  list-style: none;
  margin: 0 0 7px;
  padding: 0;
  font-size: 14px;
}

.ez-category-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 3px;
  border-radius: 4px;
  min-height: 22px;
}

.ez-category-row--dragging {
  opacity: 0.55;
}

.ez-category-row--drag-over {
  background: var(--ez-bg-hover);
  outline: 1px dashed var(--ez-accent, #1a73e8);
  outline-offset: -1px;
}

.ez-category-drag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 22px;
  color: var(--ez-text-muted);
  cursor: grab;
  border-radius: 4px;
  user-select: none;
}

.ez-category-drag:active {
  cursor: grabbing;
}

.ez-category-drag:hover {
  color: var(--ez-text);
  background: var(--ez-bg-hover);
}

.ez-category-row:hover {
  background: var(--ez-bg-hover);
}

.ez-category-check {
  flex-shrink: 0;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid var(--ez-cat-color, #1a73e8);
  border-radius: 3px;
  background: var(--ez-bg-surface);
  vertical-align: middle;
}

.ez-category-check:checked {
  background-color: var(--ez-cat-color, #1a73e8);
  border-color: var(--ez-cat-color, #1a73e8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px 11px;
  background-position: center;
  background-repeat: no-repeat;
}

.ez-category-check:focus-visible {
  outline: 2px solid var(--ez-cat-color, #1a73e8);
  outline-offset: 2px;
}

.ez-category-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ez-text);
  cursor: pointer;
}

.ez-category-del {
  flex-shrink: 0;
  border: none;
  background: none;
  color: var(--ez-text-muted);
  font-size: 16px;
  line-height: 1;
  padding: 1px 4px;
  cursor: pointer;
  border-radius: 4px;
}

.ez-category-del:hover {
  background: #fce8e6;
  color: #c5221f;
}

.ez-file-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ez-btn-secondary {
  border: 1px solid var(--ez-border-grid);
  background: var(--ez-bg-surface);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ez-text);
  cursor: pointer;
  text-align: center;
}

.ez-btn-secondary:hover {
  background: var(--ez-bg-hover);
}

#fileImportInput {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.ez-sidebar-footer {
  margin-top: auto;
  padding-top: 8px;
}

.ez-hint {
  font-size: 12px;
  color: var(--ez-hint);
  line-height: 1.4;
  padding: 0 4px;
  margin: 0 0 8px;
}

.ez-hint.is-warn {
  color: var(--ez-hint-warn);
}

.ez-home-link {
  font-size: 14px;
  color: #1a73e8;
  text-decoration: none;
  padding: 4px;
  border-radius: 4px;
}

.ez-home-link:hover {
  background: var(--ez-link-hover-bg);
}

/* Workspace */
.ez-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--ez-bg-surface);
}

.ez-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 8px;
  border-bottom: var(--ez-border-hair);
  flex-wrap: wrap;
  gap: 12px;
  overflow: visible;
}

.ez-topbar-left {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.ez-btn-today {
  border: 1px solid var(--ez-border-grid);
  background: var(--ez-bg-surface);
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--ez-text);
  cursor: pointer;
  margin-right: 4px;
}

.ez-btn-today:hover {
  background: var(--ez-bg-muted);
}

.ez-topbar-nav-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.ez-nav-arrows {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  flex: 0 1 auto;
}

.ez-nav-arrows .ez-range-title {
  margin: 0;
  min-width: 0;
  padding: 0 2px;
  text-align: center;
}

.ez-range-title {
  font-size: 23px;
  font-weight: 500;
  color: var(--ez-text);
  letter-spacing: -0.02em;
}

.ez-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ez-topbar-view-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ez-topbar-search-slot,
.ez-sidebar-search-slot {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 0 1 auto;
}

.ez-topbar-icon-slot,
.ez-sidebar-icon-slot {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ez-topbar-icon-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body:not(.ezplan-is-desktop) #btnTrayMinimize {
  display: none;
}

.ez-topbar-icon-btn {
  flex-shrink: 0;
}

.ez-topbar-icon-btn svg {
  display: block;
  width: 22px;
  height: 22px;
}

/* 계정: 로그인 시 아이콘 색 + 호버 시 로그아웃 문구 */
.ez-account-btn {
  position: relative;
}

.ez-account-btn-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.ez-account-btn .ez-account-svg {
  display: block;
  width: 22px;
  height: 22px;
}

.ez-account-btn.ez-topbar-icon-btn .ez-account-svg-filled {
  display: none;
}

.ez-account-btn.ez-topbar-icon-btn.is-logged-in .ez-account-svg-outline {
  display: none;
}

.ez-account-btn.ez-topbar-icon-btn.is-logged-in .ez-account-svg-filled {
  display: block;
}

.ez-account-btn.is-logged-in {
  color: #1565c0;
}

html[data-ez-theme="dark"] .ez-account-btn.is-logged-in {
  color: #8ab4f8;
}

.ez-account-hover-tip {
  display: none;
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--ez-text);
  background: var(--ez-bg-surface);
  border: 1px solid var(--ez-border-grid);
  border-radius: 6px;
  box-shadow: var(--ez-shadow-popover);
  pointer-events: none;
  z-index: 240;
}

.ez-account-btn.is-logged-in:hover .ez-account-hover-tip {
  display: block;
}

/* 로그아웃 확인 */
.ez-logout-confirm-modal {
  width: min(360px, calc(100vw - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ez-border-grid);
  box-sizing: border-box;
}

.ez-logout-confirm-inner {
  padding: 22px 24px 18px;
}

.ez-logout-confirm-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ez-text);
}

.ez-logout-confirm-text {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ez-text-muted);
}

.ez-restore-confirm-modal .ez-logout-confirm-title {
  font-size: 20px;
}

.ez-restore-confirm-modal .ez-logout-confirm-text {
  font-size: 17px;
}

.ez-restore-confirm-modal .ez-btn-ghost,
.ez-restore-confirm-modal .ez-btn-primary {
  font-size: 17px;
}

.ez-login-sync-modal {
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ez-border-grid);
  box-sizing: border-box;
}

.ez-login-sync-inner {
  padding: 22px 24px 20px;
}

.ez-login-sync-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  color: var(--ez-text);
}

.ez-login-sync-lede {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ez-text-muted);
}

.ez-login-sync-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ez-login-sync-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--ez-border-grid);
  border-radius: 12px;
  background: var(--ez-bg);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ez-login-sync-option:hover,
.ez-login-sync-option:focus-visible {
  background: var(--ez-bg-hover);
  border-color: #1a73e8;
  outline: none;
}

.ez-login-sync-option-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ez-text);
}

.ez-login-sync-option-desc {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ez-text-muted);
}

.ez-settings-menu-wrap {
  position: relative;
  flex-shrink: 0;
}

.ez-settings-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  max-width: min(320px, 92vw);
  padding: 6px 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
  background: var(--ez-bg-surface);
  border: 1px solid var(--ez-border-grid);
  border-radius: 8px;
  box-shadow: var(--ez-shadow-popover);
  z-index: 220;
}

.ez-settings-menu-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ez-text);
  cursor: pointer;
  box-sizing: border-box;
}

.ez-settings-menu-item:hover,
.ez-settings-menu-item:focus-visible {
  background: var(--ez-bg-hover);
  outline: none;
}

.ez-settings-menu-item.is-theme-active {
  background: var(--ez-theme-active-bg);
  font-weight: 600;
}

.ez-settings-theme-back {
  font-size: 13px;
  color: var(--ez-text-muted);
}

.ez-settings-font-menu {
  min-width: 268px;
  max-width: min(380px, 96vw);
  padding: 10px 12px 12px;
  box-sizing: border-box;
}

.ez-settings-font-block {
  margin-bottom: 12px;
}

.ez-settings-font-block:last-of-type {
  margin-bottom: 0;
}

.ez-settings-font-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ez-text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.ez-settings-font-select {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--ez-border-grid);
  background: var(--ez-input-bg);
  color: var(--ez-text);
  font-family: inherit;
  font-size: 14px;
}

.ez-settings-font-load-btn {
  margin-top: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--ez-border-grid);
  background: var(--ez-bg-surface);
  color: var(--ez-text);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.ez-settings-font-load-btn:hover {
  background: var(--ez-bg-hover);
}

.ez-settings-font-range-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ez-settings-font-range {
  flex: 1;
  min-width: 0;
  accent-color: #5f6368;
}

.ez-settings-font-range-value {
  font-size: 13px;
  color: var(--ez-text-muted);
  min-width: 42px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ez-settings-font-hint {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--ez-text-muted);
}

/* 알림 설정(데스크톱 전용) */
.ez-settings-notify-menu {
  max-width: 320px;
}

.ez-settings-notify-block {
  padding: 8px 12px 10px;
}

.ez-settings-notify-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
  color: var(--ez-text);
}

.ez-settings-notify-check input {
  margin-top: 2px;
  flex-shrink: 0;
}

.ez-settings-notify-hint {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--ez-text-muted);
}

.ez-settings-notify-timing-hint {
  margin-top: 4px;
  margin-bottom: 2px;
}

.ez-settings-notify-indent.is-muted {
  opacity: 0.5;
}

.ez-settings-notify-suffix {
  font-size: 13px;
  color: var(--ez-text-muted);
  white-space: nowrap;
}

.ez-settings-notify-radio {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
  color: var(--ez-text);
}

.ez-settings-notify-radio input {
  margin-top: 2px;
  flex-shrink: 0;
}

.ez-settings-notify-indent {
  margin: 6px 0 0 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ez-settings-notify-inline {
  font-size: 12px;
  color: var(--ez-text-muted);
}

.ez-settings-notify-time,
.ez-settings-notify-num {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--ez-border-grid);
  background: var(--ez-input-bg);
  color: var(--ez-text);
  font-size: 13px;
  font-family: inherit;
}

.ez-settings-notify-num {
  width: 88px;
}

.ez-settings-notify-menu .ez-settings-font-load-btn {
  margin: 8px 12px 12px;
  width: calc(100% - 24px);
}

.ez-settings-notify-menu .ez-settings-font-load-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ez-settings-menu-sep {
  height: 1px;
  margin: 6px 10px;
  background: var(--ez-menu-sep);
  border: none;
  padding: 0;
}

.ez-offscreen-file-input {
  position: fixed;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0.01;
}

.ez-event-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.ez-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: min(100%, 280px);
  max-height: min(360px, 50vh);
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--ez-bg-surface);
  border: 1px solid var(--ez-border-grid);
  border-radius: 10px;
  box-shadow: var(--ez-shadow-popover);
  z-index: 200;
  box-sizing: border-box;
}

.ez-search-results-empty {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--ez-text-muted);
  text-align: center;
}

.ez-search-result-row {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  border: none;
  border-bottom: 1px solid var(--ez-search-row-border);
  background: var(--ez-bg-surface);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

.ez-search-result-row:last-child {
  border-bottom: none;
}

.ez-search-result-row:hover,
.ez-search-result-row:focus-visible {
  background: var(--ez-bg-hover);
  outline: none;
}

.ez-search-result-title {
  display: block;
  font-weight: 500;
  color: var(--ez-text);
  line-height: 1.35;
  word-break: break-word;
}

.ez-search-result-notes {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ez-text-muted);
  line-height: 1.4;
  word-break: break-word;
  white-space: pre-wrap;
}

.ez-search-result-date {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ez-text-muted);
}

.ez-event-search-input {
  width: min(220px, 42vw);
  min-width: 120px;
  max-width: 280px;
  box-sizing: border-box;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--ez-border-grid);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ez-text);
  background: var(--ez-input-bg);
}

.ez-event-search-input::placeholder {
  color: var(--ez-input-placeholder);
}

.ez-event-search-input:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 1px #1a73e8;
}

@media (min-width: 901px) {
  .ez-topbar-search-slot .ez-event-search-wrap {
    width: min(240px, 22vw);
  }

  .ez-topbar-search-slot .ez-event-search-input {
    width: 100%;
    max-width: none;
  }
}

.ez-view-tabs {
  display: inline-flex;
  border: 1px solid var(--ez-border-grid);
  border-radius: 4px;
  overflow: hidden;
}

.ez-tab {
  border: none;
  background: var(--ez-tab-bg);
  padding: 8px 16px;
  font-size: 15px;
  color: var(--ez-tab-inactive-text);
  cursor: pointer;
  border-right: 1px solid var(--ez-border-grid);
}

.ez-tab:last-child {
  border-right: none;
}

.ez-tab:hover {
  background: var(--ez-tab-hover-bg);
}

.ez-tab.is-active {
  background: var(--ez-tab-active-bg);
  color: var(--ez-tab-active-text);
  font-weight: 500;
}

.ez-main {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 12px 16px;
}

.is-hidden {
  display: none !important;
}

/* Month grid */
.ez-month-view {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 120px);
  background: var(--ez-bg-surface);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--ez-cell-gutter);
}

.ez-month-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--ez-cell-gutter);
  position: sticky;
  top: 0;
  background: var(--ez-bg-surface);
  z-index: 1;
}

.ez-month-header div {
  text-align: center;
  padding: 10px 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ez-text-muted);
}

.ez-month-header div.ez-wk-sun {
  color: #b01f1c;
}

.ez-month-header div.ez-wk-sat {
  color: #1567d6;
}

.ez-month-grid {
  flex: 1;
  display: grid;
  /* minmax(0,1fr): 긴 일정 제목이 열 최소 너비를 밀어 셀이 넓어지는 것을 막음 */
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(100px, 1fr));
  gap: 1px;
  background: var(--ez-cell-gutter);
}

.ez-day-cell {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  font: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 0;
  padding: 4px 6px 6px;
  min-height: 100px;
  min-width: 0;
  overflow: hidden;
  background: var(--ez-bg-surface);
  cursor: pointer;
  text-align: left;
  vertical-align: top;
  position: relative;
}

.ez-day-cell:hover {
  background: var(--ez-bg-hover-light);
}

.ez-day-cell.is-other-month {
  background: var(--ez-bg-muted);
}

.ez-day-cell.is-other-month .ez-day-num-row .ez-day-num {
  color: #8d9196;
}

.ez-day-cell.is-today .ez-day-num-row .ez-day-num {
  background: #1a73e8;
  color: #fff;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.ez-day-cell.is-selected {
  outline: 2px solid #1a73e8;
  outline-offset: -2px;
  z-index: 0;
}

.ez-day-num-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-bottom: 4px;
  flex-shrink: 0;
  min-width: 0;
}

.ez-day-num {
  font-size: 13px;
  color: var(--ez-text);
  font-weight: 500;
  flex-shrink: 0;
  line-height: 1.2;
}

.ez-day-holiday-name {
  font-size: 11px;
  font-weight: 500;
  color: #b01f1c;
  line-height: 1.2;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.ez-day-cell.is-other-month .ez-day-holiday-name {
  color: #c85a5a;
}

/* 24절기 등 공휴일이 아닌 특일 라벨 (빨간날 아님) */
.ez-day-special-name {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.2;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.ez-day-cell.is-other-month .ez-day-special-name {
  color: #9aa3af;
}

.ez-day-num.is-sunday {
  color: #b01f1c;
}

.ez-day-num.is-saturday {
  color: #1567d6;
}

.ez-day-cell.is-other-month .ez-day-num-row .ez-day-num.is-sunday {
  color: #c85a5a;
}

.ez-day-cell.is-other-month .ez-day-num-row .ez-day-num.is-saturday {
  color: #4a8fd9;
}

.ez-day-num.is-public-holiday {
  color: #b01f1c;
}

.ez-day-cell.is-other-month .ez-day-num-row .ez-day-num.is-public-holiday {
  color: #c85a5a;
}

.ez-day-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  flex: 1;
  min-height: 0;
  align-self: stretch;
}

.ez-event-pill {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 3px;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: none;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
  cursor: pointer;
}

.ez-event-pill:hover {
  filter: brightness(1.05);
}

.ez-more-btn {
  font-size: 12px;
  color: var(--ez-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  text-align: left;
}

.ez-more-btn:hover {
  color: #1a73e8;
}

/* Week view */
.ez-week-view {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--ez-cell-gutter);
  border: 1px solid var(--ez-cell-gutter);
  border-radius: 8px;
  overflow: hidden;
  min-height: calc(100vh - 140px);
}

.ez-week-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--ez-bg-surface);
}

.ez-week-col-head {
  padding: 12px 8px;
  text-align: center;
  background: var(--ez-bg-muted);
  border-bottom: 1px solid var(--ez-cell-gutter);
}

.ez-week-col-head .ez-dow {
  font-size: 12px;
  color: var(--ez-text-muted);
  text-transform: uppercase;
}

.ez-week-dom-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 2px;
}

.ez-week-col-head .ez-dom {
  font-size: 27px;
  font-weight: 500;
  color: var(--ez-text);
  line-height: 1.2;
}

.ez-week-col-head .ez-dom.is-sunday {
  color: #b01f1c;
}

.ez-week-col-head .ez-dom.is-saturday {
  color: #1567d6;
}

.ez-week-col-head .ez-dom.is-public-holiday {
  color: #b01f1c;
}

.ez-week-holiday-name {
  font-size: 11px;
  font-weight: 500;
  color: #b01f1c;
  line-height: 1.2;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: keep-all;
  padding: 0 2px;
}

.ez-week-special-name {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.2;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: keep-all;
  padding: 0 2px;
}

.ez-week-col-head.is-today .ez-week-special-name {
  color: rgba(255, 255, 255, 0.95);
}

.ez-week-col-head.is-today .ez-dom {
  background: #1a73e8;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.ez-week-col-head.is-today .ez-dom.is-sunday,
.ez-week-col-head.is-today .ez-dom.is-saturday,
.ez-week-col-head.is-today .ez-dom.is-public-holiday {
  color: #fff;
}

.ez-week-col-head.is-today .ez-week-holiday-name {
  color: rgba(255, 255, 255, 0.95);
}

.ez-week-col-body {
  flex: 1;
  padding: 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ez-week-event {
  border-radius: 4px;
  padding: 8px;
  color: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.ez-week-event strong {
  display: block;
  font-weight: 500;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Day view */
.ez-day-view {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 8px;
}

.ez-day-view-head {
  font-size: 23px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--ez-text);
}

.ez-day-view-head.is-sunday {
  color: #b01f1c;
}

.ez-day-view-head.is-saturday {
  color: #1567d6;
}

.ez-day-view-head.is-public-holiday {
  color: #b01f1c;
}

.ez-day-view-holiday {
  font-weight: 500;
  color: #b01f1c;
}

.ez-day-view-special {
  font-weight: 500;
  color: #6b7280;
}

.ez-day-view-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ez-day-view-card {
  border-radius: 8px;
  padding: 14px 16px;
  color: inherit;
  font-weight: 500;
  cursor: pointer;
  border: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.ez-day-view-card .ez-card-time {
  font-size: 13px;
  font-weight: 500;
  opacity: 1;
}

.ez-day-view-card .ez-card-title {
  font-size: 17px;
  font-weight: 500;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ez-empty-day {
  color: var(--ez-text-muted);
  font-size: 15px;
  padding: 24px;
  text-align: center;
  border: 1px dashed var(--ez-border-grid);
  border-radius: 8px;
}

/* Modal */
.ez-modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--ez-modal-backdrop);
  z-index: 100;
}

.ez-modal-backdrop-raised {
  z-index: 200;
}

.ez-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--ez-bg-surface);
  border-radius: 12px;
  box-shadow: var(--ez-shadow-modal);
  z-index: 101;
}

.ez-modal-raised {
  z-index: 201;
}

/* 버전 정보 모달 */
.ez-version-modal {
  width: min(380px, calc(100vw - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ez-border-grid);
}

.ez-version-modal-inner {
  position: relative;
  padding: 28px 24px 22px;
  text-align: center;
  background: linear-gradient(180deg, var(--ez-bg-surface-alt) 0%, var(--ez-bg-surface) 42%);
}

.ez-version-modal-close {
  position: absolute;
  right: 6px;
  top: 6px;
  z-index: 1;
}

.ez-version-modal-logo {
  display: block;
  margin: 0 auto 14px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 2px 12px rgba(60, 64, 67, 0.18);
  background: var(--ez-bg-surface);
}

.ez-version-modal-appname {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ez-text);
}

.ez-version-modal-tagline {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ez-text-muted);
}

.ez-version-modal-meta {
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--ez-bg-muted);
  border-radius: 10px;
  border: 1px solid var(--ez-border-grid);
  text-align: left;
}

.ez-version-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  padding: 8px 0;
}

.ez-version-row + .ez-version-row {
  border-top: 1px solid var(--ez-border-grid);
  margin-top: 2px;
  padding-top: 10px;
}

.ez-version-label {
  color: var(--ez-text-muted);
  flex-shrink: 0;
}

.ez-version-value {
  color: var(--ez-text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
  word-break: break-word;
}

.ez-version-modal-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

/* 업데이트 / 변경 내역 모달 */
.ez-update-modal,
.ez-changelog-modal,
.ez-uptodate-modal {
  width: min(420px, calc(100vw - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ez-border-grid);
}

.ez-update-prompt-body,
.ez-changelog-body {
  text-align: left;
}

.ez-update-prompt-message {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ez-text);
}

.ez-update-changes-list {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ez-text-muted);
}

.ez-update-changes-list li + li {
  margin-top: 6px;
}

.ez-update-progress {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ez-text-muted);
}

.ez-changelog-intro {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ez-text-muted);
}

.ez-update-prompt-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.ez-update-prompt-actions .ez-btn-secondary,
.ez-update-prompt-actions .ez-btn-primary {
  min-width: 108px;
}

.ez-settings-desktop-only.is-hidden {
  display: none;
}

.ezplan-is-desktop .ez-settings-desktop-only {
  display: block;
}

.ez-version-modal-ok {
  min-width: 120px;
  border-radius: 24px;
}

.ez-credits-modal {
  width: min(400px, calc(100vw - 32px));
}

/* 도움말 모달 */
.ez-help-modal {
  width: min(520px, calc(100vw - 28px));
  max-height: min(90vh, 720px);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ez-border-grid);
}

.ez-help-modal-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  padding: 22px 22px 16px;
  background: var(--ez-bg-surface);
}

.ez-help-modal-close {
  position: absolute;
  right: 6px;
  top: 6px;
  z-index: 1;
}

.ez-help-modal-title {
  margin: 0 36px 14px 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ez-text);
}

.ez-help-modal-scroll {
  flex: 1;
  min-height: 0;
  max-height: min(52vh, 440px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  margin-right: -4px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ez-text);
}

.ez-help-lede {
  margin: 0 0 16px;
  color: var(--ez-text-muted);
}

.ez-help-section {
  margin-bottom: 18px;
}

.ez-help-section:last-child {
  margin-bottom: 0;
}

.ez-help-section h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ez-text);
}

.ez-help-subhead {
  margin: 14px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ez-text-muted);
  letter-spacing: 0.02em;
}

.ez-help-subhead:first-of-type {
  margin-top: 0;
}

.ez-help-list {
  margin: 0;
  padding-left: 1.15em;
}

.ez-help-list li {
  margin-bottom: 8px;
}

.ez-help-list li:last-child {
  margin-bottom: 0;
}

.ez-help-list code {
  font-size: 12.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--ez-bg-muted);
  border: 1px solid var(--ez-border-grid);
  word-break: break-all;
}

.ez-help-callout {
  padding: 14px 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(26, 115, 232, 0.35);
  background: linear-gradient(
    135deg,
    rgba(26, 115, 232, 0.08) 0%,
    var(--ez-bg-muted) 48%,
    var(--ez-bg-surface) 100%
  );
}

.ez-help-path-row {
  display: block;
  margin: 10px 0 12px;
  padding: 10px 10px;
  border-radius: 8px;
  background: var(--ez-bg-surface);
  border: 1px solid var(--ez-border-grid);
  list-style: none;
  margin-left: 0;
}

.ez-help-path-row.is-hidden {
  display: none;
}

.ez-help-path-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ez-text-muted);
  margin-bottom: 6px;
}

.ez-help-path-code {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
  white-space: pre-wrap;
}

.ez-help-modal-actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--ez-border-grid);
  display: flex;
  justify-content: flex-end;
}

.ez-help-modal-ok {
  min-width: 100px;
  border-radius: 8px;
}

.ez-credits-email-row {
  align-items: flex-start;
}

.ez-credits-emails {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  text-align: right;
  word-break: break-word;
}

.ez-credits-emails a {
  color: var(--ez-tab-active-text);
  text-decoration: none;
}

.ez-credits-emails a:hover {
  text-decoration: underline;
}

.ez-credits-email-sep {
  color: var(--ez-text-muted);
  font-weight: 400;
}

.ez-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 0 20px;
}

.ez-modal-title {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  color: var(--ez-text);
}

.ez-modal-close {
  font-size: 28px;
  line-height: 1;
}

.ez-form {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ez-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ez-field span:first-child {
  font-size: 13px;
  font-weight: 500;
  color: var(--ez-field-label);
}

.ez-field-label-suffix {
  font-size: 12px;
  font-weight: 500;
}

.ez-field-label-suffix-req {
  color: var(--ez-hint-warn);
}

.ez-field-label-suffix-opt {
  color: var(--ez-text-muted);
}

.ez-field-category-color .ez-color-picker-row {
  margin-top: 2px;
}

#popupCategoryColor,
#popupCategoryTextColor {
  width: 100%;
  max-width: 160px;
  height: 44px;
  padding: 4px;
  border: 1px solid var(--ez-border-grid);
  border-radius: 8px;
  cursor: pointer;
  background: var(--ez-input-bg);
  box-sizing: border-box;
}

.ez-field-hint {
  font-size: 12px;
  color: var(--ez-field-hint);
  margin: 0;
  line-height: 1.4;
}

.ez-event-colors-hint {
  margin-bottom: 2px;
}

.ez-event-colors-field {
  position: relative;
}

.ez-event-color-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.ez-event-palette-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--ez-border-grid);
  border-radius: 8px;
  background: var(--ez-bg-surface);
  color: var(--ez-text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.ez-event-palette-toggle:hover {
  background: var(--ez-bg-hover-light);
}

.ez-event-palette-toggle-label {
  font-weight: 500;
  color: var(--ez-text-muted);
}

.ez-event-color-chip {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1px solid rgba(60, 64, 67, 0.35);
  box-sizing: border-box;
  flex-shrink: 0;
}

.ez-event-color-chip-ring {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

html[data-ez-theme="dark"] .ez-event-color-chip-ring {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45);
}

.ez-event-color-reset {
  font-size: 13px;
  padding: 6px 10px;
}

.ez-event-palette-pop {
  margin-top: 8px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--ez-border-grid);
  background: var(--ez-bg-surface-alt);
  box-shadow: var(--ez-shadow-popover);
}

.ez-color-palette-event {
  max-height: 160px;
  overflow-y: auto;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
}

.ez-color-palette-event .ez-color-swatch {
  max-height: 26px;
}

.ez-btn-native-color {
  margin-top: 8px;
  width: 100%;
  padding: 6px 8px;
  font-size: 12px;
  border: none;
  border-radius: 6px;
  background: var(--ez-bg-muted);
  color: var(--ez-text);
  cursor: pointer;
  font-family: inherit;
}

.ez-btn-native-color:hover {
  background: var(--ez-bg-hover);
}

.ez-hidden-native-color {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  left: 0;
  top: 0;
}

.ez-color-palette {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.ez-color-swatch {
  width: 100%;
  aspect-ratio: 1;
  min-height: 0;
  max-height: 34px;
  margin: 0 auto;
  border: 1px solid var(--ez-color-swatch-border);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
}

.ez-color-swatch:hover {
  outline: 2px solid #1a73e8;
  outline-offset: 1px;
}

.ez-color-swatch:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}

.ez-field input[type="text"],
.ez-field input[type="date"],
.ez-field input[type="time"],
.ez-field select,
.ez-field textarea {
  border: 1px solid var(--ez-border-grid);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ez-text);
  background: var(--ez-input-bg);
}

.ez-field textarea {
  resize: vertical;
  min-height: 72px;
}

.ez-field input:focus,
.ez-field select:focus,
.ez-field textarea:focus,
#popupCategoryColor:focus,
#fColor:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 1px #1a73e8;
}

.ez-check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.ez-check input {
  width: 18px;
  height: 18px;
}

.ez-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.ez-time-field input {
  min-width: 110px;
}

.ez-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.ez-modal-actions-spacer {
  flex: 1;
}

.ez-btn-ghost {
  border: none;
  background: transparent;
  color: var(--ez-btn-ghost);
  padding: 8px 12px;
  font-size: 15px;
  cursor: pointer;
  border-radius: 4px;
}

.ez-btn-ghost:hover {
  background: var(--ez-bg-hover);
}

.ez-btn-danger {
  border: none;
  background: transparent;
  color: #d93025;
  padding: 8px 12px;
  font-size: 15px;
  cursor: pointer;
  border-radius: 4px;
}

.ez-btn-danger:hover {
  background: var(--ez-danger-hover-bg);
}

.ez-complete-switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-right: 4px;
  user-select: none;
}

.ez-complete-switch-text {
  font-size: 15px;
  color: var(--ez-text-muted);
  font-weight: 500;
}

.ez-complete-switch-wrap:hover .ez-complete-switch-text {
  color: var(--ez-text);
}

.ez-switch {
  position: relative;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}

.ez-switch input {
  position: absolute;
  opacity: 0;
  width: 44px;
  height: 26px;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.ez-switch-track {
  display: block;
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: #dadce0;
  transition: background 0.2s ease;
  box-sizing: border-box;
  border: 1px solid rgba(60, 64, 67, 0.12);
  pointer-events: none;
}

.ez-switch-track::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 50%;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--ez-bg-surface);
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.25);
  transition: transform 0.2s ease;
}

.ez-switch input:checked + .ez-switch-track {
  background: #188038;
  border-color: rgba(24, 128, 56, 0.35);
}

.ez-switch input:checked + .ez-switch-track::after {
  transform: translateX(18px);
}

.ez-switch input:focus-visible + .ez-switch-track {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}

.ez-event-pill.is-completed,
.ez-week-event.is-completed,
.ez-day-view-card.is-completed {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  opacity: 0.88;
}

@media (max-width: 900px) {
  .ez-app {
    flex-direction: row;
    min-height: 0;
  }

  .ez-mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .ez-mobile-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--ez-modal-backdrop);
  }

  .ez-mobile-drawer-backdrop.is-hidden {
    display: none !important;
  }

  .ez-fab-create {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: calc(20px / var(--ez-ui-zoom, 1));
    bottom: calc(24px / var(--ez-ui-zoom, 1));
    width: calc(56px / var(--ez-ui-zoom, 1));
    height: calc(56px / var(--ez-ui-zoom, 1));
    min-width: 48px;
    min-height: 48px;
    border: none;
    border-radius: 50%;
    padding: 0;
    background: #1a73e8;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(60, 64, 67, 0.35);
    z-index: 70;
  }

  .ez-fab-create:hover {
    background: #1765cc;
  }

  .ez-fab-create-icon {
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
  }

  .ez-btn-create {
    display: none !important;
  }

  .ez-mini-wrap {
    display: none;
  }

  .ez-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(88vw, 320px);
    max-width: 100%;
    max-height: none;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    border-right: var(--ez-border-hair);
    border-bottom: none;
    box-shadow: 4px 0 24px rgba(60, 64, 67, 0.15);
  }

  html[data-ez-theme="dark"] .ez-sidebar {
    box-shadow: 4px 0 28px rgba(0, 0, 0, 0.45);
  }

  .ez-app.ez-mobile-drawer-open .ez-sidebar {
    transform: translateX(0);
  }

  .ez-workspace {
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    width: 100%;
  }

  .ez-main {
    padding: 0 0 88px;
  }

  .ez-month-view {
    border-radius: 0;
    border-left: none;
    border-right: none;
    min-height: calc(100vh - 108px);
  }

  .ez-month-header div {
    padding: 6px 2px;
    font-size: 11px;
  }

  .ez-month-grid {
    grid-template-rows: repeat(6, minmax(72px, 1fr));
  }

  .ez-day-cell {
    text-align: center;
    padding: 2px 2px 4px;
  }

  .ez-day-num-row {
    justify-content: center;
  }

  .ez-day-holiday-name,
  .ez-day-special-name {
    flex: 0 1 100%;
    width: 100%;
    text-align: center;
    font-size: 9px;
    line-height: 1.1;
  }

  .ez-day-num {
    font-size: 11px;
  }

  .ez-day-cell.is-today .ez-day-num-row .ez-day-num {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .ez-event-pill {
    font-size: 10px;
    line-height: 1.15;
    padding: 1px 3px;
  }

  .ez-more-btn {
    font-size: 10px;
    padding: 1px 2px;
    text-align: center;
  }

  .ez-topbar {
    align-items: flex-start;
  }

  .ez-topbar-left {
    flex: 1 1 0;
    min-width: 0;
  }

  .ez-range-title {
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(240px, 42vw);
  }

  .ez-topbar-nav-cluster {
    flex: 1 1 0;
    min-width: 0;
    gap: 4px;
  }

  .ez-topbar-nav-cluster .ez-nav-arrows {
    flex: 0 1 auto;
    min-width: 0;
  }

  .ez-topbar-right {
    display: none;
  }

  .ez-mobile-drawer-view-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px 16px;
    border-bottom: 1px solid var(--ez-border-hair);
    box-sizing: border-box;
    width: 100%;
  }

  .ez-mobile-drawer-view-menu .ez-tab {
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    border-radius: 8px;
    border: 1px solid var(--ez-border-grid);
    border-right: 1px solid var(--ez-border-grid);
    padding: 12px 14px;
    font-size: 15px;
  }

  .ez-mobile-drawer-view-menu .ez-tab:last-child {
    border-right: 1px solid var(--ez-border-grid);
  }

  .ez-event-search-wrap {
    flex: 1 1 160px;
    min-width: 0;
  }

  .ez-sidebar-extras .ez-event-search-wrap {
    display: flex;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }

  .ez-sidebar-extras {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }

  .ez-sidebar-extras .ez-topbar-icon-actions {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .ez-mobile-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    flex-shrink: 0;
  }

  .ez-brand {
    width: 100%;
    box-sizing: border-box;
  }

  .ez-event-search-input {
    width: 100%;
    max-width: none;
  }

  .ez-week-view {
    grid-template-columns: 1fr;
  }

  .ez-week-col {
    border-right: none;
    border-bottom: var(--ez-border-hair);
  }
}
