@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');

:root{
  --bg:#090d14;
  --panel:#121924;
  --panel-2:#182231;
  --panel-3:#202b3b;
  --line:rgba(255,255,255,.08);
  --text:#f6f8fb;
  --muted:#8f9caf;
  --soft:#b7c0cf;
  --accent:#c8d7ff;
  --accent-2:#9cb7ff;
  --good:#b9e2c7;
  --shadow:0 18px 50px rgba(0,0,0,.25);
  --radius:22px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  color:var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(122,151,220,.11), transparent 28rem),
    radial-gradient(circle at 100% 30%, rgba(185,130,222,.08), transparent 30rem),
    var(--bg);
  font-family:Inter,"Noto Sans KR",system-ui,sans-serif;
}
button,input,textarea{font:inherit}
button{cursor:pointer}
.app-shell{width:min(1420px,calc(100% - 40px));margin:0 auto;padding:34px 0 28px}

.topbar{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:24px}
.eyebrow,.card-kicker{font-size:11px;letter-spacing:.16em;color:var(--muted);margin:0 0 7px;font-weight:700}
h1{font-size:clamp(28px,4vw,46px);letter-spacing:-.045em;margin:0;line-height:1.08}
h1 strong{font-weight:800}
.wave{display:inline-block;color:#cbd8ff;font-size:.7em;transform:translateY(-3px);margin-left:4px}
.date-line{color:var(--muted);font-size:13px;margin:9px 0 0}
.top-actions{display:flex;align-items:center;gap:10px}
.live-time{font-size:12px;color:var(--soft);font-variant-numeric:tabular-nums}
.icon-button{
  width:40px;height:40px;border-radius:12px;border:1px solid var(--line);
  background:var(--panel);color:var(--soft);font-size:20px;
}
.icon-button:hover{background:var(--panel-2);color:var(--text)}

.dashboard-grid{
  display:grid;
  grid-template-columns:1.2fr .9fr .9fr;
  grid-template-areas:
    "schedule focus weather"
    "schedule todo memo"
    "schedule money care";
  gap:14px;
  align-items:stretch;
}
.card{
  position:relative;overflow:hidden;
  background:linear-gradient(145deg,rgba(24,34,49,.98),rgba(14,20,29,.98));
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:var(--shadow);
}
.card:after{
  content:"";position:absolute;width:150px;height:150px;right:-90px;top:-90px;
  background:radial-gradient(circle,rgba(203,216,255,.07),transparent 68%);
  pointer-events:none;
}
.schedule-card{grid-area:schedule;min-height:640px}
.focus-card{grid-area:focus;min-height:290px}
.weather-card{grid-area:weather}
.todo-card{grid-area:todo}
.memo-card{grid-area:memo}
.small-card{min-height:200px}
.small-card:nth-of-type(6){grid-area:money}
.small-card:nth-of-type(7){grid-area:care}

.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.card-head h2{font-size:18px;letter-spacing:-.03em;margin:0}
.card-label,.focus-badge{
  color:#8290a5;font-size:10px;letter-spacing:.08em;font-weight:600;
  white-space:nowrap;padding-top:2px;
}
.focus-badge{color:#c6d2ea;background:rgba(184,202,239,.08);border:1px solid rgba(184,202,239,.13);padding:6px 9px;border-radius:999px}
.schedule-list{margin:28px 0 25px}
.schedule-item{display:grid;grid-template-columns:62px 1fr;gap:14px;position:relative;padding:0 0 24px}
.schedule-item:not(:last-child):after{content:"";position:absolute;left:9px;top:26px;bottom:0;width:1px;background:rgba(255,255,255,.09)}
.schedule-time{font-size:12px;color:#8e9bb0;font-variant-numeric:tabular-nums;padding-top:2px}
.schedule-dot{position:absolute;left:5px;top:4px;width:9px;height:9px;border-radius:50%;background:#cbd8ff;box-shadow:0 0 0 5px rgba(203,216,255,.07)}
.schedule-copy{padding-left:4px}
.schedule-copy strong{display:block;font-size:14px;margin-bottom:4px}
.schedule-copy span{font-size:12px;color:var(--muted)}
.button-row{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:auto}

.primary-btn,.secondary-btn{
  border-radius:12px;padding:11px 13px;border:1px solid transparent;
  transition:.2s ease;white-space:nowrap;
}
.primary-btn{background:#d8e2ff;color:#101622;font-weight:700}
.primary-btn:hover{transform:translateY(-1px);filter:brightness(1.04)}
.secondary-btn{background:rgba(30,42,58,.85);border-color:var(--line);color:#d8deea}
.secondary-btn:hover{background:#243146}
.full{width:100%;margin-top:12px}

.focus-card{
  background:
    radial-gradient(circle at 88% 20%,rgba(160,182,255,.16),transparent 9rem),
    linear-gradient(145deg,#182338,#101722);
  display:flex;flex-direction:column;
}
.focus-orb{position:absolute;right:24px;top:60px;font-size:42px;opacity:.22}
.focus-label{font-size:12px;color:var(--muted);margin:28px 0 9px}
.focus-input,.memo-input{
  width:100%;resize:vertical;outline:none;color:var(--text);
  background:rgba(7,12,19,.35);border:1px solid rgba(255,255,255,.07);
  border-radius:14px;padding:14px;line-height:1.6;
}
.focus-input{min-height:100px;font-size:18px;font-weight:600;letter-spacing:-.02em}
.focus-input::placeholder,.memo-input::placeholder{color:#657186}
.focus-input:focus,.memo-input:focus,input:focus{border-color:rgba(203,216,255,.35);box-shadow:0 0 0 3px rgba(203,216,255,.06)}
.focus-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:auto;padding-top:13px}
.saved-note,.hint{font-size:11px;color:#77849a;margin:0}

.weather-main{display:flex;align-items:center;gap:15px;margin:26px 0 17px}
.weather-icon{font-size:38px}
.weather-main strong{display:block;font-size:31px;letter-spacing:-.05em}
.weather-main span{display:block;color:var(--muted);font-size:12px;margin-top:3px}
.weather-meta{display:flex;justify-content:space-between;color:#b6c0d0;font-size:12px}
.weather-meta span:last-child{color:#77849a}

.memo-input{min-height:118px;margin-top:22px}
.todo-add{display:flex;gap:8px;margin-top:18px}
.todo-add input,.schedule-editor input{
  width:100%;min-width:0;background:rgba(7,12,19,.35);color:var(--text);
  border:1px solid var(--line);border-radius:12px;padding:11px 12px;outline:none;
}
.todo-list{list-style:none;padding:0;margin:13px 0 0;display:flex;flex-direction:column;gap:7px;max-height:170px;overflow:auto}
.todo-item{display:flex;align-items:center;gap:9px;background:rgba(30,42,58,.58);border-radius:11px;padding:9px 10px}
.todo-item input{width:16px;height:16px;accent-color:#cbd8ff}
.todo-text{font-size:12px;flex:1;min-width:0;word-break:break-word}
.todo-item.done .todo-text{text-decoration:line-through;color:#68758a}
.delete-todo{border:0;background:none;color:#657186;font-size:16px;padding:0 3px}
.delete-todo:hover{color:#e5a8b2}

.metric{display:flex;justify-content:space-between;align-items:center;background:rgba(30,42,58,.58);border-radius:12px;padding:12px 13px;margin-top:9px}
.metric span{font-size:11px;color:#8b98aa}
.metric strong{font-size:15px}
.habit-row{display:flex;flex-wrap:wrap;gap:7px;margin-top:21px}
.habit{border:1px solid var(--line);background:rgba(30,42,58,.58);color:#c7d0de;border-radius:10px;padding:9px 10px;font-size:11px}
.habit.active{background:rgba(185,226,199,.13);border-color:rgba(185,226,199,.3);color:#d7f0df}

footer{display:flex;justify-content:space-between;color:#596579;font-size:10px;padding:18px 4px 0}

.modal.hidden{display:none}
.modal{position:fixed;inset:0;z-index:20;display:grid;place-items:center}
.modal-backdrop{position:absolute;inset:0;background:rgba(3,6,10,.72);backdrop-filter:blur(6px)}
.modal-panel{position:relative;width:min(560px,calc(100% - 30px));max-height:90vh;overflow:auto;background:#111a27;border:1px solid var(--line);border-radius:20px;padding:20px;box-shadow:0 30px 90px rgba(0,0,0,.5)}
.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.modal-head h2{margin:0;font-size:18px}
.schedule-editor{display:flex;flex-direction:column;gap:10px;margin-bottom:14px}
.editor-row{display:grid;grid-template-columns:90px 1fr;gap:8px}
.editor-row input:first-child{text-align:center}
.empty-state{color:#6d7a8d;text-align:center;padding:16px;font-size:12px}

@media (max-width:1050px){
  .dashboard-grid{
    grid-template-columns:1fr 1fr;
    grid-template-areas:
      "focus focus"
      "schedule weather"
      "schedule memo"
      "todo todo"
      "money care";
  }
  .schedule-card{min-height:600px}
}
@media (max-width:700px){
  .app-shell{width:min(100% - 24px,560px);padding-top:22px}
  .topbar{align-items:flex-start;margin-bottom:16px}
  .top-actions{padding-top:4px}
  .live-time{display:none}
  .dashboard-grid{
    grid-template-columns:1fr;
    grid-template-areas:
      "focus"
      "schedule"
      "todo"
      "weather"
      "memo"
      "money"
      "care";
  }
  .card{padding:18px;border-radius:18px}
  .schedule-card,.focus-card{min-height:auto}
  .schedule-list{margin-top:24px}
  .focus-input{font-size:16px}
  footer{flex-direction:column;gap:5px}
}

.weather-range{display:flex;gap:10px;margin:-4px 0 14px;color:#aeb9ca;font-size:11px}
.weather-updated{margin-top:9px}

.exchange-box{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.07);
}
.exchange-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.exchange-head h3{margin:0;font-size:16px;letter-spacing:-.03em}
.exchange-badge{
  font-size:9px;letter-spacing:.08em;color:#aebbd0;
  border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);
  padding:5px 7px;border-radius:999px;
}
.exchange-value{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:17px 0 8px}
.exchange-value span{font-size:13px;color:#8e9bb0}
.exchange-value strong{font-size:26px;letter-spacing:-.04em}
.exchange-sub{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#77849a}
