/* Quiet list layout with mint reserved for the main study action. */
#execution-tab { --exec-ink:#293e34; --exec-muted:#748078; --exec-line:#e5ece8; padding-top:28px; }
#execution-tab .execution-workspace { width:100%; max-width:640px; margin:0 auto; padding:0; box-sizing:border-box; }
#execution-tab .plan-main-header { border:0; margin:0 0 20px; padding:0; align-items:center; }
#execution-tab .plan-board-title { font-size:22px; font-weight:650; letter-spacing:-.5px; color:var(--exec-ink); }
#execution-tab .execution-add { height:38px; border:1px solid #dce7e1; border-radius:8px; background:#fff; color:#4d6659; font-size:13px; font-weight:600; padding:0 16px; cursor:pointer; transition:background .15s; }
#execution-tab .execution-add:hover { background:#edf5f0; border-color:#c5ddcf; }
#study-dashboard { max-width:640px; margin:0 0 20px; }
#study-dashboard:empty { display:none; }
#study-dashboard .study-summary { margin:0; border:0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
#study-dashboard .study-metric { display:flex; flex-direction:column; align-items:flex-start; gap:6px; padding:2px 0; border:0; border-radius:0; background:transparent; box-shadow:none; }
#study-dashboard .study-metric + .study-metric { border-left:0; }
#study-dashboard .study-metric:hover { transform:none; box-shadow:none; }
#study-dashboard .study-metric > span { font-size:12px; font-weight:400; color:var(--exec-muted); }
#study-dashboard .study-metric strong { font-size:15px; font-weight:600; color:var(--exec-ink); font-variant-numeric:tabular-nums; }
#study-list.execution-list { display:block !important; padding:0 20px 16px; border:1px solid var(--exec-line); border-radius:12px; background:var(--bg-card); box-shadow:none; box-sizing:border-box; }
.execution-filters { display:flex; gap:6px; padding:14px 0; border-bottom:1px solid var(--exec-line); flex-wrap:wrap; }
.execution-filter { display:inline-flex; align-items:center; gap:8px; height:34px; padding:0 12px; border:1px solid transparent; border-radius:7px; background:transparent; color:var(--exec-muted); cursor:pointer; font-size:13px; font-weight:500; }
.execution-filter:hover { background:#f5f8f6; }
.execution-filter[aria-pressed="true"] { color:#34745d; background:#edf6f1; border-color:transparent; box-shadow:none; font-weight:600; }
.execution-filter-count { min-width:16px; font-size:11px; font-weight:500; text-align:center; color:var(--exec-muted); font-variant-numeric:tabular-nums; }
.execution-filter[aria-pressed="true"] .execution-filter-count { color:#34745d; }
.execution-subject { margin:20px 0 0; }
.execution-subject-heading { display:flex; gap:8px; align-items:center; padding:0; margin-bottom:2px; }
.execution-subject-heading::before { content:none; }
.execution-subject-heading h3 { margin:0; color:#566b5f; font-size:12px; font-weight:600; }
.execution-subject-heading > span { color:var(--exec-muted); font-size:11px; font-weight:400; }
.execution-row { position:relative; display:grid; grid-template-columns:26px minmax(0,1fr) 100px auto 32px; column-gap:12px; row-gap:0; align-items:center; padding:16px 0; margin:0; background:transparent; border:0; border-bottom:1px solid var(--exec-line); border-radius:0; }
.execution-row:last-child { margin-bottom:0; border-bottom:0; }
.execution-row:hover { background:transparent; box-shadow:none; transform:none; }
.execution-check { width:24px; height:24px; padding:0; border:2px solid #A8D5C2; border-radius:50%; color:white; background:#FFFFFF; cursor:pointer; font-size:13px; display:flex; align-items:center; justify-content:center; transition:all .2s ease; }
.execution-check:hover { border-color:#52B788; background:#EAF7F1; transform:scale(1.06); }
.execution-check.state-1 { background:#52B788; border-color:#52B788; color:#FFFFFF; }
.execution-check.state-2 { background:#FFCC80; border-color:#FFB74D; color:#FFFFFF; }
.execution-check.state-3 { background:#FFF5F5; border-color:#E57373; color:#E57373; font-weight:700; }
.execution-name { min-width:0; display:flex; flex-direction:column; gap:5px; }
.execution-name strong { font-size:15px; color:var(--exec-ink); font-weight:600; overflow-wrap:anywhere; line-height:1.5; }
.execution-name small, .execution-time small { font-size:12px; color:var(--exec-muted); font-weight:500; }
.execution-time { display:flex; flex-direction:column; gap:4px; text-align:right; font-size:14px; font-weight:700; color:#2E7D5B; font-variant-numeric:tabular-nums; }
.execution-time > span,.execution-time > small { white-space:nowrap; }
.execution-editor-note { grid-column:1 / -1; margin:0; font-size:12px; line-height:1.6; color:var(--exec-muted); }
.execution-row-actions { display:flex; gap:6px; align-items:center; }
.execution-start { height:38px; min-width:64px; border:1px solid var(--point-main); background:var(--point-main); color:#173f33; border-radius:8px; padding:0 14px; font-size:13px; font-weight:600; cursor:pointer; white-space:nowrap; }
.execution-start:hover { background:var(--point-hover); border-color:var(--point-hover); }
.execution-button { box-sizing:border-box; height:38px; border:1px solid #e1e8e4; border-radius:8px; padding:0 12px; font:inherit; font-size:12px; font-weight:500; background:#f5f7f6; color:#607267; cursor:pointer; white-space:nowrap; transition:background .15s; }
.execution-button:hover { background:#eaf1ed; border-color:#d1ded6; }
/* Keep the native details content in a full-width box; display:contents does not
   reliably flatten the browser's internal details-content layout. */
.execution-more { display:block; grid-column:1 / -1; min-width:0; }
.execution-more > summary { position:absolute; top:16px; right:0; width:32px; height:38px; display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0; list-style:none; font-size:21px; color:var(--exec-muted); border-radius:8px; }
.execution-more > summary::-webkit-details-marker { display:none; }
.execution-more > summary:hover,.execution-more[open] > summary { background:#f0f5f2; color:#34745d; }
.execution-editor { display:grid; grid-template-columns:minmax(0,1fr) 68px 68px; column-gap:8px; row-gap:12px; min-width:0; margin:16px 0 0 38px; padding:16px 0 0; border-top:1px solid var(--exec-line); box-sizing:border-box; }
.execution-more:not([open]) > .execution-editor { display:none; }
.execution-fields { grid-column:1; grid-row:1; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.8fr) 100px; gap:8px; align-items:end; }
.execution-fields label { min-width:0; display:flex; flex-direction:column; gap:7px; font-size:12px; font-weight:600; color:var(--exec-muted); }
.execution-fields input { width:100%; min-width:0; box-sizing:border-box; height:38px; padding:0 10px; border:1px solid #dfe8e2; border-radius:8px; background:#fff; color:var(--text-main); font:inherit; }
.execution-edit-actions { grid-column:1 / -1; grid-row:2; display:flex; align-items:center; flex-wrap:wrap; gap:8px; min-width:0; }
.execution-edit-actions > .execution-button { flex:0 0 auto; padding:0 12px; }
.execution-edit-actions label { display:flex; align-items:center; gap:8px; font-size:12px; font-weight:600; color:var(--exec-muted); }
.execution-edit-actions input { width:135px; min-width:0; height:38px; box-sizing:border-box; border:1px solid #dfe8e2; background:#fff; color:var(--text-main); border-radius:8px; padding:0 10px; font:inherit; }
.execution-extra { position:relative; margin-left:auto; }
.execution-extra > summary { display:flex; align-items:center; justify-content:center; gap:8px; height:38px; padding:0 12px; border:1px solid #e1e8e4; border-radius:8px; color:#607267; background:#f5f7f6; font-size:12px; cursor:pointer; list-style:none; }
.execution-extra > summary::-webkit-details-marker { display:none; }
.execution-extra > summary::after { content:'⌄'; }
.execution-extra[open] > summary,.execution-extra > summary:hover { background:#eaf1ed; }
.execution-extra-items { position:absolute; z-index:20; right:0; top:calc(100% + 6px); min-width:168px; padding:5px; border:1px solid #dfe7e2; border-radius:10px; background:#fff; box-shadow:0 8px 24px #233d3020; }
.execution-extra:not([open]) > .execution-extra-items { display:none; }
.execution-extra-items .execution-button { display:block; width:100%; padding:0 10px; border:0; border-radius:6px; text-align:left; background:transparent; }
.execution-extra-items .execution-button:hover { background:#f0f5f2; }
.execution-editor > .execution-save,.execution-editor > .execution-delete { grid-row:1; align-self:end; width:68px; padding:0; }
.execution-editor > .execution-save { grid-column:2; }
.execution-editor > .execution-delete { grid-column:3; }
.execution-delete { background:#fff2f1; color:#af7470; border-color:#f1dfdd; }
.execution-delete:hover { background:#fce6e4; border-color:#e8c9c5; color:#9d605a; }
.execution-history { grid-column:1 / -1; font-size:12px; color:var(--exec-muted); }
.execution-history summary { cursor:pointer; padding:8px 0; font-weight:600; }
.execution-history-row { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:6px 0; }
.execution-save { background:#edf6f1; border-color:#d7e9df; color:#34745d; font-weight:600; }
.execution-save:hover { background:#dfefe5; border-color:#c5ddcf; }
.execution-editor input:focus-visible,.execution-editor button:focus-visible { outline:2px solid #52B788; outline-offset:2px; }
.execution-completed { border-top:1px solid var(--exec-line); margin-top:12px; }
.execution-completed > summary { cursor:pointer; padding:16px 4px 8px; color:var(--exec-muted); font-size:13px; font-weight:700; }
.execution-row.is-done { background:transparent; opacity:1; }
.execution-row.is-done .execution-check { background:#52B788; border-color:#52B788; }
.execution-row:not(.is-done) .execution-check { background:#fff; color:#34745d; }
.execution-row.is-done .execution-name strong { color:var(--exec-muted); text-decoration:line-through; }
.execution-row.is-running { background:#f4faf6; box-shadow:none; }
.execution-start.is-running { color:#B36B00; background:#FFF8E7; border-color:#F6BD60; box-shadow:none; }
.execution-empty { margin-top:0; padding:38px 14px; text-align:center; background:transparent; border:0; border-radius:0; }
.execution-empty strong { color:#2C5E4A; font-size:16px; font-weight:800; }
.execution-empty p { font-size:13px; color:var(--exec-muted); line-height:1.8; margin:8px 0 0; }
#study-dashboard-tools { width:100%; max-width:640px; margin:18px auto 0; display:flex; flex-direction:column; gap:12px; }
#study-dashboard-tools > .study-disclosure { width:100%; border:0; border-bottom:1px solid var(--exec-line); border-radius:0; background:transparent; padding:0; box-shadow:none; }
#study-dashboard-tools > .study-disclosure[open] { padding-bottom:20px; }
#study-dashboard-tools > .study-disclosure > summary { cursor:pointer; min-height:44px; padding:12px 0; color:#667a6e; font-size:13px; font-weight:500; display:flex; align-items:center; justify-content:space-between; list-style:none; }
#study-dashboard-tools > .study-disclosure > summary::-webkit-details-marker { display:none; }
#study-dashboard-tools > .study-disclosure > summary::after { content:'펼치기 ▾'; font-size:11px; font-weight:400; color:var(--exec-muted); }
#study-dashboard-tools > .study-disclosure[open] > summary::after { content:'접기 ▴'; }
#study-dashboard-tools .study-recent-grid { display:grid; grid-template-columns:1fr; gap:0; margin-top:8px; }
#study-dashboard-tools .study-recent-card { background:transparent; border:0; border-bottom:1px solid var(--exec-line); border-radius:0; padding:14px 0; display:flex; flex-direction:column; gap:6px; }
#study-dashboard-tools .study-recent-card:hover { background:transparent; box-shadow:none; transform:none; }
#study-dashboard-tools .study-recent-card strong { font-size:14px; font-weight:600; color:var(--exec-ink); }
#study-dashboard-tools .study-recent-card span, #study-dashboard-tools .study-recent-card small { font-size:12px; color:#6B8078; }
#study-dashboard-tools .study-action-row { display:flex; flex-wrap:wrap; gap:6px; margin-top:auto; padding-top:8px; }
#study-dashboard-tools .study-primary, #study-dashboard-tools .study-secondary { min-height:36px; padding:6px 12px; border-radius:8px; font-size:12px; font-weight:500; flex:0 1 auto; text-align:center; }
#study-dashboard-tools .study-primary { background:#FFFFFF; border:1.5px solid #52B788; color:#2E7D5B; }
#study-dashboard-tools .study-primary:hover { background:#EFF8F4; border-color:#40916C; }
#study-dashboard-tools .study-secondary { background:#FFFFFF; border:1.5px solid #D8E8E0; color:#4A7C66; }
#study-dashboard-tools .study-secondary:hover { background:#EFF8F4; border-color:#52B788; color:#2E7D5B; }
#execution-tab button:disabled { opacity:.5; cursor:wait; }
#execution-tab summary:focus-visible { outline:3px solid #52B788; outline-offset:2px; }
@media(max-width:600px) {
  #execution-tab { padding-top:18px; }
  #execution-tab .plan-board-title { font-size:20px; }
  #execution-tab .plan-main-header { margin-bottom:16px; }
  #study-dashboard .study-summary { gap:8px; }
  #study-dashboard .study-metric { padding:0; border-radius:0; }
  #study-dashboard .study-metric strong { font-size:14px; line-height:1.4; }
  #study-dashboard .study-metric > span { font-size:11px; }
  .execution-filter { padding:0 12px; gap:6px; }
  .execution-filters { gap:6px; }
  #study-list.execution-list { padding:0 14px 12px; border-radius:12px; }
  .execution-row { grid-template-columns:24px minmax(0,1fr) auto 28px; column-gap:10px; row-gap:6px; padding:14px 0; }
  .execution-time { grid-column:2; grid-row:2; flex-direction:row; flex-wrap:wrap; text-align:left; gap:4px 8px; font-size:12px; }
  .execution-row-actions { grid-column:3; grid-row:1 / 3; flex-direction:column; }
  .execution-more { grid-row:3; }
  .execution-more:not([open]) { height:0; }
  .execution-more > summary { top:14px; right:0; width:28px; }
  .execution-name strong { font-size:14px; }
  .execution-start { min-height:40px; min-width:60px; padding:8px 12px; }
  .execution-fields { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .execution-fields input, .execution-edit-actions input { font-size:16px; }
  .execution-fields > label:first-child { grid-column:1 / -1; }
  .execution-fields > button { grid-column:1 / -1; }
  .execution-editor { margin-left:0; padding-top:14px; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .execution-editor > .execution-fields,.execution-editor > .execution-edit-actions { grid-column:1 / -1; }
  .execution-edit-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .execution-edit-actions > label { grid-column:1 / -1; }
  .execution-edit-actions > label input { flex:1; width:0; }
  .execution-extra { width:100%; margin-left:0; }
  .execution-editor > .execution-save,.execution-editor > .execution-delete { grid-row:3; width:100%; }
  .execution-editor > .execution-save { grid-column:1; }
  .execution-editor > .execution-delete { grid-column:2; }
  .execution-fields { gap:10px; }
  .execution-save { width:100%; }
  #study-dashboard-tools > .study-disclosure { padding:0; border-radius:0; }
  #study-dashboard-tools .study-recent-grid { grid-template-columns:1fr; }
}
