.nt-plan-views { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; width: fit-content; padding: 4px; margin-block: 0 12px; border: 1px solid #cbdfd5; border-radius: 13px; background: #e3efe8; }
.nt-plan-loading { min-height: 345px; }
.nt-plan-views a { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 13px; min-height: 40px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--nt-muted); line-height: 1.55; font-size: .89rem; font-weight: 750; text-decoration: none; }
.nt-plan-views a:hover { background: #f2faf6; border-color: #bad5c8; }
.nt-plan-views a[aria-current="page"] { color: #eafff6; background: linear-gradient(135deg,#18715b,#074938); border-color: #125f4d; box-shadow: 0 3px 8px #1e5b4534; }
.nt-plan-views svg { flex: none; }
.nt-plan-period { background: #fff; border: 1px solid #bddacf; border-radius: 17px; box-shadow: var(--nt-shadow); }
.nt-plan-period-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: clamp(12px, 2vw, 20px); background: radial-gradient(ellipse at 100% 20%,#b9e6d3,transparent 70%),linear-gradient(100deg,#edf7ef,#dbefe5); border-radius: 16px; color: var(--nt-ink); box-shadow: inset 0 1px #fff; }
.nt-plan-period:has(> :is(.nt-plan-week,.nt-plan-month)) > .nt-plan-period-toolbar { border-radius: 16px 16px 0 0; border-bottom: 1px solid var(--nt-line); }
.nt-plan-period-info { display: flex; align-items: center; gap: 11px; align-self: stretch; min-width: 0; }
.nt-plan-date-icon { flex: none; display: grid; place-items: center; inline-size: 44px; block-size: 44px; border: 1px solid #a1cebd; border-radius: 13px; background: #f7fff9c9; box-shadow: 0 3px 8px #28554513; color: #105845; font-size: 23px; }
.nt-plan-period-toolbar h2 { color: var(--nt-ink); font-size: clamp(1.15rem, 2.4vw, 1.65rem); line-height: 1.5; font-weight: 800; }
.nt-plan-period-toolbar p { margin-block-start: 3px; color: var(--nt-muted); font-size: .86rem; line-height: 1.65; }
.nt-plan-period-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nt-plan-period-toolbar .nt-plan-today { background: #f9fdfacd; border-color: #b1d3c3; color: var(--nt-teal-deep); }
.nt-tools .nt-plan-period-toolbar .nt-plan-download { color: #f8fff8; background: linear-gradient(135deg,#11705a,#09513f); border-color: #105c49; min-width: 0; width: auto; }
.nt-plan-period-toolbar .nt-plan-download:hover:not(:disabled) { color: #fff; background: #073e34; border-color: #073e34; }
.nt-plan-period-toolbar .nt-plan-today:hover:not(:disabled) { color: #103f38; background: #d8f6ed; }
.nt-plan-pager { display: flex; align-items: center; gap: 4px; }
.nt-plan-icon { display: inline-grid; place-content: center; inline-size: 37px; block-size: 38px; padding: 0; border: 1px solid #c7ddd6; border-radius: 8px; background: #fff; color: #245752; flex: none; }
.nt-plan-icon:disabled { opacity: .55; }
.nt-plan-pager .nt-plan-icon { background: #fff; color: var(--nt-teal-deep); border: 1px solid #c6d6ce; min-height: 43px; }
.nt-plan-icon:hover:not(:disabled) { color: #0a4e41; background: #dcf4eb; }
.nt-plan-jump { position: relative; z-index: 4; }
.nt-plan-jump summary { display: inline-flex; align-items: center; cursor: pointer; gap: 7px; font-size: .85rem; font-weight: 750; color: var(--nt-teal-deep); min-height: 43px; padding: 8px 9px; border: 1px solid #c6d6ce; border-radius: 9px; background: #fff; }
.nt-plan-jump summary::-webkit-details-marker { display: none; }
.nt-plan-jump summary:hover { background: var(--nt-mint); }
.nt-plan-jump-body { width: min(320px, calc(100vw - 58px)); position: absolute; z-index: 4; inset-inline-end: 0; top: calc(100% + 5px); color: var(--nt-ink); background: #fff; padding: 10px; border: 1px solid var(--nt-line); border-radius: 13px; box-shadow: 0 14px 40px #15483c38; }
.nt-plan-jump-caption { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-block-end: 7px; }
.nt-plan-jump-body .nt-plan-month { padding: 0; }
.nt-plan-jump-body .nt-plan-day { min-height: 35px; }
.nt-plan-jump-body :focus-visible { outline-color: #06836a; }
.nt-plan-week, .nt-plan-month { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: clamp(3px, 1vw, 9px); padding: clamp(8px, 2vw, 18px); }
.nt-plan-month { max-width: min(100%, 850px); margin-inline: auto; }
.nt-plan-day { display: grid; justify-items: center; align-content: center; gap: 2px; min-width: 0; min-height: 52px; padding: 3px 0; border-radius: 10px; border: 1px solid #dfe9e3; background: #f7fcf8; color: var(--nt-ink); font-size: .85rem; line-height: 1.4; }
.nt-plan-day strong { font-size: 1.03rem; line-height: 1.15; }
.nt-plan-day > span:first-child:not(.nt-plan-day-count) { font-size: clamp(.61rem, 1.55vw, .83rem); white-space: nowrap; }
.nt-plan-day:hover { border-color: #72b7ab; background: #e8f8f2; }
.nt-plan-day[aria-pressed="true"] { color: #eafff6; border-color: #246c57; background: #0c604c; box-shadow: inset 0 -2px 0 var(--nt-aqua); }
.nt-plan-day[aria-pressed="true"] .nt-plan-day-count { color: #ccf5e3; }
.nt-plan-day[aria-pressed="true"] .nt-plan-day-count i { background: #72e7b6; }
.nt-plan-day[aria-current="date"]:not([aria-pressed="true"]) { border-color: #81b7a8; color: #0e6655; }
.nt-plan-day-count { display: flex; align-items: center; justify-content: center; gap: 3px; font-size: .7rem; color: #235c52; white-space: nowrap; }
.nt-plan-day-count i { width: 5px; height: 5px; border-radius: 50%; background: #168a70; }
.nt-plan-weekday { color: #4a645f; text-align: center; font-weight: 700; font-size: .83rem; line-height: 1.9; }
.nt-plan-message { font-size: .86rem; color: #183f39; border: 1px solid #b9dfd1; background: #e4f7eb; padding: 8px 12px; border-radius: 9px; margin: 10px 0 0 !important; }
.nt-plan-workbench { display: grid; grid-template-columns: minmax(290px,.71fr) minmax(0,1.49fr); align-items: start; gap: 14px; margin-block-start: 14px; }
.nt-plan-editor, .nt-plan-agenda { min-width: 0; padding: clamp(14px, 2.5vw, 25px); border: 1px solid var(--nt-line); background: #fff; border-radius: 17px; box-shadow: var(--nt-shadow); }
.nt-plan-editor { display: grid; gap: 11px; background: linear-gradient(160deg,#f4faf5,#fff 45%); }
.nt-plan-editor h2, .nt-plan-agenda h2 { color: var(--nt-ink); font-weight: 800; font-size: clamp(1rem, 1.95vw, 1.27rem); line-height: 1.6; }
.nt-plan-editor h2 { display: flex; align-items: center; gap: 9px; padding-block-end: 10px; border-block-end: 1px solid #dbeae1; }
.nt-plan-editor-icon { display: inline-grid; place-content: center; min-height: 33px; min-width: 33px; border-radius: 10px; color: #f0fff7; background: linear-gradient(135deg,#20836a,#125641); box-shadow: inset 0 1px #ffffff45; }
.nt-planner .nt-plan-field { display: grid; gap: 5px; font-size: .88rem; color: #20413f; font-weight: 750; min-width: 0; margin: 0; }
.nt-planner .nt-plan-field label { color: inherit; font: inherit; margin: 0; }
.nt-planner .nt-plan-field :is(select,input) { width: 100%; min-width: 0; min-height: 44px; margin: 0; color: #193a3a; background: #fff; border: 1px solid #c8d7d0; border-radius: 9px; font-size: .88rem; padding: 8px 10px; }
.nt-plan-field input::placeholder { color: #607771; font-size: .82rem; }
.nt-plan-field select[dir="ltr"] { font-variant-numeric: tabular-nums; text-align: center; }
.nt-plan-times, .nt-plan-editor-buttons { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 8px; }
.nt-plan-hint { font-size: .83rem; color: #356860; line-height: 1.6; }
.nt-plan-agenda-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.nt-plan-agenda-heading p { color: #486660; font-size: .85rem; }
.nt-plan-done { display: flex; align-items: center; gap: 8px; color: #165b48; font-size: .79rem; font-weight: 750; }
.nt-plan-progress { display: grid; place-items: center; inline-size: 45px; block-size: 45px; border-radius: 50%; background: radial-gradient(circle closest-side,#fff 82%,transparent 86%),conic-gradient(#118263 var(--plan-completion),#e1eee5 0); color: #154634; font-size: .72rem; }
.nt-plan-empty { display: grid; justify-items: center; gap: 7px; text-align: center; padding: 29px 16px; margin-block-start: 13px; border: 1px solid #d1e7da; border-radius: 13px; background: radial-gradient(ellipse at 50% 0,#e1f2e8,transparent 75%),#f5faf6; color: #486660; font-size: .88rem; line-height: 1.65; }
.nt-plan-empty svg { width: 46px; height: 46px; padding: 9px; border: 1px solid #9ecab7; border-radius: 14px; background: #fbfffc; box-shadow: 0 4px 9px #25513e18; color: #178372; }
.nt-plan-empty strong { color: #1d4b43; }
.nt-plan-timeline { list-style: none; padding: 0; margin: 15px 0 0; display: grid; gap: 8px; }
.nt-plan-event { --event-tint: #edf7f1; --event-line: #c8e3d4; --event-dot: #35896f; display: grid; grid-template-columns: clamp(59px, 8vw, 85px) minmax(0,1fr); gap: 12px; min-width: 0; }
.nt-plan-event[data-category="study"] { --event-tint: #edf5f5; --event-line: #c8dddf; --event-dot: #4b7d86; }
.nt-plan-event[data-category="personal"] { --event-tint: #eff5ef; --event-line: #d2e3d5; --event-dot: #587e68; }
.nt-plan-event[data-category="wellness"] { --event-tint: #e6f6ee; --event-line: #bce5d2; --event-dot: #258568; }
.nt-plan-event[data-category="rest"] { --event-tint: #f1f4ef; --event-line: #dce4d7; --event-dot: #647e6e; }
.nt-plan-event-time { position: relative; display: grid; gap: 1px; align-content: center; justify-content: start; padding-inline-end: 7px; font-size: .9rem; color: #254c46; font-weight: 750; font-variant-numeric: tabular-nums; }
.nt-plan-event-time::before { content: ''; position: absolute; inset-block: 0 -8px; inset-inline-end: 0; border-inline-end: 2px solid #c1d9cd; }
.nt-plan-event:last-child .nt-plan-event-time::before { inset-block-end: 0; }
.nt-plan-event-time::after { content: ''; position: absolute; inset-inline-end: -4px; top: calc(50% - 5px); width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: var(--event-dot); box-shadow: 0 0 0 1px var(--event-dot); }
.nt-plan-event-time bdi + bdi { color: #536c63; font-size: .81em; font-weight: normal; }
.nt-plan-event-card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 2px 8px; min-width: 0; min-height: 61px; padding: 7px 11px; border: 1px solid var(--event-line); border-radius: 11px; background: linear-gradient(110deg, #ffffffa1,var(--event-tint) 64%); color: var(--nt-ink); }
.nt-plan-event-card small { color: var(--nt-muted); font-weight: 700; font-size: .75rem; margin-inline-start: 26px; }
.nt-plan-task-check { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: .95rem; font-weight: 750; line-height: 1.6; cursor: pointer; }
.nt-plan-task-check span { overflow-wrap: anywhere; }
.nt-plan-task-check input { min-width: 17px; width: 17px; height: 17px; flex: none; accent-color: #15816b; }
.nt-plan-event[data-done="true"] .nt-plan-task-check span { text-decoration: line-through; color: #39554c; }
.nt-plan-event[data-done="true"] .nt-plan-event-time::after { background: #0d8764; box-shadow: 0 0 0 1px #0d8764; }
.nt-plan-task-actions { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 4px; }
.nt-plan-task-actions .nt-plan-icon { width: 35px; height: 35px; border-color: transparent; background: transparent; }
.nt-plan-task-actions .nt-plan-icon:hover:not(:disabled) { background: #fff; border-color: var(--event-line); }
.nt-plan-guide p, .nt-plan-guide summary { font-size: .88rem; line-height: 1.95; color: var(--nt-muted); }
.nt-plan-guide details, .nt-plan-guide > a { margin-block-start: 8px; }
.nt-plan-guide summary { cursor: pointer; font-weight: 750; }
.nt-plan-guide > a { display: inline-block; color: var(--nt-teal-deep); font-size: .86rem; }

@media(max-width: 760px) {
  .nt-plan-workbench { grid-template-columns: 1fr; }
  .nt-plan-period-controls { width: 100%; position: relative; }
  .nt-plan-views a { min-height: 42px; font-size: .77rem; padding: 7px 8px; gap: 3px; }
  .nt-plan-jump { position: static; }
  .nt-plan-jump-body { inset-inline: 0 auto; width: min(320px, 100%); }
}
@media(max-width: 460px) {
  .nt-plan-period-controls { gap: 5px; }
  .nt-plan-period-controls :is(.primary,.secondary,.nt-plan-jump summary) { font-size: .77rem; padding: 6px 7px; }
  .nt-plan-views { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
  .nt-plan-views a { padding-inline: 4px; }
  .nt-plan-date-icon { inline-size: 36px; block-size: 36px; font-size: 18px; }
  .nt-plan-event { gap: 9px; }
  .nt-plan-event-card { padding-inline: 6px; }
  .nt-plan-task-actions { gap: 2px; }
  .nt-plan-task-actions .nt-plan-icon { width: 29px; height: 33px; }
  .nt-plan-day-count { font-size: .59rem; }
  .nt-plan-month .nt-plan-day { min-height: 44px; }
}
