:root{
  --bg:#0b1020;
  --card:#121a33;
  --card2:#0f1730;
  --text:#e9ecff;
  --muted:#aeb7e7;
  --line:rgba(255,255,255,.12);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:16px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", Arial, sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 800px at 20% 10%, #25306b 0%, transparent 55%),
              radial-gradient(900px 700px at 80% 30%, #3b1c6a 0%, transparent 55%),
              var(--bg);
}

.wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 18px 40px;
}

.top{
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.brand{
  display:flex;
  gap:14px;
  align-items:center;
  padding:16px 18px;
  background: rgba(18,26,51,.65);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex:1;
  min-width: 280px;
}

.logo{
  width:44px;height:44px;
  display:grid;place-items:center;
  font-size:22px;
  background: rgba(255,255,255,.10);
  border:1px solid var(--line);
  border-radius: 12px;
}

.brandText h1{
  margin:0;
  font-size: 22px;
  letter-spacing:.2px;
}
.subtitle{
  margin-top:6px;
  color:var(--muted);
  font-size: 13px;
}

.headerRight{
  width: 320px;
  min-width: 260px;
}

.nowCard{
  height:100%;
  padding:16px 18px;
  background: rgba(18,26,51,.65);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:8px;
}

.nowLabel{
  color:var(--muted);
  font-size:12px;
}
.nowTime{
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 1px;
}
.nowDate{
  color:var(--muted);
  font-size: 13px;
}

.panel{
  padding:16px 18px 18px;
  background: rgba(18,26,51,.50);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panelHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.panelHead h2{
  margin:0;
  font-size:16px;
}
.hint{
  color:var(--muted);
  font-size:12px;
}

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

/* 타일 */
.tile{
  --tileColor: rgba(255,255,255,.7);
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:14px 14px 12px;
  background: rgba(15,23,48,.80);
  border:1px solid var(--line);
  border-radius: 14px;
  text-decoration:none;
  color:var(--text);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  min-height: 120px;
}
.tile:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.22);
  background: rgba(15,23,48,.95);
}

.tileTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.badge{
  font-size:11px;
  color: var(--muted);
  border:1px solid var(--line);
  padding:4px 8px;
  border-radius: 999px;
  white-space:nowrap;
}

/* ✅ 바늘시계 아이콘 (SVG) */
.iconClock{
  width:40px;height:40px;
  display:grid;place-items:center;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  color: var(--tileColor);
}
.iconClock svg{
  width:22px;height:22px;
  display:block;
}

/* ✅ 편집 가능한 제목/캡션 */
.tileTitle{
  font-size:15px;
  font-weight:750;
  line-height:1.2;
  cursor: text;
  outline: none;
}
.tileCaption{
  margin-top:auto;
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
  cursor:text;
  outline:none;
}

/* 서브페이지에서 쓸 “메인으로” 버튼(예쁨) */
.navBack{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 12px;
  font-size:13px;
  color: var(--muted);
  text-decoration:none;
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  border-radius: 999px;
  transition: all .15s ease;
}
.navBack:hover{
  color: var(--text);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
  transform: translateX(-2px);
}

.footer{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  color: rgba(233,236,255,.6);
  font-size: 12px;
  padding: 0 2px;
}

@media (max-width: 980px){
  .grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
  .headerRight{ width: 280px; }
}
@media (max-width: 760px){
  .top{ flex-direction:column; }
  .headerRight{ width:100%; }
  .grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 420px){
  .grid{ grid-template-columns: 1fr; }
}
