:root {
  font-family:
    Inter,
    "Noto Sans JP",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #293b3a;
  background: #f7f9f8;
  font-size: 14px;
  --green: #256b62;
  --line: #e2e9e5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 9px 13px;
  color: inherit;
}
button:hover {
  background: #edf3ef;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover {
  background: #1e5a52;
}
.danger {
  color: #aa3939;
}
a {
  color: var(--green);
}
.shell {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #eff3f0;
  border-right: 1px solid var(--line);
  padding: 30px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 750;
  margin-bottom: 30px;
}
.logo {
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
  border-radius: 9px;
  width: 35px;
  height: 35px;
  font-size: 21px;
}
.small,
.muted {
  font-size: 12px;
  color: #71817a;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #7b8a82;
  margin: 18px 10px 7px;
}
.sidebar button {
  text-align: left;
  background: transparent;
  border: 0;
  padding: 11px 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.sidebar button.active {
  background: #dce9e1;
  color: #205e55;
  font-weight: 700;
}
.sidebar .bottom {
  margin-top: auto;
}
.side-note {
  font-size: 11px;
  line-height: 1.8;
  padding: 14px 10px;
  color: #77877d;
}
.main {
  min-width: 0;
}
.topbar {
  height: 70px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  background: white;
}
.user {
  display: flex;
  gap: 12px;
  align-items: center;
}
.avatar {
  background: #e5eee8;
  color: #366751;
  border-radius: 50%;
  padding: 9px;
}
.content {
  padding: 36px 42px;
  max-width: 1550px;
  margin: auto;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.heading h1 {
  font-size: 27px;
  letter-spacing: 0.04em;
  margin: 7px 0 10px;
  font-weight: 650;
}
.eyebrow {
  color: #7a8d80;
  font-size: 11px;
  letter-spacing: 2px;
}
.heading p {
  color: #7a8782;
  margin: 0;
  font-size: 13px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.vision {
  border: 1px solid #dae6dc;
  border-left: 4px solid #7d9d82;
  border-radius: 8px;
  padding: 16px 21px;
  background: #f0f5ef;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
}
.vision p {
  margin: 5px 0;
  font-size: 13px;
  color: #597060;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.stat,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.stat {
  padding: 19px 22px;
}
.stat strong {
  font-size: 30px;
  font-weight: 600;
  display: block;
  margin-top: 12px;
}
.stat .unit {
  font-size: 12px;
  font-weight: 400;
  margin-left: 5px;
  color: #819085;
}
.stat label {
  font-size: 12px;
  color: #6f8077;
}
.grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 22px;
}
.panel {
  padding: 22px;
  margin-bottom: 22px;
  min-width: 0;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.panel h2 {
  font-size: 16px;
  font-weight: 650;
  margin: 0;
}
.panel-title button {
  font-size: 12px;
  border: 0;
  color: var(--green);
  padding: 4px;
}
.rows {
  display: grid;
}
.work-row {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 92px minmax(150px, 1fr) 90px 80px;
  gap: 14px;
  align-items: center;
  padding: 17px 4px;
  border: 0;
  border-bottom: 1px solid #eef1ef;
  border-radius: 0;
  background: white;
}
.work-row:last-child {
  border-bottom: 0;
}
.work-row:hover {
  background: #f8faf8;
}
.work-title {
  font-weight: 550;
  overflow-wrap: anywhere;
}
.work-sub {
  font-size: 11px;
  color: #859087;
  margin-top: 5px;
}
.time {
  font-size: 12px;
  color: #687a71;
}
.badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-block;
  background: #eff2f0;
  color: #66776a;
}
.badge.event {
  background: #eaf1fb;
  color: #476f9a;
}
.badge.task {
  background: #f5efdf;
  color: #9a7a3d;
}
.badge.done {
  background: #e6f0e8;
  color: #3e7751;
}
.badge.tentative {
  border: 1px dashed #9a8d70;
  background: #faf6eb;
}
.badge.cancelled {
  text-decoration: line-through;
  color: #8b8b8b;
}
.overdue {
  color: #b14b3f;
}
.empty {
  padding: 26px 12px;
  color: #849087;
  text-align: center;
  line-height: 1.9;
  font-size: 13px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.filters input,
.filters select {
  min-width: 130px;
  flex: 1;
}
.filters label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  color: #6c7f73;
}
input,
select,
textarea {
  border: 1px solid #d9e2dc;
  border-radius: 6px;
  padding: 10px;
  background: white;
  color: #2b3f34;
  max-width: 100%;
}
textarea {
  min-height: 95px;
  resize: vertical;
}
input[type="checkbox"] {
  min-width: auto;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 11px;
  font-weight: 500;
  color: #809085;
  background: #f6f8f6;
  padding: 11px;
}
td {
  padding: 13px 11px;
  border-bottom: 1px solid #edf1ed;
  font-size: 12px;
}
td button {
  border: 0;
  padding: 0;
  text-align: left;
  color: var(--green);
  max-width: 320px;
  white-space: normal;
}
tr:hover td {
  background: #fafcfa;
}
.notice {
  font-size: 12px;
  line-height: 1.9;
  background: #f1f5f1;
  border-radius: 6px;
  padding: 12px 16px;
  color: #687e6d;
}
.timeline-scroll {
  overflow: auto;
  max-height: 75vh;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.timeline {
  min-width: 1000px;
  background: white;
}
.axis,
.lane {
  display: grid;
  grid-template-columns: 160px 1fr;
}
.axis {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f5f8f5;
  border-bottom: 1px solid var(--line);
}
.lane-name {
  padding: 16px 12px;
  font-size: 12px;
  background: #f5f8f5;
  position: sticky;
  left: 0;
  z-index: 1;
  border-right: 1px solid var(--line);
}
.axis-track {
  height: 72px;
  position: relative;
}
.tick {
  position: absolute;
  top: 32px;
  bottom: 0;
  font-size: 10px;
  color: #7a897f;
  border-left: 1px solid #dfe8df;
  padding: 6px 0 0 5px;
}
.month {
  position: absolute;
  top: 10px;
  font-size: 12px;
  font-weight: 600;
  padding-left: 5px;
}
.track {
  position: relative;
  min-height: 80px;
  background: repeating-linear-gradient(
    to right,
    transparent,
    transparent calc(100% / var(--days) - 1px),
    #edf1ed calc(100% / var(--days) - 1px),
    #edf1ed calc(100% / var(--days))
  );
  border-bottom: 1px solid var(--line);
}
.today-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-left: 2px solid #c48560;
  z-index: 1;
  pointer-events: none;
}
.timeline-item {
  position: absolute;
  padding: 7px 9px;
  border: 1px solid #d9e5df;
  background: #eaf2ec;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  max-width: none;
  height: 48px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.timeline-item.event {
  background: #ecf2fa;
  border-color: #dbe6f3;
}
.timeline-item.task {
  background: #faf3df;
  border-color: #eee4c5;
}
.timeline-item.tentative {
  border-style: dashed;
}
.timeline-item.done {
  opacity: 0.65;
}
.timeline-item.cancelled {
  text-decoration: line-through;
  opacity: 0.6;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}
.project-card {
  text-align: left;
  padding: 23px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.project-card h2 {
  font-size: 17px;
  margin: 16px 0 10px;
}
.project-card p {
  font-size: 13px;
  color: #7b897e;
  line-height: 1.7;
  min-height: 45px;
  white-space: pre-wrap;
}
.project-card footer {
  font-size: 11px;
  color: #7a8b7d;
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
}
.progress {
  height: 4px;
  background: #edf1ec;
  border-radius: 4px;
  margin: 16px 0;
}
.progress span {
  display: block;
  background: #7d9b83;
  height: 4px;
  border-radius: 4px;
}
.login {
  max-width: 460px;
  margin: 13vh auto;
  padding: 36px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.login h1 {
  font-size: 24px;
  margin: 25px 0 15px;
}
.login p {
  color: #77877d;
  line-height: 1.9;
}
.login button {
  width: 100%;
  margin-top: 16px;
}
.login .brand {
  margin: 0;
}
.login input {
  width: 100%;
}
dialog {
  width: min(660px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 24px 100px #18372933;
  max-height: 90vh;
}
dialog::backdrop {
  background: #18332966;
}
.modal-content {
  padding: 27px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 21px;
}
.modal-head h2 {
  font-size: 20px;
  margin: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: #697d70;
}
.full {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.form-error {
  color: #ae4036;
  font-size: 13px;
  line-height: 1.7;
}
.detail-section {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}
.loading {
  padding: 50px;
  text-align: center;
  color: #748379;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: #24483e;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  max-width: 90vw;
  display: none;
}
.mobile-menu {
  display: none;
}
.meta {
  font-size: 11px;
  color: #859085;
  line-height: 1.9;
  margin-top: 20px;
}
.scope {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.scope button {
  font-size: 12px;
}
.scope button.active {
  background: #e2ece4;
  color: #2c6752;
}
.legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 15px 0;
  font-size: 11px;
  color: #74867a;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 45px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 205px 1fr;
  }
  .content {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 10px;
  }
  .work-row {
    grid-template-columns: 80px 1fr 80px 70px;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
    position: fixed;
    width: 240px;
    z-index: 5;
    box-shadow: 10px 0 40px #17372433;
  }
  .sidebar.open {
    display: flex;
  }
  .mobile-menu {
    display: block;
  }
  .topbar {
    padding: 0 16px;
    height: 60px;
  }
  .content {
    padding: 24px 15px;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .heading h1 {
    font-size: 24px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    padding: 15px;
  }
  .stat strong {
    font-size: 26px;
  }
  .panel {
    padding: 16px;
  }
  .work-row {
    grid-template-columns: 62px 1fr 72px;
    gap: 8px;
  }
  .work-row > .assignee {
    display: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .login {
    margin: 8vh 15px;
  }
  .vision {
    display: block;
  }
  .user .muted {
    display: none;
  }
  .filters input,
  .filters select {
    min-width: 110px;
  }
  .modal-content {
    padding: 20px;
  }
  .actions button {
    font-size: 12px;
  }
  .timeline {
    min-width: 1000px;
  }
}
.timeline-item.duration {
  max-width: none;
}
.month-boundary {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px solid #c6d8cd;
  pointer-events: none;
}
.sidebar {
  overflow-y: auto;
}
.sidebar .bottom {
  padding-top: 15px;
}
.sidebar .brand {
  margin-bottom: 14px;
}
.sidebar button {
  padding-top: 9px;
  padding-bottom: 9px;
  flex-shrink: 0;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.spaced {
  margin-top: 22px;
}
.preserve {
  white-space: pre-wrap;
  line-height: 1.9;
}
.entry-card {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.entry-card p {
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.entry-card .panel-title {
  align-items: flex-start;
  margin-bottom: 10px;
}
.entry-card .actions {
  flex-shrink: 0;
}
.entry-card button {
  font-size: 12px;
}
.swot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.swot-cell {
  background: #f5f8f4;
  padding: 17px;
  border-radius: 8px;
  min-width: 0;
}
.swot-cell h3 {
  font-size: 14px;
  color: var(--green);
}
.prep-row,
.evidence-row {
  display: grid;
  grid-template-columns: 2fr 0.8fr 1.4fr 1fr 30px;
  gap: 8px;
  align-items: end;
  border: 1px solid var(--line);
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 7px;
}
.evidence-row {
  grid-template-columns: 1fr 1.5fr 1fr 1fr 30px;
}
.prep-row input,
.prep-row select,
.evidence-row input {
  width: 100%;
  min-width: 0;
}
.prep-row label,
.evidence-row label {
  font-size: 11px;
}
.check-line {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
}
.check-line input {
  min-width: auto;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 16px;
}
legend {
  font-size: 12px;
  color: #6c8072;
}
.history-list details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.history-list pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.weekday {
  text-align: center;
  background: #eef4ee;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.calendar-day {
  min-height: 105px;
  padding: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-width: 0;
  background: white;
}
.calendar-day.blank {
  background: #f7f9f7;
}
.calendar-day time {
  display: block;
  font-size: 12px;
  margin-bottom: 7px;
}
.calendar-day.is-today {
  background: #eef6ec;
  box-shadow: inset 0 2px #779f7b;
}
.calendar-day button {
  display: block;
  font-size: 11px;
  text-align: left;
  width: 100%;
  border: 0;
  border-left: 2px solid #85a18a;
  border-radius: 2px;
  padding: 5px;
  margin: 3px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #f0f5ef;
  overflow-wrap: anywhere;
}
.calendar-scroll {
  overflow-x: auto;
}
.calendar-scroll > .calendar-grid {
  min-width: 730px;
}
.annual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 15px;
}
.compact-calendar {
  padding: 13px;
  margin-bottom: 0;
}
.compact-calendar .calendar-day {
  min-height: 65px;
  padding: 4px;
}
.compact-calendar .calendar-day button {
  font-size: 10px;
  padding: 2px;
  white-space: nowrap;
}
.compact-calendar .small {
  display: none;
}
.requirement-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.requirement-summary > div {
  padding: 14px;
  background: #f1f6f1;
  border-radius: 6px;
}
.requirement-summary p {
  font-size: 12px;
}
.sidebar .side-note {
  display: none;
}
@media (max-width: 720px) {
  .swot-grid {
    grid-template-columns: 1fr;
  }
  .prep-row,
  .evidence-row {
    grid-template-columns: 1fr 1fr;
  }
  .prep-row label:first-child,
  .evidence-row label:first-child {
    grid-column: 1/-1;
  }
  .summary-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .annual-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .entry-card .panel-title {
    flex-direction: column;
  }
  .calendar-day {
    padding: 5px;
  }
  .compact-calendar .calendar-day button {
    font-size: 9px;
  }
  .requirement-summary {
    grid-template-columns: 1fr;
  }
  .filters > label {
    min-width: 120px;
    max-width: 100%;
    flex: 1;
  }
  .filters > label > select {
    width: 100%;
    min-width: 0;
  }
  .sidebar {
    padding: 18px;
  }
}
.history-values {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px 15px;
  margin: 16px 0;
}
.history-values dt {
  font-size: 12px;
  color: #708575;
}
.history-values dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.history-values .history-values {
  grid-template-columns: 100px minmax(0, 1fr);
  margin: 0;
}
.history-list summary {
  cursor: pointer;
  font-size: 13px;
  line-height: 1.8;
}
@media (max-width: 720px) {
  .history-values {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .history-values dd {
    margin-bottom: 10px;
  }
  .history-values .history-values {
    grid-template-columns: 1fr;
  }
}

.strategy-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.strategy-tabs [aria-pressed="true"] {
  background: #256b62;
  color: white;
}
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.strategy-card {
  border: 1px solid #cbdad6;
  border-radius: 12px;
  padding: 1rem;
  background: #fafcfb;
  overflow-wrap: anywhere;
}
.strategy-card h3 {
  margin-top: 0;
}
.strategy-pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 100%;
}
#strategy-workbench {
  margin: 1rem 0;
}
.strategy-map {
  overflow-x: auto;
  max-width: 100%;
}
.strategy-map svg {
  min-width: 540px;
  width: 100%;
  max-height: 800px;
}
.strategy-journey {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.strategy-journey li {
  min-width: 0;
}
.strategy-journey li > button,
.strategy-journey li > span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid #cbdad6;
  border-radius: 12px;
  padding: 16px;
  width: 100%;
  height: 100%;
  background: #f5faf7;
  text-align: left;
}
.strategy-journey small {
  display: block;
  color: #52746b;
  font-size: 0.75rem;
}
.strategy-journey [aria-current="step"] {
  border: 2px solid #256b62;
  background: #e8f4ed;
}
.strategy-journey li span button {
  width: 100%;
  text-align: left;
}
.strategy-choice {
  padding: 20px;
  background: #edf5f0;
  border-radius: 12px;
  margin-top: 24px;
}
@media (max-width: 900px) {
  .strategy-journey {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .strategy-journey {
    grid-template-columns: 1fr;
  }
}
#legacy-goals {
  margin-top: 24px;
}
#legacy-goals > summary {
  cursor: pointer;
  padding: 18px;
  background: #f2f6f3;
  border: 1px solid #d6e2dc;
  border-radius: 10px;
  font-weight: 600;
}
.smart-writing label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0;
  font-weight: 600;
}
.smart-writing small {
  font-weight: 400;
  color: #54746a;
}
.smart-writing textarea {
  min-height: 90px;
}
.strategy-card .danger {
  margin-left: 8px;
  color: #a12e36;
}
.calendar-day[data-create-date] {
  cursor: pointer;
}
.calendar-day[data-create-date]:hover {
  box-shadow: inset 0 0 0 2px #579182;
}
.calendar-day .calendar-date-entry {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  width: auto;
  min-width: 30px;
}
.calendar-day .calendar-date-entry time {
  margin: 0;
  font-weight: 600;
}
[data-timeline-create] {
  cursor: crosshair;
}
[data-timeline-create]:hover {
  box-shadow: inset 0 0 0 2px #7eaa99;
}
.direct-entry-empty {
  min-height: 100px;
  width: 100%;
  border: 1px dashed #9bb7aa;
  background: #f6faf7;
  color: #4d7463;
  text-align: center;
}
[data-strategy-card] {
  cursor: pointer;
}
[data-strategy-card]:hover,
[data-strategy-card]:focus-visible {
  outline: 2px solid #6b9a89;
  outline-offset: 2px;
}
.work-delete-actions {
  border-top: 1px solid #e5dedc;
  padding: 18px 0;
}
.work-delete-actions .danger {
  color: #ac343e;
}

.calendar-work-item {
  display: flex;
  align-items: stretch;
  gap: 2px;
}
.calendar-work-item > [data-edit-work] {
  flex: 1;
  min-width: 0;
}
.calendar-day .calendar-delete {
  flex: 0 0 24px;
  width: 24px;
  border: 0;
  color: #a33b43;
  background: #fff4f3;
  text-align: center;
  font-size: 16px;
  padding: 2px;
}
.modal-delete-work {
  margin-left: auto;
  color: #a33b43;
  border-color: #e3bec1;
}
.notification-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #a65439;
  color: white;
  border-radius: 12px;
  padding: 1px 7px;
  margin-left: auto;
  font-size: 11px;
}
.notice-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e1e8e3;
  padding: 18px 0;
  flex-wrap: wrap;
}
.notice-item h3 {
  margin: 8px 0;
}
.document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.document-card {
  border: 1px solid #d5e2da;
  border-radius: 10px;
  padding: 18px;
  overflow-wrap: anywhere;
}
.document-link-list {
  max-height: 220px;
  overflow: auto;
  padding: 10px;
}
.analysis-month {
  display: grid;
  grid-template-columns: 85px minmax(0, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.analysis-month > span:last-child {
  grid-column: 2;
  font-size: 12px;
}
.analysis-bar {
  min-height: 18px;
  background: #5e927c;
  border-radius: 4px;
}
@media (max-width: 600px) {
  .notice-item .actions {
    width: 100%;
    flex-wrap: wrap;
  }
}
.document-link-list [hidden] {
  display: none;
}

.timeline-item-time,
.timeline-item-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timeline-item-time {
  font-size: 10px;
  color: #5b7169;
  margin-bottom: 4px;
}
.axis .lane-name {
  z-index: 3;
}

@media (min-width: 721px) {
  .content.timeline-content {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 16px;
    padding-right: 16px;
  }
}
/* A readable daily axis with matching full-height weekend/holiday columns. */
.timeline .lane-name {
  font-size: 16px;
  font-weight: 600;
}
.timeline .axis-track {
  height: 100px;
}
.timeline .month {
  font-size: 16px;
}
.timeline .tick {
  top: 36px;
  font-size: 16px;
  font-weight: 600;
  color: #40574c;
  padding: 8px;
  line-height: 1.4;
}
.timeline .tick.calendar-saturday,
.weekend-blue {
  color: #245aab;
}
.timeline .tick.calendar-holiday,
.weekend-red {
  color: #b42e40;
}
.timeline .tick.calendar-saturday {
  background: #eef4ff;
  border-left-color: #7e9fd5;
}
.timeline .tick.calendar-holiday {
  background: #fff0f2;
  border-left-color: #d98c98;
}
.holiday-name {
  display: block;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.timeline-day-band {
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
}
.timeline-day-band.calendar-saturday {
  background: rgba(64, 118, 205, 0.065);
  border-left: 1px solid #8ba9d8;
  border-right: 1px solid #8ba9d8;
}
.timeline-day-band.calendar-holiday {
  background: rgba(202, 63, 88, 0.065);
  border-left: 1px solid #d793a0;
  border-right: 1px solid #d793a0;
}
.timeline .tick {
  white-space: nowrap;
}
.timeline-today-caption {
  font-size: 10px;
  font-weight: 600;
}
.hospital-departments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}
.department-card {
  padding: 16px;
  border: 1px solid #d5e3dc;
  border-radius: 10px;
}

/* Shared date colors: public holidays take priority over Saturdays. */
time.date-saturday,
input.date-saturday,
.date-preview.date-saturday,
.weekday.date-saturday {
  color: #245eaa;
}
time.date-holiday,
input.date-holiday,
.date-preview.date-holiday,
.weekday.date-holiday {
  color: #b43239;
}
.calendar-day.date-saturday,
.weekday.date-saturday {
  background: #eef5ff;
  border-right-color: #b9cfea;
  border-bottom-color: #b9cfea;
}
.calendar-day.date-holiday,
.weekday.date-holiday {
  background: #fff0f1;
  border-right-color: #ebc0c4;
  border-bottom-color: #ebc0c4;
}
.calendar-day .calendar-date-entry time {
  font-size: 16px;
  font-weight: 600;
}
.calendar-holiday-label {
  display: block;
  font-size: 11px;
  color: #b43239;
}
.calendar-holiday-label:empty {
  display: none;
}
.date-preview {
  display: block;
  margin-top: 4px;
}
.date-preview:empty {
  display: none;
}
/* Deadline urgency remains visible independently of weekday color. */
.overdue time {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
