.student-planner {
  --planner-navy: #28366f;
  --planner-blue: #5d7fe8;
  --planner-pink: #ef79aa;
  --planner-yellow: #ffd66b;
  --planner-mint: #78d8bb;
  --planner-purple: #9c7ae8;
  display: grid;
  gap: 22px;
}

.planner-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 220px;
  padding: 34px 38px;
  border: 2px solid rgba(255, 255, 255, .7);
  border-radius: 28px;
  background:
    radial-gradient(circle at 14% 18%, rgba(255,255,255,.96) 0 3px, transparent 4px),
    radial-gradient(circle at 88% 30%, rgba(255,255,255,.85) 0 4px, transparent 5px),
    linear-gradient(135deg, #fff4b8 0%, #ffd5e7 40%, #d9dcff 100%);
  box-shadow: 0 22px 54px rgba(95, 75, 150, .16);
}

.planner-hero::before,
.planner-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.34);
}

.planner-hero::before { width: 220px; height: 220px; top: -90px; right: 110px; }
.planner-hero::after { width: 150px; height: 150px; bottom: -86px; left: 42%; }
.planner-hero > * { position: relative; z-index: 1; }
.planner-hero h1 { max-width: 760px; color: var(--planner-navy); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.planner-hero p:last-child { max-width: 680px; margin: 14px 0 0; color: #565777; font-weight: 700; }
.planner-hero-mark {
  flex: 0 0 132px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  border: 3px solid rgba(255,255,255,.8);
  border-radius: 38% 62% 55% 45%;
  transform: rotate(6deg);
  background: linear-gradient(145deg, #7765dc, #f172aa);
  color: white;
  text-align: center;
  box-shadow: 0 18px 32px rgba(92,65,164,.25), inset 0 0 30px rgba(255,255,255,.18);
}
.planner-hero-mark span { display: block; font-size: 2.3rem; font-weight: 900; line-height: 1; }
.planner-hero-mark small { display: block; margin-top: 7px; font-size: .62rem; font-weight: 900; letter-spacing: .18em; }

.planner-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid #e4ddf3;
  border-radius: 22px;
  background: rgba(255,255,255,.84);
  box-shadow: var(--shadow);
}

.planner-tabs button {
  min-width: 0;
  min-height: 96px;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-content: center;
  gap: 4px 8px;
  padding: 12px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #55546b;
  text-align: left;
  cursor: pointer;
}
.planner-tabs button:hover { background: #faf7ff; }
.planner-tabs button.active { background: linear-gradient(145deg, #6258c6, #846fe2); color: white; box-shadow: 0 10px 24px rgba(91,75,183,.23); }
.planner-tabs button > span { grid-row: 1 / 3; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: #f2eefe; color: #6e5bc3; font-weight: 900; }
.planner-tabs button.active > span { background: rgba(255,255,255,.2); color: white; }
.planner-tabs b { overflow: hidden; font-size: .86rem; line-height: 1.35; }
.planner-tabs small { overflow: hidden; opacity: .74; font-size: .68rem; line-height: 1.35; }

.planner-message {
  display: none;
  margin: -4px 0;
  padding: 12px 16px;
  border: 1px solid #bfe5d5;
  border-radius: 12px;
  background: #edfaf4;
  color: #267056;
  font-weight: 800;
}
.planner-message.show { display: block; }
.planner-message.error { border-color: #f1c3c0; background: #fff0ef; color: #9b3430; }
.planner-workspace { display: grid; gap: 18px; }
.planner-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 4px 2px; }
.planner-section-heading p, .panel-title p, .day-planner-heading p { margin: 0 0 5px; color: #8978c0; font-size: .72rem; font-weight: 900; letter-spacing: .13em; }
.planner-section-heading h2 { color: #383451; }
.planner-summary { display: grid; grid-template-columns: repeat(4, auto); align-items: center; gap: 5px 10px; padding: 10px 14px; border: 1px solid #e2dcf0; border-radius: 14px; background: white; }
.planner-summary b { color: #6257b8; font-size: 1.25rem; text-align: right; }
.planner-summary span { color: #777285; font-size: .72rem; font-weight: 800; }
.planner-panel { border: 1px solid #e5dff0; border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: 0 14px 38px rgba(74,57,111,.08); padding: 24px; }
.planner-two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.panel-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.panel-title > span { flex: 0 0 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #ffe07f, #ffae77); color: #72482d; font-weight: 900; box-shadow: 0 6px 14px rgba(215,142,67,.2); }
.panel-title h3 { color: #3f3a56; }
.panel-title p { margin: 3px 0 0; color: #8b8495; font-size: .76rem; font-weight: 600; letter-spacing: 0; }
.planner-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.planner-form.compact { grid-template-columns: 1fr; margin-top: 18px; padding-top: 18px; border-top: 1px dashed #ddd4eb; }
.planner-form h3 { font-size: .94rem; color: #5f5680; }
.planner-form label, .mandala-title-row label, .mandala-center, .theme-title {
  display: grid;
  gap: 6px;
  color: #696276;
  font-size: .76rem;
  font-weight: 900;
}
.planner-form label.wide { grid-column: 1 / -1; }
.planner-form input, .planner-form textarea, .planner-form select,
.mandala-title-row input, .mandala-center textarea, .theme-title input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dcd3e7;
  border-radius: 11px;
  background: #fff;
  color: #34303e;
  padding: 10px 12px;
}
.planner-form textarea { min-height: 88px; resize: vertical; }
.planner-form .time-field[hidden] { display: none; }
.planner-form input:focus, .planner-form textarea:focus, .planner-form select:focus,
.mandala-title-row input:focus, .mandala-center textarea:focus, .theme-title input:focus {
  outline: 3px solid rgba(113,90,204,.14);
  border-color: #8a73d1;
}
.planner-save { width: 100%; margin-top: 18px; background: linear-gradient(135deg, #6558c8, #e46fa6); }
.planner-save:hover { background: linear-gradient(135deg, #5145b3, #cc5b91); }
.planner-empty { margin: 0; padding: 22px; border: 1px dashed #ddd5e8; border-radius: 14px; color: #8d8794; text-align: center; }
.planner-hint { margin: 0 0 16px; padding: 10px 13px; border-radius: 10px; background: #f7f3ff; color: #6b6380; font-size: .82rem; }

.goal-list { display: grid; gap: 8px; margin-top: 16px; }
.goal-list article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border: 1px solid #eadff0; border-radius: 13px; background: linear-gradient(90deg, #fff9e7, #fff); }
.goal-list b, .goal-list small { display: block; }
.goal-list small { margin-top: 4px; color: #8a8087; }
.goal-list button, .task-table > article > button, .day-event-list button, .hour-slot-events article > button, .link-actions button { border: 0; background: transparent; color: #a76874; font-weight: 900; cursor: pointer; }
.gantt-panel { overflow: hidden; }
.gantt-scroll { overflow-x: auto; padding-bottom: 8px; }
.gantt-table { display: grid; grid-template-columns: 190px minmax(1050px,1fr); min-width: 1240px; border: 1px solid #e4ddec; border-radius: 14px; overflow: hidden; }
.gantt-label { min-height: 52px; display: grid; align-content: center; padding: 9px 12px; border-bottom: 1px solid #ece6f1; background: white; }
.gantt-label b, .gantt-label small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gantt-label small { color: #8b8494; font-size: .7rem; }
.gantt-head-label { min-height: 36px; background: #f5f1fb; font-weight: 900; }
.gantt-days, .gantt-track { display: grid; grid-template-columns: repeat(var(--gantt-days), 1fr); }
.gantt-days { min-height: 36px; background: #f5f1fb; }
.gantt-days span { display: grid; place-items: center; border-left: 1px solid #e8e0ef; color: #7e7688; font-size: .63rem; }
.gantt-days span.holiday { background: #fff1f5; color: #c2637e; }
.gantt-track { position: relative; min-height: 52px; align-items: center; border-bottom: 1px solid #ece6f1; background: repeating-linear-gradient(90deg, transparent 0 calc((100% / var(--gantt-days)) - 1px), #eee8f2 calc((100% / var(--gantt-days)) - 1px) calc(100% / var(--gantt-days))); }
.gantt-bar { position: relative; overflow: hidden; z-index: 1; height: 24px; margin: 0 2px; border-radius: 999px; background: #d8d2f2; box-shadow: 0 4px 10px rgba(85,69,153,.15); }
.gantt-bar i { display: block; height: 100%; background: linear-gradient(90deg, #7b68d7, #d46ca8); }
.gantt-bar.done i { background: linear-gradient(90deg, #4fbd9a, #78d8bb); }
.gantt-empty { grid-column: 1 / -1; padding: 26px; color: #8b8494; text-align: center; }
.task-table { display: grid; gap: 8px; margin-top: 18px; }
.task-table article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .5fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid #e8e1ee; border-radius: 13px; }
.task-table b, .task-table small { display: block; }
.task-table small { color: #89828f; }
.task-table label { display: flex; align-items: center; gap: 8px; color: #736c7a; font-size: .72rem; font-weight: 800; }

.schedule-toolbar { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 14px; }
.schedule-toolbar button { width: 42px; min-height: 42px; border: 0; border-radius: 50%; background: #ece7fa; color: #6657ad; font-weight: 900; cursor: pointer; }
.schedule-toolbar label { display: flex; align-items: center; gap: 8px; color: #625b70; font-weight: 900; }
.schedule-toolbar input { min-height: 42px; border: 1px solid #dcd3e7; border-radius: 10px; padding: 8px; }
.calendar-weekdays, .month-calendar { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); }
.calendar-weekdays b { padding: 8px; color: #746b7d; text-align: center; font-size: .76rem; }
.calendar-weekdays b:first-child { color: #ca607c; }
.calendar-weekdays b:last-child { color: #5678ca; }
.calendar-day { min-width: 0; min-height: 110px; display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid #ebe4ef; background: white; color: #554e60; text-align: left; cursor: pointer; }
.calendar-day:hover, .calendar-day.selected { background: #faf4ff; box-shadow: inset 0 0 0 2px #9d80df; }
.calendar-day.outside { background: #f7f5f7; opacity: .55; }
.calendar-day > span { font-weight: 900; }
.calendar-day small { overflow: hidden; padding: 3px 5px; border-radius: 5px; background: #e9e1fb; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.calendar-day i { color: #8a8290; font-size: .58rem; }
.event-work { border-color: #e6c46d !important; background: #fff6d5 !important; }
.event-content { border-color: #e594b8 !important; background: #fff0f6 !important; }
.event-meeting { border-color: #8ba8eb !important; background: #eef3ff !important; }
.event-health { border-color: #77cbb0 !important; background: #eafaf4 !important; }
.event-personal { border-color: #b79ce5 !important; background: #f4efff !important; }
.event-other { border-color: #b9b6bd !important; background: #f4f3f5 !important; }
.day-planner-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.day-planner-heading input { min-height: 42px; border: 1px solid #dcd3e7; border-radius: 10px; padding: 8px; }
.hourly-planner { display: grid; margin-top: 14px; overflow: hidden; border: 1px solid #ddd5e8; border-radius: 16px; background: white; }
.hour-slot { min-height: 68px; display: grid; grid-template-columns: 116px minmax(0,1fr); border-bottom: 1px solid #e9e3ed; }
.hour-slot:last-child { border-bottom: 0; }
.hour-slot:nth-child(even) { background: #fcfaff; }
.hour-slot.has-events { background: #fffdf5; }
.hour-slot-add { display: grid; align-content: center; gap: 3px; padding: 10px 12px; border: 0; border-right: 1px solid #e9e3ed; background: transparent; color: #716684; text-align: left; cursor: pointer; }
.hour-slot-add:hover, .hour-slot-add:focus-visible { background: #f1ebff; outline: 2px solid #8c73d4; outline-offset: -2px; }
.hour-slot-add time { color: #5f4ca7; font-size: 1rem; font-weight: 900; }
.hour-slot-add span { color: #938a9b; font-size: .62rem; font-weight: 800; }
.hour-slot-events { display: grid; align-content: center; gap: 6px; padding: 7px; }
.hour-slot-events:empty::before { content: "予定なし"; color: #aaa3ae; font-size: .68rem; }
.hour-slot-events article { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; padding: 9px 11px; border: 1px solid #dcd4e6; border-radius: 10px; }
.hour-slot-events b, .hour-slot-events small { display: block; }
.hour-slot-events small { margin-top: 2px; color: #776f80; font-size: .68rem; }
.hour-slot-events p { margin: 3px 0 0; color: #8b8391; font-size: .7rem; }
.schedule-event-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.schedule-event-grid article { position: relative; min-height: 130px; padding: 15px; border: 1px solid #e1d9e8; border-radius: 14px; }
.schedule-event-grid time, .schedule-event-grid b { display: block; }
.schedule-event-grid time { color: #756b7d; font-size: .72rem; font-weight: 900; }
.schedule-event-grid b { margin-top: 7px; }
.schedule-event-grid p { margin: 6px 0 24px; color: #827987; font-size: .76rem; }
.schedule-event-grid button { position: absolute; right: 10px; bottom: 9px; border: 0; background: transparent; color: #a45b68; cursor: pointer; }

.yoshuku-tabs { display: flex; gap: 8px; padding: 7px; border: 1px solid #e5dbea; border-radius: 16px; background: white; }
.yoshuku-tabs button { flex: 1; min-height: 48px; border: 0; border-radius: 11px; background: transparent; color: #716979; font-weight: 900; cursor: pointer; }
.yoshuku-tabs button.active { background: linear-gradient(135deg, #f3c157, #ef78a9); color: white; box-shadow: 0 8px 18px rgba(211,111,139,.2); }
#futureForm { display: grid; gap: 18px; }
.yoshuku-board { overflow: hidden; background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(249,243,255,.97)); }
.annual-route, .decade-route { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.annual-route label, .decade-route label { position: relative; min-height: 170px; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 2px solid rgba(255,255,255,.75); border-radius: 18px; background: linear-gradient(145deg, #fff3b9, #ffd8e9); box-shadow: 0 10px 22px rgba(111,77,128,.12); }
.annual-route label:nth-child(3n+2), .decade-route label:nth-child(3n+2) { background: linear-gradient(145deg, #e5f9ee, #cfe5ff); }
.annual-route label:nth-child(3n), .decade-route label:nth-child(3n) { background: linear-gradient(145deg, #eee0ff, #ffdce9); }
.annual-route span, .decade-route span { padding: 10px 12px 6px; color: #5c5470; font-weight: 900; }
.annual-route textarea, .decade-route textarea { width: 100%; min-height: 120px; resize: none; border: 0; outline: 0; background: transparent; color: #40394e; padding: 4px 12px 14px; font-size: .94rem; font-weight: 700; line-height: 1.65; }
.mandala-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 18px; align-items: start; }
.mandala-library { position: sticky; top: 92px; }
.mandala-list, .map-list { display: grid; gap: 8px; margin-top: 14px; }
.mandala-list button, .map-list button { display: grid; gap: 3px; padding: 11px; border: 1px solid #e1d8e9; border-radius: 11px; background: white; color: #514a5b; text-align: left; cursor: pointer; }
.mandala-list button.active, .map-list button.active { border-color: #8d76d3; background: #f2edff; }
.mandala-list small, .map-list small { overflow: hidden; color: #8d8593; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.mandala-title-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.mandala-guide { margin: 16px 0 10px; }
.mandala-board-scroll { max-width: 100%; overflow-x: auto; padding: 4px 4px 14px; }
.mandala-board { min-width: 1080px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 8px; border: 2px solid #806cc3; border-radius: 18px; background: linear-gradient(145deg,#f8f4ff,#fff9e8); box-shadow: 0 14px 34px rgba(91,68,126,.14); }
.mandala-block { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 2px solid rgba(105,86,143,.45); border-radius: 10px; overflow: hidden; background: white; }
.mandala-cell { min-width: 0; min-height: 108px; display: grid; grid-template-rows: auto 1fr; border-right: 1px solid rgba(108,91,134,.25); border-bottom: 1px solid rgba(108,91,134,.25); background: rgba(255,255,255,.84); }
.mandala-cell:nth-child(3n) { border-right: 0; }
.mandala-cell:nth-child(n+7) { border-bottom: 0; }
.mandala-cell span { padding: 6px 7px 2px; color: #746a7f; font-size: .58rem; font-weight: 900; }
.mandala-cell textarea { width: 100%; min-height: 76px; resize: none; border: 0; outline: 0; padding: 4px 7px 8px; background: transparent; color: #40384a; font-size: .74rem; font-weight: 700; line-height: 1.45; }
.mandala-cell textarea:focus { background: rgba(255,255,255,.86); box-shadow: inset 0 0 0 2px #8066d5; }
.mandala-main-goal { background: linear-gradient(145deg,#ffe783,#ffbcd5); }
.mandala-main-goal span { color: #6e4c37; text-align: center; }
.mandala-main-goal textarea { color: #533d51; font-size: .88rem; font-weight: 900; text-align: center; }
.mandala-theme-cell, .mandala-theme-center { background: linear-gradient(145deg,var(--mandala-light),var(--mandala-strong)); }
.mandala-theme-cell textarea, .mandala-theme-center textarea { color: #4d4355; font-weight: 900; text-align: center; }
.mandala-action-block { border-color: var(--mandala-border); background: var(--mandala-light); }
.mandala-action-cell { background: rgba(255,255,255,.82); }
.theme-tone-1 { --mandala-light:#fff2bb; --mandala-strong:#ffd87c; --mandala-border:#e6b64f; }
.theme-tone-2 { --mandala-light:#ffe6ef; --mandala-strong:#ffbad4; --mandala-border:#e58daf; }
.theme-tone-3 { --mandala-light:#e9e3ff; --mandala-strong:#c7b8ff; --mandala-border:#9681dd; }
.theme-tone-4 { --mandala-light:#daf4ff; --mandala-strong:#a9dcf3; --mandala-border:#67afd0; }
.theme-tone-5 { --mandala-light:#dcf7e8; --mandala-strong:#aee3c6; --mandala-border:#65ba8e; }
.theme-tone-6 { --mandala-light:#fff0d7; --mandala-strong:#ffc78b; --mandala-border:#df9852; }
.theme-tone-7 { --mandala-light:#f3e2ff; --mandala-strong:#dbb6f6; --mandala-border:#a777ce; }
.theme-tone-8 { --mandala-light:#e7f1ff; --mandala-strong:#b7d2ff; --mandala-border:#7098d6; }

.acquisition-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 18px; align-items: start; }
.acquisition-tools { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; }
.acquisition-canvas-panel { min-width: 0; overflow-x: auto; }
.acquisition-canvas { position: relative; min-width: 900px; min-height: 680px; overflow: hidden; border: 2px solid #dcd4e8; border-radius: 18px; background: #fff; touch-action: none; }
.canvas-grid { position: absolute; inset: 0; background-image: linear-gradient(#eee8f3 1px, transparent 1px), linear-gradient(90deg,#eee8f3 1px,transparent 1px); background-size: 28px 28px; }
.canvas-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 80px; color: #948b9b; text-align: center; }
.map-node { position: absolute; z-index: 3; width: 150px; min-height: 70px; display: grid; align-content: center; padding: 10px 12px; border: 2px solid #8ca2df; border-radius: 13px; background: #eaf0ff; color: #35405d; cursor: grab; box-shadow: 0 9px 18px rgba(53,62,90,.14); user-select: none; }
.map-node:active { cursor: grabbing; }
.map-node small, .map-node span { font-size: .62rem; }
.map-node small { color: #66749c; font-weight: 900; }
.map-node b { margin: 3px 0; line-height: 1.3; }
.map-node span { color: #756d79; }
.map-node > button { position: absolute; top: 4px; right: 5px; min-height: 22px; width: 22px; border: 0; border-radius: 50%; background: rgba(255,255,255,.7); color: #9d5e68; cursor: pointer; }
.map-node.type-interest { border-color: #c59ce1; background: #f4eaff; }
.map-node.type-line { border-color: #6fc69b; background: #e7faef; }
.map-node.type-event { border-color: #efb061; background: #fff1d9; }
.map-node.type-service { border-color: #e878a4; background: #ffe8f1; }
.map-node.type-other { border-color: #aaa4ae; background: #f3f2f4; }
.map-node.status-missing { border-color: #e4b93e; box-shadow: 0 0 0 4px rgba(242,201,76,.18); }
.map-node.status-bottleneck { border-color: #dc5861; box-shadow: 0 0 0 4px rgba(220,88,97,.18); }
.map-edge { position: absolute; z-index: 1; height: 3px; transform-origin: left center; background: #8d7ab4; }
.map-edge i { position: absolute; right: -1px; top: -4px; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 9px solid #8d7ab4; }
.map-edge button { position: absolute; left: 50%; top: -11px; min-height: 22px; width: 22px; border: 0; border-radius: 50%; background: #fff; color: #a25d6d; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.16); }

.funnel-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(300px,.7fr); gap: 18px; align-items: start; }
.funnel-form { display: grid; gap: 18px; }
.funnel-result { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.funnel-result div { padding: 14px; border-radius: 14px; background: linear-gradient(145deg,#eee9ff,#fff); text-align: center; }
.funnel-result span, .funnel-result b { display: block; }
.funnel-result span { color: #7f768d; font-size: .72rem; font-weight: 800; }
.funnel-result b { margin-top: 5px; color: #6255ad; font-size: 1.35rem; }
.funnel-stages { display: grid; grid-template-columns: repeat(4,minmax(0,1fr) auto); align-items: center; gap: 7px; }
.funnel-stages article { min-width: 0; display: grid; gap: 9px; padding: 13px; border: 2px solid #a8b9e5; border-radius: 16px; background: #f2f5ff; text-align: center; }
.funnel-stages > span { color: #9a8bb5; font-size: 1.4rem; font-weight: 900; }
.funnel-stages label { display: grid; gap: 4px; color: #736a7f; font-size: .67rem; font-weight: 800; }
.funnel-stages input { width: 100%; min-height: 38px; border: 1px solid #d9d1e3; border-radius: 8px; padding: 7px; text-align: center; }
.funnel-stages article > b { color: #4e4b86; font-size: 1.2rem; }
.funnel-stages .outcome { border-color: #ef9bbc; background: #fff0f6; }
.monthly-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; border-radius: 16px; background: linear-gradient(135deg,#6259c7,#ec75aa); color: white; }
.monthly-action span { font-weight: 800; }
.monthly-action b { font-size: 1.5rem; }
.funnel-tasks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.funnel-tasks label { display: grid; grid-template-columns: 32px 1fr; overflow: hidden; border: 1px solid #e1d9e9; border-radius: 11px; }
.funnel-tasks span { display: grid; place-items: center; background: #f0eafa; color: #6c5daf; font-weight: 900; }
.funnel-tasks textarea { width: 100%; min-height: 80px; resize: vertical; border: 0; outline: 0; padding: 10px; }
.saved-plans { position: sticky; top: 92px; display: grid; gap: 12px; max-height: calc(100vh - 110px); overflow-y: auto; }
.saved-plans > article { display: grid; gap: 10px; padding: 13px; border: 1px solid #e1d9e9; border-radius: 14px; }
.saved-plans > article.active { border-color: #8e76d4; box-shadow: 0 0 0 3px rgba(142,118,212,.12); }
.plan-open { border: 0; background: transparent; color: #4b4556; text-align: left; cursor: pointer; }
.plan-open b, .plan-open small { display: block; }
.plan-open small { margin-top: 4px; color: #8b8490; }
.plan-progress { height: 8px; overflow: hidden; border-radius: 999px; background: #ede8f1; }
.plan-progress span { display: block; height: 100%; background: linear-gradient(90deg,#6ec8a8,#7b7be1); }
.actual-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.actual-grid label { display: grid; gap: 3px; color: #776e80; font-size: .66rem; font-weight: 800; }
.actual-grid input { width: 100%; min-height: 37px; border: 1px solid #ddd5e5; border-radius: 8px; padding: 6px; }

.link-layout { grid-template-columns: minmax(0,1.4fr) minmax(270px,.6fr); }
.category-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.category-summary div { padding: 12px; border-radius: 12px; background: linear-gradient(145deg,#f3edff,#fff7dc); text-align: center; }
.category-summary b, .category-summary span { display: block; }
.category-summary b { color: #6b59b5; font-size: 1.3rem; }
.category-summary span { color: #80788a; font-size: .7rem; font-weight: 800; }
.link-categories { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.link-categories > section > h3 { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: #4f485b; }
.link-categories > section > h3 span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #eee8f7; color: #6759a5; font-size: .75rem; }
.link-categories > section > div { display: grid; gap: 8px; }
.link-categories article { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 11px; padding: 12px; border: 1px solid #e6dfea; border-radius: 13px; background: #fff; }
.link-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg,#7464d2,#ed7ba9); color: white; font-weight: 900; }
.link-categories article p { margin: 4px 0; color: #847c89; font-size: .76rem; }
.link-categories article a { display: block; overflow: hidden; color: #5c69bb; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.link-categories article small { color: #96909a; }
.link-actions { display: grid; align-content: center; gap: 5px; }

@media (max-width: 980px) {
  .planner-tabs { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .annual-route, .decade-route { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .mandala-layout, .acquisition-layout, .funnel-layout { grid-template-columns: 1fr; }
  .mandala-library, .acquisition-tools, .saved-plans { position: static; max-height: none; }
  .acquisition-canvas-panel { overflow-x: auto; }
  .funnel-stages { grid-template-columns: 1fr; }
  .funnel-stages > span { transform: rotate(90deg); text-align: center; }
}

@media (max-width: 760px) {
  .student-planner { gap: 15px; }
  .planner-hero { min-height: auto; padding: 25px 20px; border-radius: 22px; }
  .planner-hero-mark { display: none; }
  .planner-tabs { display: flex; overflow-x: auto; padding: 7px; border-radius: 16px; scroll-snap-type: x mandatory; }
  .planner-tabs button { flex: 0 0 170px; min-height: 78px; scroll-snap-align: start; }
  .planner-section-heading { align-items: flex-start; flex-direction: column; }
  .planner-summary { width: 100%; justify-content: center; }
  .planner-two-column, .link-layout, .link-categories { grid-template-columns: 1fr; }
  .planner-panel { padding: 17px; border-radius: 17px; }
  .planner-form { grid-template-columns: 1fr; }
  .planner-form label.wide { grid-column: auto; }
  .task-table article { grid-template-columns: 1fr; }
  .calendar-day { min-height: 76px; padding: 5px; }
  .calendar-day small { font-size: 0; min-height: 6px; padding: 0; }
  .schedule-event-grid { grid-template-columns: 1fr; }
  .annual-route, .decade-route { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .annual-route label, .decade-route label { min-height: 190px; }
  .mandala-board { min-width: 980px; }
  .funnel-tasks { grid-template-columns: 1fr; }
  .category-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .link-categories article { grid-template-columns: 38px minmax(0,1fr); }
  .link-actions { grid-column: 2; grid-auto-flow: column; justify-content: start; }
}
