/* 마루 부리 (NAVER) — fonts/ 폴더의 웹폰트 */
@font-face {
  font-family: "MaruBuri";
  src: url("fonts/MaruBuri-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* 검정 바탕 한 가지 테마. 카드는 살짝 밝은 먹색, 따뜻함은 코랄 강조색 하나로만. */
:root {
  --bg: #000000;
  --card: #141312;
  --text: #ece9e4;
  --muted: #9d978f;
  --line: #2a2724;
  --rule: #5c554e;
  --primary: #ece9e4;
  --on-primary: #141312;
  --accent: #e8875f;
  --accent-soft: #33231b;
  --on-accent: #141312;
  --link: #ece9e4;
  --danger: #ec8a80;
  --c-work: #4a76b0;
  --c-meeting: #8662b5;
  --c-deadline: #d0603e;
  --c-personal: #3f8a5f;
  --claude: #d97757;
  --support: #7fcb9b;
  --support-soft: #1b2c21;
  --rnd: #ae9cf0;
  --rnd-soft: #262139;
  --hot: #f0a089;
  --hot-soft: #38221b;
  --warn: #e8c06e;
  --warn-soft: #332912;
  --danger-soft: #3a1e1b;
  --star: #efbe4e;
  --shadow: rgba(0, 0, 0, .6);
  --backdrop: rgba(0, 0, 0, .65);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "MaruBuri", "Apple SD Gothic Neo", "Malgun Gothic", serif;
  font-size: 14px;
  line-height: 1.5;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent); }
a:hover { text-decoration: underline; }

.topbar {
  display: flex; align-items: center; gap: 24px;
  padding: 10px 24px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.brand { font-weight: 700; font-size: 16px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs button {
  background: none; border: 0; padding: 8px 12px; border-radius: 8px;
  color: var(--muted); cursor: pointer; font: inherit;
}
.tabs button.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.today-label { margin-left: 0; color: var(--muted); display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
#todayLabel { font-size: 13px; color: var(--muted); }
.weather { display: flex; align-items: center; gap: 8px; font-size: 12px; flex-wrap: wrap; justify-content: flex-end; }
.weather .w-off { color: var(--muted); }
@media (max-width: 600px) { .today-label { align-items: stretch; text-align: left; width: 100%; } .weather { justify-content: flex-start; } }
.weather .w-temp, .weather .w-pop { font-variant-numeric: tabular-nums; }
.weather .w-pop.wet { color: var(--accent); font-weight: 600; }

main { max-width: 1200px; margin: 0 auto; padding: 20px 16px 60px; }
.tab { display: none; }
.tab.active { display: block; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; margin-bottom: 16px; min-width: 0;
}
.card h2 {
  font-size: 16px; margin: 0 0 14px; padding-bottom: 10px;
  border-bottom: 1.5px solid var(--rule); letter-spacing: -.01em;
}
.card h2 small { font-size: 12px; }
.cal-head h2 { border-bottom: 0; padding-bottom: 0; }
.card h2 small { color: var(--muted); font-weight: 400; }
.card h3 { font-size: 13px; color: var(--muted); margin: 18px 0 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 .card, .grid2 .card { margin-bottom: 0; }
.grid3, .grid2 { margin-bottom: 16px; }
@media (max-width: 860px) { .grid3, .grid2 { grid-template-columns: 1fr; } }

.list { list-style: none; margin: 0; padding: 0; }
.list li {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 0; border-bottom: 1px dashed var(--line);
}
.list li:last-child { border-bottom: 0; }
.list .empty { color: var(--muted); }
.list .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { color: var(--muted); font-size: 12px; margin: 4px 0 10px; }

input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 9px; width: 100%;
}
textarea { resize: vertical; }
button {
  background: var(--primary); color: var(--on-primary); border: 0; border-radius: 8px;
  padding: 7px 14px; cursor: pointer; white-space: nowrap;
}
button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
button.danger { background: var(--danger); }
button.icon { background: none; color: var(--muted); padding: 2px 6px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 12px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row > label { flex: 1; }
.inline-form { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 120px; }
.file-btn {
  background: transparent; border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 14px; cursor: pointer; color: var(--muted);
}

.badge {
  display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px;
  background: var(--bg); color: var(--muted); border: 1px solid var(--line); white-space: nowrap;
}
.badge.kind-support { background: var(--support-soft); color: var(--support); font-weight: 600; }
.badge.kind-rnd { background: var(--rnd-soft); color: var(--rnd); font-weight: 600; }
.badge.new { background: var(--hot-soft); color: var(--hot); }
.badge.dday { background: var(--warn-soft); color: var(--warn); }
.badge.dday.urgent { background: var(--danger-soft); color: var(--danger); }
.badge.closed { background: var(--line); color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.k-work { background: var(--c-work); }
.k-meeting { background: var(--c-meeting); }
.k-deadline { background: var(--c-deadline); }
.k-personal { background: var(--c-personal); }

/* Claude 검색창 */
.ask {
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 6px 6px 6px 14px;
}
.ask:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ask-mark { color: var(--claude); font-size: 18px; line-height: 1; }
.ask input { border: 0; padding: 8px 4px; font-size: 15px; background: transparent; min-width: 0; }
.ask input:focus { outline: none; }
.ask-panel { border-color: var(--line); }
.ask-q { font-weight: 600; margin-bottom: 8px; }
.ask-a { white-space: pre-wrap; line-height: 1.65; }
.ask-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.ask-foot .meta { margin: 0; }
@media (max-width: 600px) { #askBtn { padding: 7px 10px; } }

/* 달력 */
.cal-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }
.cal-layout .card { margin-bottom: 0; }
@media (max-width: 860px) { .cal-layout { grid-template-columns: 1fr; } }
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cal-head h2 { margin: 0; min-width: 120px; text-align: center; }
.legend { margin-left: auto; display: flex; gap: 10px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 600px) { .legend { display: none; } }
.cal-head button:not(.ghost) { background: none; color: var(--text); font-size: 20px; padding: 0 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cal-grid .dow { background: var(--card); text-align: center; padding: 6px 0; font-size: 12px; color: var(--muted); }
.cal-grid .cell {
  background: var(--card); min-height: 92px; padding: 4px; cursor: pointer; overflow: hidden;
}
.cal-grid .cell.other { opacity: .45; }
.cal-grid .cell.selected { outline: 2px solid var(--accent); outline-offset: -2px; }
.cal-grid .num { font-size: 12px; font-weight: 600; }
.cal-grid .cell.today .num {
  background: var(--accent); color: var(--on-accent); border-radius: 50%;
  display: inline-block; width: 22px; height: 22px; text-align: center; line-height: 22px;
}
.cal-grid .sun .num { color: var(--danger); }
.cal-grid .cell.today.sun .num { color: var(--on-accent); }
.cal-grid .ev {
  font-size: 11px; border-radius: 4px; padding: 0 4px; margin-top: 2px;
  color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-grid .more { font-size: 11px; color: var(--muted); }
@media (max-width: 600px) {
  .cal-grid .cell { min-height: 56px; }
  .cal-grid .ev { font-size: 0; height: 5px; padding: 0; }
}

/* 공고 */
.kind-toggle {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
}
.kind-toggle button {
  background: transparent; color: var(--muted); border-radius: 9px;
  padding: 8px 18px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
}
.kind-toggle button .cnt { font-size: 11px; font-weight: 500; opacity: .8; font-variant-numeric: tabular-nums; }
.kind-toggle button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 2px var(--shadow); }
.kind-toggle button.k-support.on { background: var(--support); color: var(--on-accent); }
.kind-toggle button.k-rnd.on { background: var(--rnd); color: var(--on-accent); }
.kind-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.notice-tools { padding-top: 14px; border-top: 1px solid var(--line); }
.notice.is-support { box-shadow: inset 3px 0 0 var(--support); padding-left: 12px; }
.notice.is-rnd { box-shadow: inset 3px 0 0 var(--rnd); padding-left: 12px; }
.notice-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.notice-tools input { flex: 2; min-width: 180px; }
.notice-tools select { flex: 1; min-width: 120px; width: auto; }
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.notice:last-child { border-bottom: 0; }
.notice .body { flex: 1; min-width: 0; }
.notice .title { font-weight: 600; font-size: 14px; }
.notice .sub { color: var(--muted); font-size: 12px; margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.notice .facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; margin-top: 4px; }
.notice .facts b { color: var(--muted); font-weight: 500; margin-right: 2px; }
.notice .summary { color: var(--muted); font-size: 12px; margin-top: 4px; }
.notice .actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.notice .actions button { font-size: 12px; padding: 4px 10px; }
.star {
  background: none; color: var(--muted); padding: 3px; border-radius: 6px; line-height: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.star svg { fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .12s, fill .12s; }
.star:hover { color: var(--star); }
.star:hover svg { transform: scale(1.12); }
.star.on { color: var(--star); }
.star.on svg { fill: currentColor; }
@media (prefers-reduced-motion: reduce) { .star svg { transition: none; } }
#homeTodo .grow, #todoList .grow { white-space: normal; }
@media (max-width: 600px) {
  .notice { flex-wrap: wrap; }
  .notice .body { flex-basis: calc(100% - 40px); }
  .notice .actions { flex-direction: row; align-items: center; justify-content: flex-end; width: 100%; }
  .kind-toggle { display: flex; }
  .kind-toggle button { flex: 1; justify-content: center; padding: 8px 6px; }
}
.todo input[type=checkbox] { width: auto; flex: none; cursor: pointer; }
.todo.done .grow { text-decoration: line-through; color: var(--muted); }
.todo .due { margin: 0; font-variant-numeric: tabular-nums; }
.todo-form input[name=text] { flex: 3; }
.todo-form input.ymd { flex: 1; min-width: 136px; max-width: 160px; font-variant-numeric: tabular-nums; }
input.ymd { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* 일정 팝업 */
.cal-full { margin-bottom: 16px; }
.cal-full .card { margin-bottom: 0; }

.cal-grid .ev[data-ev] { cursor: pointer; }
.dialog {
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--card); color: var(--text); box-shadow: 0 20px 50px var(--shadow);
}
.dialog::backdrop { background: var(--backdrop); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.dialog-head h2 { margin: 0; font-size: 16px; }
.dialog-head .icon { font-size: 22px; }
@media (max-width: 600px) { .legend { display: flex; } .legend > span { display: none; } }
.cal-head button.add-btn {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 6px;
  padding: 5px 12px 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft); border: 1.5px solid var(--accent);
}
.cal-head button.add-btn span { font-size: 16px; line-height: 1; }
.cal-head button.add-btn:hover { background: var(--accent); color: var(--on-accent); }
.cal-head button.add-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dialog h3 { font-size: 13px; color: var(--muted); margin: 16px 0 8px; }
.cal-head { flex-wrap: wrap; row-gap: 8px; }
@media (max-width: 600px) { .cal-head h2 { min-width: 0; } }

/* 진행 중인 업무 */
.work-list li.work { display: block; padding: 10px 0 10px 12px; }
.work-top { display: flex; align-items: center; gap: 8px; }
.work-top .grow { white-space: normal; font-weight: 500; }
.work-bar { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.work-bar .bar { flex: 1; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.work-bar .bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .2s; }
.work-bar .pct { width: 34px; text-align: right; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.work-bar .step {
  width: 26px; height: 24px; padding: 0; border-radius: 6px; font-size: 15px; line-height: 1;
  background: var(--card); color: var(--text); border: 1px solid var(--line);
}
.work-bar .step:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.work-bar .step:disabled { opacity: .35; cursor: default; }
.work.done .grow { text-decoration: line-through; color: var(--muted); }
.work.done .bar i { background: var(--c-personal); }
.work .due { margin: 0; }
@media (prefers-reduced-motion: reduce) { .work-bar .bar i { transition: none; } }

/* 할 일 ↔ 업무 연결 */
.work-select { flex: 1; min-width: 110px; max-width: 170px; width: auto; }
.work-chip {
  flex: none; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 11px; padding: 1px 8px; border-radius: 999px;
  color: var(--accent); border: 1px solid var(--accent); background: var(--accent-soft);
}
.work-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.work-todos { list-style: none; margin: 6px 0 0; padding: 0 0 0 4px; border-left: 2px solid var(--line); }
.work-todos li { display: flex; align-items: center; gap: 8px; padding: 3px 0 3px 8px; font-size: 13px; }
.work-todos li .grow { white-space: normal; }
.work-todo-form { margin: 4px 0 0 6px; }
.work-todo-form input { border: 0; border-bottom: 1px dashed var(--line); border-radius: 0; padding: 4px 4px; font-size: 13px; background: transparent; }
.work-todo-form input:focus { outline: none; border-bottom-color: var(--accent); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }

/* 대시보드 목록은 일정 높이까지만 보이고 그 이상은 휠로 내려 본다 */
#homeTodo, #workList { max-height: 360px; overflow-y: auto; }
#homeNew { max-height: 300px; overflow-y: auto; }
#homeTodo, #workList, #homeNew { padding-right: 6px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
#homeTodo::-webkit-scrollbar, #workList::-webkit-scrollbar, #homeNew::-webkit-scrollbar { width: 6px; }
#homeTodo::-webkit-scrollbar-thumb, #workList::-webkit-scrollbar-thumb, #homeNew::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 3px; }

/* 업무 ★ */
.work-star { flex: none; margin-left: -3px; }

/* 메모 (포스트잇) */
.memo-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.memo-head h2 { margin: 0; font-size: 18px; }
.note-search { width: auto; flex: 1; min-width: 160px; max-width: 320px; margin-right: auto; }
.memo-head h2 small { color: var(--muted); font-weight: 400; font-size: 13px; }
.note-colors, .note-swatches { display: inline-flex; gap: 6px; align-items: center; }
.swatch {
  width: 22px; height: 22px; padding: 0; border-radius: 50%;
  border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); cursor: pointer;
}
.swatch.on { border-color: var(--text); }
.swatch.mini { width: 14px; height: 14px; border-width: 1.5px; }
.swatch.mini.on { border-color: var(--note-ink); }
.n-yellow { --paper: #f3dc7c; }
.n-peach { --paper: #f2bc98; }
.n-pink { --paper: #eeb3c6; }
.n-mint { --paper: #acd9ba; }
.n-sky { --paper: #abc9e8; }
.n-lavender { --paper: #c9b8ea; }
.swatch { background: var(--paper); }
:root { --note-ink: #2b2620; }

.note-board {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px; margin-bottom: 24px; align-items: start;
}
.note {
  background: var(--paper); color: var(--note-ink);
  border-radius: 3px 3px 14px 3px; padding: 10px 12px 8px;
  box-shadow: 0 6px 14px rgba(0,0,0,.45);
  display: flex; flex-direction: column; min-height: 210px;
  transform: rotate(-.6deg); transition: transform .15s;
}
.note:nth-child(even) { transform: rotate(.7deg); }
.note:nth-child(3n) { transform: rotate(-.2deg); }
.note:focus-within, .note:hover { transform: rotate(0) translateY(-2px); }
.note-tools { display: flex; align-items: center; justify-content: space-between; gap: 6px; opacity: .55; transition: opacity .15s; }
.note:hover .note-tools, .note:focus-within .note-tools { opacity: 1; }
.note-del {
  background: transparent; color: var(--note-ink); padding: 0 6px; font-size: 18px; line-height: 1; border-radius: 6px;
}
.note-del.arm { background: var(--note-ink); color: var(--paper); font-size: 12px; padding: 3px 8px; }
.note-text {
  flex: 1; min-height: 150px; margin-top: 6px; padding: 2px 0;
  background: transparent; border: 0; border-radius: 0; resize: vertical;
  color: var(--note-ink); font-size: 15px; line-height: 1.6;
}
.note-text:focus { outline: none; }
.note-text::placeholder { color: rgba(43, 38, 32, .45); }
.note-time { font-size: 11px; opacity: .6; text-align: right; font-variant-numeric: tabular-nums; }
.note-empty { grid-column: 1 / -1; padding: 30px 0; text-align: center; font-size: 14px; }
.backup { max-width: 640px; }
@media (prefers-reduced-motion: reduce) { .note, .note:nth-child(even), .note:nth-child(3n) { transform: none; transition: none; } }
.row > label.file-btn { flex: none; }

/* 동기화 로그인 */
.sync { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.sync-status { color: var(--muted); white-space: nowrap; }
.sync-status.ok::before { content: "●"; color: var(--support); margin-right: 4px; font-size: 9px; vertical-align: 1px; }
.sync-status.err { color: var(--danger); }
.sync-btn { padding: 5px 12px; font-size: 12px; }
.nudge {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 14px; padding: 12px 16px; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid var(--accent); color: var(--text);
}
.nudge span { flex: 1; min-width: 200px; }
.nudge[hidden] { display: none; }
.login-dialog { width: min(360px, calc(100vw - 32px)); }
.login-msg { min-height: 1.2em; color: var(--danger); margin: 0; }

/* 로그인 페이지 */
.gate { display: none; }
body.locked > .gate {
  display: grid; place-items: center; min-height: 100vh;
  padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
}
body.locked > header, body.locked > main { display: none; }
.gate-card {
  width: min(360px, 100%); padding: 32px 28px 28px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
}
.gate-brand { margin: 4px 0 30px; text-align: center; font-weight: 400; }
.gate-wait { color: var(--muted); }
.gate form button { width: 100%; padding: 10px; }
.gate .login-msg { min-height: 1.2em; margin: 0; color: var(--danger); font-size: 13px; }

/* 서비스 선택 화면 */
.hub { display: none; }
body.hub-mode:not(.locked) > .hub { display: block; }
body.hub-mode > header, body.hub-mode > main { display: none; }
.hub {
  max-width: 1040px; margin: 0 auto;
  padding: 56px max(16px, env(safe-area-inset-right, 0px)) 64px max(16px, env(safe-area-inset-left, 0px));
}
.hub-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }
.hub-brand { margin: 0; font-weight: 400; }
.hub-user { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .hub-grid { grid-template-columns: 1fr; } .hub { padding-top: 32px; } }

.svc {
  --tint: var(--accent); --tint-soft: var(--accent-soft);
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  min-height: 230px; padding: 24px 22px 20px; text-align: left;
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 18px;
  font: inherit; cursor: pointer; overflow: hidden;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.svc::after {   /* 카드 오른쪽 위에 은은한 색 번짐 */
  content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, var(--tint-soft) 0%, transparent 70%); opacity: .9; pointer-events: none;
}
.svc-ai { --tint: #a58bf0; --tint-soft: #2c2540; }
.svc-trip { --tint: #5fbfa6; --tint-soft: #1c3330; }
.svc:not(:disabled):hover { transform: translateY(-3px); border-color: var(--tint); box-shadow: 0 12px 28px var(--shadow); }
.svc:focus-visible { outline: 2px solid var(--tint); outline-offset: 3px; }
.svc:disabled { cursor: default; }
.svc-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 10px;
  border-radius: 14px; background: var(--tint-soft); color: var(--tint); position: relative; z-index: 1;
}
.svc-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc-name { font-size: 19px; font-weight: 600; position: relative; z-index: 1; }
.svc-desc { color: var(--muted); font-size: 13px; position: relative; z-index: 1; }
.svc-meta { margin-top: auto; padding-top: 14px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.svc-go { position: absolute; right: 20px; bottom: 18px; font-size: 13px; color: var(--tint); font-weight: 600; z-index: 1; }
.svc-chip {
  margin-top: auto; font-size: 11px; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: var(--bg); position: relative; z-index: 1;
}
.svc:disabled .svc-name, .svc:disabled .svc-icon { opacity: .75; }
@media (prefers-reduced-motion: reduce) { .svc { transition: none; } }

/* 대시보드 왼쪽 위 이름 = 서비스 선택으로 돌아가는 버튼 */
button.brand { background: none; border: 0; padding: 0; color: var(--text); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
button.brand:hover { color: var(--accent); }

/* 헤더 날씨: 날짜마다 작은 칸 */
.weather .w-day {
  display: grid; grid-template-columns: auto auto; align-items: center;
  column-gap: 12px; row-gap: 1px; padding: 6px 12px 5px;
  border-radius: 12px; background: var(--bg); border: 1px solid var(--line);
}
.weather .w-icon { font-size: 22px; line-height: 1; justify-self: center; }
.weather .w-temp { font-size: 14px; font-weight: 600; color: var(--text); justify-self: end; }
.weather .w-temp small { font-size: 11px; font-weight: 400; color: var(--muted); }
.weather .w-label { color: var(--muted); font-size: 11px; justify-self: center; }
.weather .w-pop { font-size: 11px; color: var(--muted); justify-self: end; }
.weather .w-when { grid-column: 1 / -1; justify-self: center; font-size: 11px; font-weight: 600; color: var(--text); margin-top: 2px; }

/* 헤더 오른쪽: 날짜 / 동기화·로그아웃 (위아래), 그 옆에 날씨 */
.head-info { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
@media (max-width: 600px) {
  .head-info { margin-left: 0; align-items: flex-start; width: 100%; }
  .today-label { align-items: flex-start; }
}

/* 로고: 마루 부리, 넓은 자간의 SOL WORKS + 가는 선 · 별 · 가는 선 */
.logo { display: inline-flex; flex-direction: column; align-items: center; color: var(--text); font-family: "MaruBuri", serif; font-weight: 400; line-height: 1; }
.logo-word { letter-spacing: var(--ls); margin-right: calc(-1 * var(--ls)); white-space: nowrap; }   /* 마지막 글자 뒤 자간만큼 당겨 가운데 맞춤 */
.logo-gap { display: inline-block; width: var(--gap); }
.logo-orn { display: flex; align-items: center; gap: var(--orn-gap); width: 100%; margin-top: var(--orn-top); }
.logo-orn i { flex: 1; height: 1px; background: currentColor; opacity: .55; }
.logo-star { width: var(--star); height: var(--star); fill: currentColor; flex: none; }
.logo-lg { --ls: .55em; --gap: .7em; --orn-gap: 14px; --orn-top: 16px; --star: 18px; font-size: 26px; }
.logo-md { --ls: .5em; --gap: .6em; --orn-gap: 10px; --orn-top: 11px; --star: 13px; font-size: 19px; }
.logo-sm { --ls: .35em; --gap: .45em; font-size: 14px; }
@media (max-width: 600px) { .logo-lg { font-size: 22px; } }
button.brand:hover .logo { color: var(--accent); }
