.planner-page { flex: 1; padding: 32px 0 60px; background: #f4f6fa; }
.planner-shell { width: min(1680px, calc(100% - 32px)); margin: 0 auto; }
.planner-heading { align-items: center; margin-bottom: 20px; }
.planner-heading h1 { margin-top: 6px; }
.local-save-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  color: #647187;
  background: #fff;
  font-size: 12px;
}
.local-save-badge i { width: 8px; height: 8px; border-radius: 50%; background: #2aa77b; box-shadow: 0 0 0 4px #e7f6f0; }

.planner-toolbar,
.planner-summary,
.planner-task-panel,
.planner-chart-panel {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 26px rgba(29, 47, 79, .05);
}
.planner-toolbar {
  position: relative;
  z-index: 12;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 12px;
  border-radius: 16px;
}
.planner-toolbar-group { display: inline-flex; align-items: center; gap: 6px; }
.planner-toolbar-group + .planner-toolbar-group { padding-left: 9px; border-left: 1px solid #e7ebf1; }
.planner-toolbar button,
.planner-settings summary,
.planner-scale-label select,
.planner-panel-head button,
.dialog-actions button {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: #445168;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.planner-toolbar button { padding: 0 12px; }
.planner-toolbar button:hover,
.planner-settings summary:hover,
.planner-panel-head button:hover,
.dialog-actions button:hover { color: var(--blue-dark); border-color: #afc1ef; background: #f6f8ff; }
.planner-toolbar button.primary,
.dialog-actions button.primary { color: #fff; border-color: var(--blue); background: var(--blue); }
.planner-toolbar button.primary:hover,
.dialog-actions button.primary:hover { border-color: var(--blue-dark); background: var(--blue-dark); }
.planner-toolbar button:disabled { opacity: .42; cursor: not-allowed; }
.planner-toolbar-spacer { flex: 1; }
.planner-scale-label { display: inline-flex; align-items: center; gap: 8px; color: #68758a; font-size: 12px; font-weight: 700; }
.planner-scale-label select { min-width: 88px; padding: 0 28px 0 10px; outline: 0; }
.planner-settings { position: relative; }
.planner-settings summary { min-width: 84px; display: grid; place-items: center; padding: 0 11px; list-style: none; }
.planner-settings summary::-webkit-details-marker { display: none; }
.planner-settings-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 230px;
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(24, 42, 72, .14);
}
.planner-settings-panel label { min-height: 34px; display: flex; align-items: center; gap: 9px; padding: 5px 7px; border-radius: 8px; color: #4f5d73; font-size: 12px; cursor: pointer; }
.planner-settings-panel label:hover { background: #f5f7fb; }
.planner-settings-panel input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
.planner-settings-panel .number-setting { cursor: default; }
.planner-settings-panel input[type="number"] { width: 56px; margin-left: auto; padding: 4px 5px; border: 1px solid var(--line-strong); border-radius: 7px; outline: 0; }

.planner-summary { display: grid; grid-template-columns: .65fr .65fr .8fr 1.5fr .75fr; margin-top: 14px; overflow: hidden; border-radius: 16px; }
.planner-summary > div { min-width: 0; padding: 15px 18px; border-right: 1px solid #e8ecf2; }
.planner-summary > div:last-child { border-right: 0; }
.planner-summary span { display: block; color: #7c8799; font-size: 11px; }
.planner-summary strong { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; }
.planner-summary .has-conflict strong { color: #c44747; }

.planner-workspace {
  --task-panel-width: 330px;
  display: grid;
  grid-template-columns: minmax(250px, var(--task-panel-width)) minmax(650px, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-top: 14px;
}
.planner-workspace.task-list-hidden { grid-template-columns: minmax(0, 1fr); }
.planner-workspace.task-list-hidden .planner-task-panel { display: none; }
.chart-head-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.chart-head-actions > button { min-height: 32px; padding: 4px 10px; border: 1px solid #cbd8ec; border-radius: 8px; background: #f7faff; color: #315481; cursor: pointer; white-space: nowrap; }
.chart-head-actions > button:hover { background: #edf4ff; }
.planner-workspace:fullscreen { margin: 0; padding: 12px; width: 100vw; height: 100vh; box-sizing: border-box; background: #f4f7fb; }
.planner-workspace:fullscreen .planner-chart-panel,
.planner-workspace:fullscreen .planner-task-panel { min-height: 0; height: 100%; }
.planner-workspace:fullscreen .planner-chart-panel { display: flex; flex-direction: column; }
.planner-workspace:fullscreen .timeline-viewport { flex: 1; min-height: 0; height: auto; }
.planner-workspace:fullscreen .planner-task-list { height: calc(100% - 64px); }
.predecessor-checklist { margin-top: 6px; max-height: 145px; overflow: auto; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; }
.predecessor-checklist label { display: flex; gap: 8px; align-items: center; min-height: 28px; color: var(--ink); font-size: 12px; font-weight: 400; cursor: pointer; }
.predecessor-checklist input { width: 16px !important; min-height: 16px !important; height: 16px; margin: 0 !important; padding: 0 !important; accent-color: var(--blue); }
.predecessor-checklist .empty { color: #8290a4; font-size: 12px; }
.task-calendar-day.outside-parent { opacity: .32; cursor: not-allowed; }
.planner-task-panel,
.planner-chart-panel { min-width: 0; min-height: 540px; overflow: hidden; border-radius: 18px; }
.planner-panel-head { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 16px; border-bottom: 1px solid #e8ecf2; }
.planner-panel-head > div:first-child { min-width: 0; }
.planner-panel-head h2 { display: inline; margin: 0; font-size: 17px; }
.planner-panel-head h2 + span { margin-left: 9px; color: #8792a4; font-size: 11px; }
.planner-panel-head > button { width: 38px; padding: 0; color: var(--blue); font-size: 18px; }
.planner-task-list { height: 476px; overflow: auto; background: #fff; }
.task-list-row {
  min-height: 52px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-bottom: 1px solid #edf0f5;
  cursor: pointer;
}
.task-list-row:hover { background: #fafbfe; }
.task-list-row.selected { background: #eef4ff; box-shadow: inset 3px 0 0 var(--blue); }
.task-index-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--task-color, #bfe7f7);
  border-radius: 10px;
  color: #31425d;
  background: var(--task-soft-color, #edf7fb);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}
.task-list-name {
  min-width: 0;
  border: 0;
  padding: 0;
  color: #24334a;
  background: transparent;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.task-list-menu {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #65728a;
  background: transparent;
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .05em;
}
.task-list-menu:hover { color: var(--blue); border-color: #b8c8f3; background: #fff; }
.empty-task-list { min-height: 180px; display: grid; place-items: center; padding: 24px; color: #8a95a6; text-align: center; font-size: 13px; }

.chart-head { padding-right: 14px; }
.planner-legend { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 11px; color: #778398; font-size: 10px; }
.planner-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.planner-legend i { width: 9px; height: 9px; border-radius: 3px; }
.planner-legend .weekend { background: #eaf5ed; }
.planner-legend .holiday { background: #fff0ef; }
.planner-legend .anniversary { background: #eee8ff; }
.planner-legend .today { width: 2px; border-radius: 0; background: #d74b46; }
.timeline-viewport { height: 476px; overflow: auto; outline: 0; background: #f8fafc; overscroll-behavior: contain; }
.timeline-viewport:focus-visible { box-shadow: inset 0 0 0 2px rgba(55,108,246,.35); }
#ganttSvg { display: block; min-width: 100%; user-select: none; touch-action: pan-y; }
#ganttSvg .task-hit { cursor: grab; }
#ganttSvg .task-hit.resize-left,
#ganttSvg .task-hit.resize-right { cursor: ew-resize; }
#ganttSvg.dragging .task-hit { cursor: grabbing; }

.planner-status { min-height: 21px; margin: 11px 4px 0; color: #7a8699; font-size: 11px; }
.planner-status.error { color: #bf4444; }
.planner-status.success { color: #228167; }

.task-dialog { width: min(680px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; overflow: auto; border: 0; border-radius: 20px; color: var(--ink); background: #fff; box-shadow: 0 30px 90px rgba(22, 34, 58, .25); }
.task-dialog::backdrop { background: rgba(19, 29, 47, .42); backdrop-filter: blur(3px); }
.task-dialog form { padding: 24px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 21px; }
.dialog-head span { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.dialog-head h2 { margin: 2px 0 0; font-size: 25px; }
.dialog-close { width: 36px; height: 36px; border: 0; border-radius: 9px; color: #6e7a8e; background: #f2f4f8; cursor: pointer; font-size: 23px; line-height: 1; }
.dialog-close:hover { color: #26344a; background: #e9edf3; }
.dialog-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.dialog-field { display: block; color: #5c697e; font-size: 11px; font-weight: 700; }
.dialog-field-wide { grid-column: 1 / -1; }
.dialog-field input,
.dialog-field select { width: 100%; min-height: 43px; margin-top: 6px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 10px; outline: 0; color: var(--ink); background: #fff; }
.dialog-field input:focus,
.dialog-field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(55, 108, 246, .1); }
.dialog-field input[type="color"] { padding: 5px; }
.date-picker-toggle {
  grid-column: 1 / -1;
  min-height: 38px;
  border: 1px solid #cbd7e8;
  border-radius: 9px;
  color: #36547f;
  background: #f7f9fd;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}
.date-picker-toggle:hover { color: var(--blue-dark); border-color: #afc1ef; background: #f1f5ff; }
.task-date-picker {
  grid-column: 1 / -1;
  padding: 12px;
  border: 1px solid #dce3ed;
  border-radius: 13px;
  background: #f9fbfd;
}
.task-date-picker[hidden] { display: none; }
.task-calendar-toolbar { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; gap: 8px; margin-bottom: 9px; }
.task-calendar-toolbar strong { text-align: center; font-size: 15px; }
.task-calendar-toolbar button {
  min-height: 32px;
  border: 1px solid #d7e0eb;
  border-radius: 8px;
  color: #506078;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.task-calendar-toolbar button:hover { color: var(--blue); border-color: #b7c8f4; }
.task-calendar-weekdays,
.task-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.task-calendar-weekdays { margin-bottom: 4px; color: #7e899b; text-align: center; font-size: 10px; font-weight: 750; }
.task-calendar-day {
  position: relative;
  min-height: 42px;
  padding: 6px 4px 4px;
  border: 1px solid #e0e6ee;
  border-radius: 8px;
  color: #2f3d53;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
}
.task-calendar-day:hover { border-color: #9db6f4; box-shadow: 0 0 0 2px rgba(55,108,246,.08); }
.task-calendar-day.outside-month { color: #a7b0bd; opacity: .68; }
.task-calendar-day.weekend { background: #edf7ef; }
.task-calendar-day.holiday { background: #fff0ef; }
.task-calendar-day.adjusted-workday { background: #fff5df; }
.task-calendar-day.anniversary { box-shadow: inset 0 -3px 0 #8a6cdc; }
.task-calendar-day.in-range { border-color: #a8bef7; background-image: linear-gradient(rgba(55,108,246,.10), rgba(55,108,246,.10)); }
.task-calendar-day.range-start,
.task-calendar-day.range-end { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.task-calendar-day.today::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #d74b46; }
.task-calendar-badges { position: absolute; top: 3px; right: 3px; display: flex; gap: 2px; }
.task-calendar-badges i { min-width: 14px; height: 14px; display: grid; place-items: center; border-radius: 4px; color: #fff; font-style: normal; font-size: 8px; font-weight: 800; }
.task-calendar-badges .holiday { background: #d84a4a; }
.task-calendar-badges .workday { background: #c0791d; }
.task-calendar-badges .anniversary { background: #7657d8; }
.task-calendar-badges .range { background: var(--blue); }
.task-calendar-event { display: block; margin-top: 2px; overflow: hidden; color: #7657d8; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; }
.task-calendar-legend { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 9px; color: #6e7a8e; font-size: 9px; }
.task-calendar-legend span { display: inline-flex; align-items: center; gap: 4px; }
.task-calendar-legend i { width: 9px; height: 9px; border-radius: 3px; }
.task-calendar-legend .weekend { background: #d9efde; }
.task-calendar-legend .holiday { background: #f5c8c5; }
.task-calendar-legend .workday { background: #f3d69a; }
.task-calendar-legend .anniversary { background: #b9a8ed; }
.task-calendar-hint { min-height: 16px; margin: 7px 0 0; color: #6f7d92; font-size: 10px; }
.dialog-check { grid-column: 1 / -1; min-height: 39px; display: flex; align-items: center; gap: 9px; color: #536076; font-size: 12px; cursor: pointer; }
.dialog-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); }
.dialog-error { min-height: 18px; margin: 7px 0 0; color: #bd4141; font-size: 11px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 13px; }
.dialog-actions button { min-width: 88px; padding: 0 15px; }

@media (max-width: 1250px) {
  .planner-toolbar-spacer { display: none; }
  .planner-workspace { grid-template-columns: 1fr; }
  .planner-task-panel, .planner-chart-panel { min-height: 430px; }
  .planner-task-list, .timeline-viewport { height: 370px; }
}

@media (max-width: 820px) {
  .planner-page { padding-top: 23px; }
  .planner-shell { width: min(100% - 20px, 1680px); }
  .planner-heading { display: block; }
  .local-save-badge { margin-top: 14px; }
  .planner-toolbar { align-items: stretch; }
  .planner-toolbar-group { flex-wrap: wrap; }
  .planner-toolbar-group + .planner-toolbar-group { padding-left: 0; border-left: 0; }
  .planner-file-actions { width: 100%; padding-top: 8px; border-top: 1px solid #e7ebf1; }
  .planner-scale-label { margin-left: 0; }
  .planner-summary { grid-template-columns: repeat(2, 1fr); }
  .planner-summary > div { border-bottom: 1px solid #e8ecf2; }
  .planner-summary > div:nth-child(even) { border-right: 0; }
  .planner-summary > div:nth-last-child(-n+1) { border-bottom: 0; }
  .planner-summary > div:nth-child(5) { grid-column: 1 / -1; border-right: 0; }
  .planner-settings-panel { right: auto; left: 0; }
  .planner-legend { display: none; }
}

@media (max-width: 560px) {
  .planner-toolbar-primary { width: 100%; }
  .planner-toolbar-primary button { flex: 1 1 auto; }
  .planner-file-actions button { flex: 1; padding: 0 7px; }
  .planner-summary > div { padding: 13px 14px; }
  .planner-summary strong { font-size: 16px; }
  .planner-task-panel, .planner-chart-panel { border-radius: 14px; }
  .planner-panel-head { min-height: 57px; padding: 10px 12px; }
  .planner-task-list, .timeline-viewport { height: 350px; }
  .dialog-fields { grid-template-columns: 1fr; }
  .dialog-field-wide, .dialog-check { grid-column: auto; }
  .task-dialog form { padding: 19px; }
}

/* =========================================================
   V4 unified task details / hierarchy / attachments
   ========================================================= */
.task-dialog{width:min(980px,calc(100vw - 28px));max-height:calc(100vh - 28px)}
.task-dialog form{max-height:calc(100vh - 28px);overflow-y:auto}
.dialog-field textarea{width:100%;box-sizing:border-box;border:1px solid var(--line,#dce2eb);border-radius:9px;background:#fff;color:#33445d;padding:10px 12px;font:inherit;line-height:1.5;resize:vertical;overflow-wrap:anywhere;word-break:break-word}.dialog-field textarea#dialogTaskName{min-height:42px;resize:none;overflow:hidden}.dialog-breadcrumb{margin:0 0 10px;padding:8px 10px;border:1px solid #e4e9f0;border-radius:9px;background:#fafbfd}.dialog-subsection{margin-top:15px;padding-top:13px;border-top:1px solid #e7ebf1}.dialog-subsection .vg-section-head>span{color:#8b96a7;font-size:11px}.dialog-subsection:not(#dialogChildrenSection) button{border:1px solid #d3ddec;border-radius:8px;background:#f8faff;color:#536882;cursor:pointer;padding:7px 10px}.dialog-subsection:not(#dialogChildrenSection) button:hover{border-color:#b9c8e5;color:#315fd8;background:#f1f5ff}.dialog-attachment-upload{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto;gap:8px;margin-top:8px}.dialog-attachment-upload input{min-width:0;height:36px;box-sizing:border-box;border:1px solid #dde4ed;border-radius:8px;background:#fff;padding:6px 9px}.dialog-attachment-upload button{height:36px}.vg-attachment-row{padding:7px 8px;border:1px solid #e3e8ef;border-radius:8px;background:#fbfcfe}.vg-attachment-row input{height:30px;min-width:0;border:1px solid #dfe5ed;border-radius:7px;padding:0 8px}.vg-attachment-row .meta{color:#9aa4b3;font-size:10px;white-space:nowrap}.vg-child-row .index{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#fff;border:1px solid #dfe5ed;font-weight:800;color:#58677e}.vg-child-row .actions{display:flex;gap:5px}.vg-child-row button{height:29px;padding:0 8px}.vg-child-row .child-count{font-size:10px;color:#77869a}.vg-mini-gantt{margin-top:10px}.vg-mini-gantt-inner{min-width:620px}.vg-mini-axis{position:absolute;left:0;right:0;top:0;height:30px;border-bottom:1px solid #e3e8ef;background:#f8fafc;color:#7d899b;font-size:10px}.vg-mini-axis span{position:absolute;top:8px;transform:translateX(-50%)}.vg-mini-bar{top:var(--row-top);background:var(--bar-color,#BFE7F7)}.task-list-name-wrap{min-width:0;display:flex;align-items:center;gap:6px}.task-list-name-wrap .task-list-name{min-width:0;flex:1}.task-list-child-badge{font-size:9px;color:#315fd8;background:#f4f7ff;border:1px solid #d4def5;border-radius:999px;padding:2px 6px;white-space:nowrap}
@media(max-width:720px){.dialog-attachment-upload{grid-template-columns:1fr}.vg-attachment-row{grid-template-columns:1fr auto}.vg-attachment-row input{grid-column:1/-1}.task-dialog{width:calc(100vw - 12px);max-height:calc(100vh - 12px)}.task-dialog form{max-height:calc(100vh - 12px)}}

/* V4.1 task interaction */
.task-list-row[draggable="true"]{cursor:grab}
.task-list-row[draggable="true"]:active{cursor:grabbing}
.dialog-head-actions{display:flex;align-items:center;gap:8px}
.dialog-back{min-height:34px;padding:0 11px;border:1px solid #d4ddec;border-radius:9px;color:#315fd8;background:#f7f9ff;cursor:pointer;font-weight:700}
.dialog-back:hover{border-color:#b8c7e7;background:#eef3ff}
.dialog-actions{align-items:center}
.dialog-action-spacer{flex:1}
.dialog-actions .danger{color:#b34e57;border-color:#eccfd2;background:#fff7f7}
.dialog-actions .danger:hover{color:#a53f49;border-color:#dfaeb4;background:#fff0f1}
.vg-child-row[draggable="true"]{cursor:grab}
.vg-child-row[draggable="true"]:active{cursor:grabbing}
@media(max-width:720px){.dialog-head-actions{gap:5px}.dialog-back{padding:0 8px;font-size:11px}.dialog-actions{flex-wrap:wrap}.dialog-action-spacer{display:none}.dialog-actions .danger{margin-right:auto}}

/* The same complete editor is used at every task level. */
.task-dialog { width: min(1580px, calc(100vw - 28px)); }
.task-dialog form { padding: 20px; }
.dialog-head h2 { overflow-wrap: anywhere; }
.task-properties { border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 14px; }
.task-properties > summary { padding: 12px 14px; font-size: 13px; font-weight: 700; color: #425b7a; cursor: pointer; }
.task-properties > .dialog-fields, .task-properties > .dialog-subsection { margin: 0 14px 14px; }
.dialog-plan-host { min-width: 0; }
.dialog-breadcrumb { margin-bottom: 12px; }
.dialog-attachment-preview { grid-column: 1 / -1; display: block; max-width: 100%; max-height: 300px; border-radius: 8px; object-fit: contain; cursor: pointer; }
.dialog-plan-host .planner-workspace { min-height: 420px; }
.dialog-plan-host .planner-toolbar button.primary { background: var(--blue); color: #fff; }
.dialog-plan-host .planner-toolbar button { padding: 0 12px; }
.dialog-plan-host .planner-settings-panel { z-index: 30; }
.planner-editor:fullscreen { width: 100%; height: 100%; padding: 16px; box-sizing: border-box; overflow: auto; background: #f4f6fa; }
.planner-editor:fullscreen .planner-workspace { min-height: calc(100vh - 240px); }
.planner-editor:fullscreen .timeline-viewport { max-height: none; }
.vg-full-plan-frame { display: block; width: 100%; height: max(640px, 76vh); border: 0; border-radius: 12px; background: #f4f6fa; }
body.plan-embedded .site-header, body.plan-embedded .site-footer, body.plan-embedded .planner-heading { display: none; }
body.plan-embedded .planner-page { padding: 10px 0 16px; }
body.plan-embedded .planner-shell { width: calc(100% - 20px); }
body.plan-embedded .planner-workspace { min-height: 480px; }
@media(max-width:720px) { .task-dialog form { padding: 12px; } .planner-editor:fullscreen { padding: 8px; } }
