.time-record-content { max-width:400px; max-height:calc(100dvh - 28px); overflow-y:auto; }
.time-record-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
.time-record-heading h3 { margin:0; font-size:19px; }
.time-record-heading button { border:0; background:transparent; color:var(--text-sub); font-size:20px; min-width:40px; min-height:40px; cursor:pointer; }
.time-record-body { display:flex; flex-direction:column; gap:10px; }
.time-record-body button,.time-record-body select { font:inherit; font-size:14px; min-height:44px; border:1px solid var(--border-light); border-radius:9px; padding:10px 12px; background:var(--bg-card); color:var(--text-main); text-align:left; cursor:pointer; overflow-wrap:anywhere; }
.time-record-body .time-record-primary { background:var(--point-main); color:var(--bg-card); font-weight:600; text-align:center; }
.time-record-body h4 { font-size:13px; color:var(--text-sub); margin:12px 0 0; }
.time-record-note { margin:0 0 4px; font-size:13px; line-height:1.6; color:var(--text-sub); }
.time-record-field { display:flex; flex-direction:column; gap:7px; font-size:13px; color:var(--text-sub); }
.time-record-field input { width:100%; min-width:0; min-height:46px; box-sizing:border-box; border:1px solid var(--border-light); background:var(--bg-card); color:var(--text-main); border-radius:9px; padding:10px; font:inherit; font-size:16px; }
.time-record-body [hidden] { display:none !important; }
.time-record-error { color:#d94050; font-size:13px; margin:0; }
.time-record-datetime { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:10px; }
.time-record-datetime input[type=date] { -webkit-appearance:none; appearance:none; }
.time-record-field input:focus-visible { outline:2px solid var(--point-main); outline-offset:2px; }
#break-rest-type { width:100%;max-width:220px;min-height:44px;padding:10px;border:1px solid var(--border-light);border-radius:8px;background:var(--bg-input);color:var(--text-main);font:inherit; }
.time-record-field input:disabled { opacity:.65; background:var(--bg-task); cursor:default; }
.time-record-now { display:flex; align-items:center; gap:10px; padding:10px 0; color:var(--text-main); cursor:pointer; }
.time-record-now input { width:20px; height:20px; flex:0 0 20px; margin:0; accent-color:var(--point-main); }
.time-record-now strong { display:block; font-size:14px; font-weight:600; }
.time-record-now small { display:block; color:var(--text-sub); font-size:12px; line-height:1.5; margin-top:3px; }
.time-record-end { display:flex; flex-direction:column; gap:10px; border-top:1px solid var(--border-light); padding-top:14px; margin-top:4px; }
.time-record-end-title { font-size:14px; font-weight:600; color:var(--text-main); }
.time-record-sleep-end { border:0;padding:0;margin:0; }
.time-record-sleep-switch button { flex:1;text-align:center; }
.time-record-sleep-context { padding:9px 12px;border-radius:9px;background:var(--bg-task); }
.time-record-sleep-row { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
.time-record-sleep-row button { line-height:1.5; }
.timeline-time-add { min-height:36px; border:1px solid var(--border-light); border-radius:999px; padding:7px 14px; background:var(--bg-card,#fff); color:var(--text-main,#294135); font:inherit; font-size:13px; cursor:pointer; }
.timeline-time-add[hidden] { display:none; }
.timeline-time-add:disabled { opacity:.55; cursor:default; }
@media(max-width:360px) { .time-record-datetime { grid-template-columns:minmax(0,1fr); } }
@media(pointer:coarse) { html.records-embedded #timetable-controls > #timeline-add-time-btn { min-height:44px; } }
.timeline-time-list { margin:0 0 16px; padding:14px; border:1px solid var(--border-light); border-radius:12px; }
.timeline-time-list h4 { margin:0 0 10px; font-size:14px; }
.timeline-time-list button { display:block; width:100%; padding:9px 4px; margin:0; border:0; border-bottom:1px solid var(--border-light); background:transparent; color:var(--text-main); font:inherit; font-size:13px; text-align:left; line-height:1.6; cursor:pointer; overflow-wrap:anywhere; }
.timeline-time-list button:last-child { border-bottom:0; }
.timeline-time-list button:disabled { cursor:default; opacity:1; }
.timeline-time-point { position:absolute; top:0; bottom:0; width:16px; min-width:0; padding:0; transform:translateX(-50%); border:0; background:transparent; z-index:8; cursor:pointer; }
.timeline-time-point::before { content:''; position:absolute; top:0; bottom:0; left:7px; border-left:2px solid #646187; }
.timeline-time-point::after { content:''; position:absolute; width:8px; height:8px; border-radius:50%; background:#646187; border:1px solid white; left:3px; top:2px; }
.timeline-point-label { position:absolute; left:13px; top:0; padding:2px 5px; border-radius:4px; background:var(--bg-card,#fff); color:var(--text-main,#294135); font:500 10px/1.4 Pretendard,sans-serif; white-space:nowrap; box-shadow:0 1px 3px #29413518; }
.study-session-actions { flex-wrap:wrap; }

#records-tab .records-toolbar { flex-wrap:wrap; }
#time-record-btn[hidden] { display:none !important; }

.time-record-shortcuts { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:2px; }
.time-record-shortcuts > span { font-size:12px; color:var(--text-sub); margin-right:2px; }
.time-record-body .time-record-shortcuts button { min-height:36px; padding:6px 12px; font-size:13px; border-radius:18px; }
.time-record-shortcuts button[aria-pressed=true] { border-color:var(--point-main); background:var(--bg-task); }

/* Mobile keeps two primary timer actions; the point action sits below account buttons. */
.time-record-mobile-slot { display:none; }
@media(max-width:600px) {
  #user-info-area { flex-wrap:wrap; row-gap:5px !important; }
  .time-record-mobile-slot { display:flex; flex:0 0 100%; justify-content:flex-end; min-width:0; }
  #header-section .time-record-mobile-slot #time-record-btn { min-height:36px; padding:6px 10px; font-size:12px; font-weight:500; border:1px solid var(--border-light); border-radius:8px; background:transparent; color:var(--text-sub); }
}
