/* Phase 1: timeline-only visual language. No global OA or organization overrides. */
.project-timeline-app {
  position: relative;
  --timeline-green: #128765;
  --timeline-green-deep: #09674d;
  --timeline-line: #b6cbc1;
  --timeline-text: #24382f;
  --timeline-date-width: clamp(150px, 14vw, 176px);
  --timeline-event-width: 256px;
  --timeline-card-height: 118px;
  --timeline-card-title-height: 22.4px;
  --timeline-card-body-height: 39.6px;
  --timeline-card-row-gap: 6px;
  --timeline-card-padding-inline: 14px;
  --timeline-link-gap: clamp(24px, 2.8vw, 38px);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
.project-timeline-stage {
  background: radial-gradient(ellipse at 50% 18%, #fff9 0, transparent 65%),
    linear-gradient(155deg, #eef4f0, #e9f1ec 80%, #e3eee7);
}
.project-timeline-canvas { padding-top: 78px; padding-bottom: 100px; }
.project-timeline-scroll { overflow: auto; touch-action: pan-x pan-y; overflow-anchor: none; }
/* Keep scrolling and canvas gestures intact; hide only their scrollbar chrome. */
:is(.project-timeline-app, .project-timeline-modal-layer, .project-timeline-annotation-layer, .project-timeline-preview-layer),
:is(.project-timeline-app, .project-timeline-modal-layer, .project-timeline-annotation-layer, .project-timeline-preview-layer) *,
body:has(.project-timeline-modal-layer:not([hidden])) .linxi-oa-modal-layer:has(#linxiOaModalTitle),
body:has(.project-timeline-modal-layer:not([hidden])) .linxi-oa-modal-layer:has(#linxiOaModalTitle) * {
  scrollbar-width: none !important;
}
:is(.project-timeline-app, .project-timeline-modal-layer, .project-timeline-annotation-layer, .project-timeline-preview-layer)::-webkit-scrollbar,
:is(.project-timeline-app, .project-timeline-modal-layer, .project-timeline-annotation-layer, .project-timeline-preview-layer) *::-webkit-scrollbar,
body:has(.project-timeline-modal-layer:not([hidden])) .linxi-oa-modal-layer:has(#linxiOaModalTitle)::-webkit-scrollbar,
body:has(.project-timeline-modal-layer:not([hidden])) .linxi-oa-modal-layer:has(#linxiOaModalTitle) *::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
/* Workspace ancestors participate only while the project detail is the active tab. */
html:has(.workspace-layout.tab-workbench #workbenchDetailPanel:not([hidden]) .project-timeline-app),
html:has(.workspace-layout.tab-workbench #workbenchDetailPanel:not([hidden]) .project-timeline-app) :is(body, .shell, .workspace-layout, .workbench-panel, #workbenchDetailPanel, #workbenchDetailMount) {
  scrollbar-width: none !important;
}
html:has(.workspace-layout.tab-workbench #workbenchDetailPanel:not([hidden]) .project-timeline-app)::-webkit-scrollbar,
html:has(.workspace-layout.tab-workbench #workbenchDetailPanel:not([hidden]) .project-timeline-app) :is(body, .shell, .workspace-layout, .workbench-panel, #workbenchDetailPanel, #workbenchDetailMount)::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.project-timeline-canvas { transform-origin: 0 0; }
.project-timeline-view-controls {
  position: absolute;
  z-index: 8;
  top: 16px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid #d6e3dc;
  border-radius: 13px;
  background: #fcfefdF2;
  box-shadow: 0 4px 18px #254a3510;
  backdrop-filter: blur(12px);
}
.project-timeline-view-controls button {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #3d594c;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}
.project-timeline-view-controls button:last-child { font-size: 12px; font-weight: 600; }
.project-timeline-view-controls button[data-timeline-action="return-today"],
.project-timeline-view-controls button[data-timeline-action="workflow-inbox"] {
  font-size: 14px;
  font-weight: 600;
}
.project-timeline-view-controls .project-timeline-directory-toggle { display: none; font-size: 12px; font-weight: 600; }
.project-timeline-view-controls .project-timeline-directory-toggle.is-needed { display: grid; }
.project-timeline-view-controls button:hover { background: #eaf3ed; color: #087654; }
.project-timeline-view-controls button:disabled { opacity: .3; cursor: default; }
.project-timeline-view-controls span { width: 38px; text-align: center; color: #6d8176; font-size: 11px; }
.project-timeline-view-controls i { height: 16px; width: 1px; margin: 0 5px; background: #dce6df; }
.project-timeline-day { min-height: 142px; }
.project-timeline-events, .project-timeline-personal-events { gap: 16px; padding-block: 12px; }
.project-timeline-day {
  contain-intrinsic-size: auto calc(var(--timeline-day-card-count, 1) * (var(--timeline-card-height) + 16px) + 8px);
}
.project-timeline-day.is-windowed {
  height: max(142px, calc(var(--timeline-day-card-count, 1) * (var(--timeline-card-height) + 16px) + 8px));
  min-height: 0;
  box-sizing: border-box;
  content-visibility: visible;
  contain: layout style;
}
.project-timeline-app.is-zooming .project-timeline-canvas { will-change: auto; }
.project-timeline-canvas.is-lod-switching { animation: none; }
.project-timeline-pending-cards {
  display: grid;
  place-items: center;
  justify-self: end;
  width: min(100%, var(--timeline-event-width));
  height: calc(var(--timeline-pending-count) * (var(--timeline-card-height) + 16px) - 16px);
  box-sizing: border-box;
  border: 1px solid #d2e0d780;
  border-radius: 14px;
  background: #fdfefc60;
}
.project-timeline-personal-events > .project-timeline-pending-cards { justify-self: start; }
.project-timeline-pending-cards > button {
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: #688577;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.project-timeline-pending-cards > button:disabled { cursor: default; opacity: .7; }
.project-timeline-event, .project-timeline-personal-card {
  border: 1px solid #d2e0d7;
  border-radius: 14px;
  background: #fdfefc;
  box-shadow: 0 5px 18px #254a350a, 0 1px 3px #254a3506;
}
/* Fixed overview tracks preserve two body lines even when a summary is absent. */
.project-timeline-event, .project-timeline-personal-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: var(--timeline-card-title-height) var(--timeline-card-body-height) 24px;
  align-items: stretch;
  align-content: end;
  gap: var(--timeline-card-row-gap);
  min-width: 0;
  padding: 10px var(--timeline-card-padding-inline) 8px;
  box-sizing: border-box;
}
.project-timeline-event, .project-timeline-personal-card {
  height: var(--timeline-card-height);
  min-height: var(--timeline-card-height);
  box-sizing: border-box;
}
.project-timeline-event { --timeline-card-footer-bg: #fdfefc; overflow: visible; }
.project-timeline-event:hover, .project-timeline-event:focus-visible {
  --timeline-card-footer-bg: #f5faf6;
  border-color: #72af92;
  background: #f5faf6;
  box-shadow: 0 7px 24px #1c6a4412, 0 0 0 2px #17845e0b;
}
.project-timeline-event.is-project { --timeline-card-footer-bg: #eaf5ee; padding-top: 8px; border-color: #a9cbbb; border-top: 3px solid #459977; background: linear-gradient(150deg, #f7fcf8, #eaf5ee); box-shadow: 0 5px 20px #2b674215; }
.project-timeline-event.is-project .project-timeline-event-title { color: #216547; font-weight: 700; }
.project-timeline-event.is-progress { --timeline-card-footer-bg: #fcfdfb; border-color: #d4e0d8; background: #fcfdfb; box-shadow: 0 2px 9px #254a3506; }
.project-timeline-event.is-fact { --timeline-card-footer-bg: #f9fcfa; padding-left: calc(var(--timeline-card-padding-inline) - 1px); border-color: #d4e1dc; border-left: 2px solid #87a99a; background: #f9fcfa; box-shadow: 0 2px 8px #254a3507; }
.project-timeline-event.is-fact:hover, .project-timeline-event.is-fact:focus-visible { --timeline-card-footer-bg: #f0f7f2; border-color: #75a68c; background: #f0f7f2; }
.project-timeline-event.is-fact .project-timeline-event-title { font-size: 13px; }
.project-timeline-event .project-timeline-card-relation { min-width: 0; overflow: hidden; color: #78917f; font-size: 10px; font-weight: 400; white-space: nowrap; text-overflow: ellipsis; }
.project-timeline-event.is-directory-highlighted { border-color: #278c61; box-shadow: 0 0 0 3px #409a6d26, 0 7px 24px #27603b15; }

/* A controller-owned directory fits the existing rail; it never owns the OA shell. */
.project-timeline-project-directory { display: flex; flex-direction: column; gap: 12px; width: 100%; height: 100%; min-width: 0; min-height: 0; box-sizing: border-box; color: #345743; font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
.project-timeline-project-directory[hidden], .project-timeline-project-directory [hidden], .project-timeline-directory-backdrop[hidden] { display: none !important; }
.project-timeline-directory-head { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 0 9px; }
.project-timeline-directory-head strong { color: #657c6c; font-size: 12px; font-weight: 500; }
.project-timeline-directory-head > button { display: none; }
.project-timeline-directory-list { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 0 2px 18px; scrollbar-width: none; }
.project-timeline-directory-list::-webkit-scrollbar { display: none; width: 0; height: 0; }
.project-timeline-directory-project + .project-timeline-directory-project { margin-top: 5px; }
.project-timeline-directory-root { display: flex; align-items: center; gap: 0; min-width: 0; border: 1px solid transparent; border-radius: 10px; }
.project-timeline-project-directory button { box-sizing: border-box; min-width: 0; margin: 0; font-family: inherit; cursor: pointer; }
.project-timeline-project-directory .project-timeline-directory-entry { display: flex; align-items: center; flex: 1 1 auto; gap: 7px; min-height: 42px; padding: 9px 8px; border: 0 !important; border-radius: 8px; background: transparent !important; color: #345c46 !important; font-size: 12px; line-height: 1.55; text-align: left; box-shadow: none !important; }
.project-timeline-directory-label { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.project-timeline-directory-root .project-timeline-directory-label { font-weight: 600; }
.project-timeline-project-directory .project-timeline-directory-arrow { display: grid; flex: 0 0 29px; place-items: center; width: 29px; height: 38px; padding: 0; border: 0 !important; border-radius: 8px; background: transparent !important; color: #7e9988 !important; }
.project-timeline-directory-arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform 130ms ease; }
.project-timeline-directory-arrow[aria-expanded="true"] svg { transform: rotate(90deg); }
.project-timeline-directory-children { display: grid; margin: 3px 0 8px 16px; padding-left: 12px; border-left: 1px solid #dde7e0; }
.project-timeline-project-directory .project-timeline-directory-entry.is-progress { min-height: 36px; padding: 8px; color: #68816f !important; font-size: 11px; }
.project-timeline-directory-entry :is(time, small) { flex: 0 0 auto; color: #92a095; font-size: 10px; font-weight: 400; white-space: nowrap; }
.project-timeline-project-directory .project-timeline-directory-root.is-selected { border-color: #c6ddcd; background: #eaf4ed; }
.project-timeline-project-directory .project-timeline-directory-entry.is-selected { background: #eaf4ed !important; color: #28774f !important; }
.project-timeline-project-directory :is(.project-timeline-directory-entry, .project-timeline-directory-arrow):hover { background: #e8f2eb !important; color: #286947 !important; }
.project-timeline-project-directory :is(.project-timeline-directory-entry, .project-timeline-directory-arrow):active { background: #d8e9de !important; }
.project-timeline-project-directory button:focus-visible { outline: 2px solid #509673 !important; outline-offset: -2px; }
.project-timeline-directory-spinner { flex: 0 0 11px; width: 11px; height: 11px; border: 1.5px solid #b9d2c2; border-top-color: #387e59; border-radius: 50%; animation: project-timeline-heading-spin .85s linear infinite; }
.project-timeline-directory-backdrop { position: absolute; z-index: 19; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #2b4e3833; backdrop-filter: blur(3px); }
.project-timeline-project-directory.is-mobile { position: absolute; z-index: 20; top: 12px; bottom: 12px; left: 12px; width: min(290px, calc(100% - 24px)); height: auto; padding: 8px; border: 1px solid #cdddD1; border-radius: 16px; background: #f8fbf8fa; box-shadow: 0 16px 40px #264c3526; }
.project-timeline-project-directory.is-mobile .project-timeline-directory-head > button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: #64806e; font-size: 22px; }
.project-timeline-project-directory.is-mobile .project-timeline-directory-head > button:hover { background: #e4f0e8; color: #2c6d48; }
.project-timeline-create-menu { position: absolute; z-index: 18; display: grid; gap: 3px; width: 152px; padding: 6px; border: 1px solid #c8ded0; border-radius: 13px; background: #fbfefaf7; box-shadow: 0 10px 26px #254a3529; backdrop-filter: blur(12px); }
.project-timeline-create-menu button { display: flex; align-items: center; min-height: 42px; padding: 10px 14px; border: 0 !important; border-radius: 8px; background: transparent !important; color: #426a50 !important; font: inherit; font-size: 13px; cursor: pointer; }
.project-timeline-create-menu button:hover, .project-timeline-create-menu button:focus-visible { background: #e6f2e9 !important; color: #196746 !important; outline: none; }
.project-timeline-create-menu button:active { background: #d3e7db !important; }
.project-timeline-personal-card-main > strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: .01em;
  -webkit-line-clamp: 2;
}
.project-timeline-event .project-timeline-event-head {
  grid-row: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.project-timeline-event .project-timeline-event-title {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  color: #294735;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.project-timeline-event .project-timeline-event-title.is-voided { color: #77877d; text-decoration: line-through; text-decoration-thickness: 1px; }
.project-timeline-event .project-timeline-event-summary {
  grid-row: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-width: 0;
  max-height: 3.3em;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: #64776b;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
  white-space: normal;
}
.project-timeline-event.is-fact .project-timeline-event-summary.has-event-paragraphs { display: grid; grid-template-columns: minmax(0, 1fr); -webkit-line-clamp: unset; }
.project-timeline-event.is-fact .project-timeline-event-summary.has-event-paragraphs > span { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* The inset divider and single metadata row share the body edges. */
:is(.project-timeline-event, .project-timeline-personal-card-main) .project-timeline-event-footer {
  grid-row: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 24px;
  margin: 0;
  padding-top: 5px;
  border-top: 1px solid rgba(111, 144, 123, .16);
  box-sizing: border-box;
  line-height: 18px;
  white-space: nowrap;
}
:is(.project-timeline-event, .project-timeline-personal-card-main) .project-timeline-event-footer-meta {
  display: flex;
  flex: 1 1 0;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.project-timeline-event-footer-meta > :is(.project-timeline-draft, .project-timeline-personal-visibility-label) { flex: 0 0 auto; }
.project-timeline-event-footer-meta > .project-timeline-card-relation { flex: 0 1 auto; max-width: 100%; }
:is(.project-timeline-event, .project-timeline-personal-card-main) .project-timeline-event-indicators {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 18px;
  margin-left: auto;
  color: #799583;
}
:is(.project-timeline-event, .project-timeline-personal-card-main) .project-timeline-event-indicators > span { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 16px; height: 16px; }
:is(.project-timeline-event, .project-timeline-personal-card-main) .project-timeline-event-indicators svg { display: block; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.project-timeline-owner, .project-timeline-owner[class*="tone-"] {
  padding: 0;
  min-height: 19px;
  border-radius: 0;
  background: none;
  color: #75887d;
  font-size: 11px;
  font-weight: 500;
}
.project-timeline-owner::before { content: ""; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: #77a18a; flex-shrink: 0; }
:is(.project-timeline-event, .project-timeline-personal-card-main) .project-timeline-event-footer-meta > :is(.project-timeline-owner, .project-timeline-personal-owner) {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  min-height: 18px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  background: none;
  color: #54705e;
  font-size: 10px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.project-timeline-event .project-timeline-owner::before { display: none; content: none; }
.project-timeline-draft, .project-timeline-event-kind { font-weight: 500; font-size: 10px; min-height: 21px; padding: 0 7px; }
.project-timeline-event-footer .project-timeline-draft { min-height: 18px; padding-inline: 6px; }
.project-timeline-event-kind { background: #edf3ef; color: #75887d; }
.project-timeline-personal-card { border-color: #e3dccb; background: #fffcf5; overflow: visible; }
.project-timeline-personal-card-main { --timeline-card-footer-bg: #fffcf5; position: relative; height: calc(var(--timeline-card-height) - 2px); min-height: calc(var(--timeline-card-height) - 2px); border-radius: inherit; }
.project-timeline-personal-card-main:hover { --timeline-card-footer-bg: #fffaf0; background: #fffaf0; }
.project-timeline-personal-card-main:focus-visible { --timeline-card-footer-bg: #fff8e9; outline: 2px solid #b69753; outline-offset: -2px; background: #fff8e9; }
.project-timeline-personal-card-main > strong { color: #524735; }
.project-timeline-personal-card-main .project-timeline-event-footer-meta > .project-timeline-personal-owner { color: #8b7446; }
.project-timeline-personal-visibility-label { flex-shrink: 0; color: #a18d62; font-size: 10px; font-weight: 500; }
.project-timeline-personal-card-main > .project-timeline-personal-note-content { grid-row: 1 / 3; align-self: start; min-height: 3.3em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-height: 3.3em; overflow: hidden; overflow-wrap: anywhere; white-space: pre-line; font-weight: 500; }
.project-timeline-personal-card-main > .project-timeline-personal-source-title { grid-row: 1; line-height: 1.6; display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.project-timeline-personal-source-summary { grid-row: 2; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-width: 0; max-height: 3.3em; overflow: hidden; overflow-wrap: anywhere; color: #8b7c60; font-size: 12px; font-weight: 400; line-height: 1.65; }
.project-timeline-personal-card-main .project-timeline-event-indicators { color: #a28f68; }
.project-timeline-date-card {
  border: 1px solid #bfd4c6;
  border-radius: 16px;
  background: linear-gradient(155deg, #fff, #f4f9f5);
  box-shadow: 0 5px 16px #214d3207;
  backdrop-filter: none;
}
.project-timeline-date-card.is-today { border-color: #68ac8b; background: linear-gradient(155deg, #eef9f1, #fafdfb); box-shadow: inset 0 3px #52a581, 0 5px 18px #1c6a440a; }
.project-timeline-date-card time { color: #385244; font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.project-timeline-app :is(.project-timeline-date-card, .project-timeline-unit-node) time {
  display: grid;
  gap: 5px;
  justify-items: center;
  line-height: 1.35;
  white-space: nowrap;
}
.project-timeline-app .project-timeline-date-context { color: #788f80; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.project-timeline-app .project-timeline-date-value { display: block; white-space: nowrap; }
.project-timeline-canvas { user-select: none; -webkit-user-select: none; }
.project-timeline-app.is-panning .project-timeline-canvas,
.project-timeline-app.is-panning .project-timeline-canvas * { cursor: grabbing !important; }
.project-timeline-date-badge { background: #e5f2e9; color: #528269; font-weight: 500; }
.project-timeline-date-badge.is-private { color: #85998b; background: #eff4ef; }
.project-timeline-date-add { width: 38px; height: 38px; border-radius: 12px; box-shadow: none; }
.project-timeline-date-add.is-company { background: #188961; }
.project-timeline-date-add.is-personal { background: #ba9654; }
.project-timeline-date-add:active { filter: brightness(.92); }
.project-timeline-date-add small { display: none; }
.project-timeline-gap > button { box-shadow: 0 3px 12px #205b3520; }
.project-timeline-unit-node { border-radius: 12px; border-color: #c7dbcd; background: #fbfefb; box-shadow: 0 3px 12px #254a3508; }
.project-timeline-unit-count { font-weight: 500; }
.project-timeline-app :is(button, a):focus-visible { outline: 2px solid #2b9872; outline-offset: 3px; }

/* Form, read view, annotation and preview share a quiet light sheet. */
:is(.project-timeline-modal-layer, .project-timeline-annotation-layer, .project-timeline-preview-layer),
body:has(.project-timeline-modal-layer:not([hidden])) .linxi-oa-modal-layer:has(#linxiOaModalTitle) {
  --linxi-modal-text: #253e30;
  --linxi-modal-muted: #6f8276;
  --linxi-modal-line: #d5e3d9;
  --linxi-modal-danger: #b4484b;
  --linxi-modal-overlay-filter: blur(7px);
  background: #18382c40 !important;
  backdrop-filter: blur(7px) !important;
  -webkit-backdrop-filter: blur(7px) !important;
}
:is(.project-timeline-modal-layer, .project-timeline-annotation-layer, .project-timeline-preview-layer) > .linxi-oa-modal-card,
body:has(.project-timeline-modal-layer:not([hidden])) .linxi-oa-modal-card:has(#linxiOaModalTitle) {
  border: 1px solid #d6e4da !important;
  border-radius: 20px !important;
  background: linear-gradient(145deg, #fff, #f8fbf7) !important;
  color: #253e30 !important;
  box-shadow: 0 24px 80px #173a2929, 0 2px 8px #173a2910 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color-scheme: light;
}
.project-timeline-modal-layer > .project-timeline-modal { width: min(640px, calc(100vw - 40px)); }
:is(.project-timeline-modal-layer, .project-timeline-annotation-layer, .project-timeline-preview-layer) :is(.linxi-oa-modal-head, .linxi-oa-modal-actions),
body:has(.project-timeline-modal-layer:not([hidden])) .linxi-oa-modal-card:has(#linxiOaModalTitle) :is(.linxi-oa-modal-head, .linxi-oa-modal-actions) {
  border-color: #e1eae3 !important;
  background: #f7faf6 !important;
  padding-inline: 26px;
}
:is(.project-timeline-modal-layer, .project-timeline-annotation-layer, .project-timeline-preview-layer) .linxi-oa-modal-head { min-height: 72px; }
:is(.project-timeline-modal-layer, .project-timeline-annotation-layer, .project-timeline-preview-layer) .linxi-oa-modal-title { font-size: 17px; font-weight: 600; line-height: 1.5; white-space: normal; padding-block: 16px; }
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] .project-timeline-head-copy {
  display: grid;
  gap: 9px;
  min-width: 0;
  width: 100%;
  padding: 20px 40px 20px 0;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal, .project-timeline-preview-modal) .project-timeline-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal, .project-timeline-preview-modal) .project-timeline-title-line > .linxi-oa-modal-title { flex: 1 1 0; min-width: 0; }
:is(.project-timeline-modal, .project-timeline-annotation-modal, .project-timeline-preview-modal) .project-timeline-heading-spinner {
  display: inline-block;
  box-sizing: border-box;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  border: 1.5px solid #b9d2c2;
  border-top-color: #387e59;
  border-radius: 50%;
  animation: project-timeline-heading-spin .85s linear infinite;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal, .project-timeline-preview-modal) .project-timeline-heading-spinner[hidden] { display: none !important; }
@keyframes project-timeline-heading-spin { to { transform: rotate(360deg); } }
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] .project-timeline-head-copy .linxi-oa-modal-title {
  padding: 0;
  overflow: visible;
  overflow-wrap: anywhere;
  color: #234f39 !important;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: .01em;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] .project-timeline-head-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  min-width: 0;
  color: #647e6d !important;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal) .project-timeline-head-meta[hidden] { display: none !important; }
:is(.project-timeline-modal, .project-timeline-annotation-modal) .project-timeline-head-meta > span { overflow-wrap: anywhere; }
:is(.project-timeline-modal, .project-timeline-annotation-modal) .project-timeline-head-meta time { white-space: nowrap; font-variant-numeric: tabular-nums; }
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] .project-timeline-head-meta .project-timeline-head-state {
  padding: 1px 7px;
  border-radius: 5px;
  background: #f3e9d1;
  color: #896529 !important;
  font-size: 11px;
}
:is(.project-timeline-modal-layer, .project-timeline-annotation-layer) .linxi-oa-modal-body { padding: 25px 26px; }
:is(.project-timeline-modal-layer, .project-timeline-annotation-layer, .project-timeline-preview-layer) .linxi-oa-modal-close {
  top: 14px !important; right: 14px !important; width: 40px !important; height: 40px !important;
  color: #75887a !important; border: 0 !important; background: transparent !important; border-radius: 10px !important; box-shadow: none !important;
}
:is(.project-timeline-modal-layer, .project-timeline-annotation-layer, .project-timeline-preview-layer) .linxi-oa-modal-close:hover { color: #285f43 !important; background: #dcebe1 !important; }
:is(.project-timeline-modal-layer, .project-timeline-annotation-layer, .project-timeline-preview-layer) .linxi-oa-modal-close:active { color: #204e37 !important; background: #cddfd3 !important; }
:is(.project-timeline-modal-layer, .project-timeline-annotation-layer, .project-timeline-preview-layer) .linxi-oa-modal-close:focus-visible { outline: 2px solid #328260 !important; outline-offset: 2px; }
.project-timeline-form { gap: 20px; }
.project-timeline-modal[data-card-kind="project"] { width: min(780px, calc(100vw - 32px)) !important; max-width: 780px !important; }
.project-timeline-project-form-top { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 14px; align-items: start; }
.project-timeline-project-form-section, .project-timeline-project-section { display: grid; gap: 10px; min-width: 0; }
.project-timeline-project-form-section > header { display: flex; align-items: center; justify-content: space-between; min-height: 30px; gap: 8px; }
.project-timeline-modal :is(.project-timeline-project-form-section, .project-timeline-project-section) h3 { margin: 0; color: #53715e; font-size: 12px; font-weight: 500; line-height: 1.5; }
.project-timeline-project-form-section h3 small { margin-left: 4px; color: #8ca194; font-size: 11px; }
.project-timeline-modal .project-timeline-project-form-section > header > button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid #caddcf !important; border-radius: 8px; background: #f1f7f2 !important; color: #4c805d !important; font: inherit; font-size: 20px; cursor: pointer; }
.project-timeline-modal .project-timeline-project-form-section > header > button:hover { background: #deeee3 !important; color: #246740 !important; }
.project-timeline-modal :is([data-project-collaborators], [data-project-stages]) { display: grid; gap: 10px; min-width: 0; }
.project-timeline-collaborator-row { display: grid; grid-template-columns: minmax(110px, .7fr) minmax(0, 1.8fr) 30px; align-items: center; gap: 9px; }
.project-timeline-modal .project-timeline-project-form-section :is(input, select) { box-sizing: border-box; width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid #c9ddce !important; border-radius: 9px; color: #365a41 !important; background: #f7fbf7 !important; font: inherit; font-size: 12px; line-height: 1.5; box-shadow: inset 0 1px 2px #244c3110; }
.project-timeline-modal .project-timeline-project-form-section :is(input, select)::placeholder { color: #97ab9b !important; opacity: 1; }
.project-timeline-modal .project-timeline-project-form-section :is(input, select):focus { border-color: #4f9c70 !important; outline: 2px solid #79b89133; outline-offset: 0; background: #fbfefb !important; }
.project-timeline-modal .project-timeline-structure-remove { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0 !important; border-radius: 8px; background: transparent !important; color: #8c9f90 !important; font: inherit; font-size: 20px; cursor: pointer; }
.project-timeline-modal .project-timeline-structure-remove:hover { color: #a64e4e !important; background: #f6e9e7 !important; }
.project-timeline-modal :is(.project-timeline-structure-remove, .project-timeline-project-form-section > header > button):focus-visible { outline: 2px solid #629b76 !important; outline-offset: 1px; }
.project-timeline-stage-plan { display: grid; gap: 12px; padding: 12px; border: 1px solid #d3e3d6; border-radius: 12px; background: #f0f6f1; }
.project-timeline-stage-plan-head { display: grid; grid-template-columns: minmax(0, 1fr) 30px; align-items: center; gap: 8px; }
.project-timeline-stage-plan-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(110px, .9fr); gap: 10px; }
.project-timeline-stage-plan-fields > label { display: grid; min-width: 0; gap: 6px; }
.project-timeline-stage-plan-fields > label > span { color: #839786; font-size: 11px; }
.project-timeline-project-people { display: grid; margin: 0; padding: 0 13px; border: 1px solid #dae5dd; border-radius: 10px; background: #f6faf6; }
.project-timeline-project-people > div { display: grid; grid-template-columns: minmax(76px, .6fr) minmax(0, 2fr); gap: 14px; padding: 11px 0; color: #667b6b; font-size: 12px; line-height: 1.65; }
.project-timeline-project-people > div + div { border-top: 1px solid #e3ebe5; }
.project-timeline-project-people dt { color: #42624c; font-weight: 500; overflow-wrap: anywhere; }
.project-timeline-project-people dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.project-timeline-project-plans { display: grid; overflow: auto; border: 1px solid #d8e4db; border-radius: 11px; }
.project-timeline-project-plans > div { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(165px, 1.5fr) minmax(55px, .6fr); align-items: center; gap: 12px; padding: 12px 13px; background: #f6faf6; color: #728675; font-size: 11px; line-height: 1.6; }
.project-timeline-project-plans > div + div { border-top: 1px solid #e0e9e2; }
.project-timeline-project-plans strong { color: #476750; font-weight: 500; overflow-wrap: anywhere; }
.project-timeline-progress-parent { color: #63846d; font-size: 12px; line-height: 1.6; }
.project-timeline-modal:is([data-card-kind="project"], [data-card-kind="progress"]) .project-timeline-file-field {
  display: block;
  width: fit-content;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
}
.project-timeline-modal:is([data-card-kind="project"], [data-card-kind="progress"]) .project-timeline-edit-files:empty { display: none; }
/* Project and progress forms use light native controls, including option/calendar UI. */
.project-timeline-modal[data-linxi-modal-panel]:is([data-card-kind="project"], [data-card-kind="progress"]) :is(input, select, textarea, option) {
  color-scheme: light !important;
  color: #2b563c !important;
  -webkit-text-fill-color: #2b563c !important;
}
.project-timeline-modal[data-linxi-modal-panel]:is([data-card-kind="project"], [data-card-kind="progress"]) :is(input:not([type="file"]):not([type="hidden"]):not([type="checkbox"]), select, textarea) {
  box-sizing: border-box;
  min-width: 0;
  border: 1px solid #b9d0c0 !important;
  border-radius: 10px;
  background: #f7fbf7 !important;
  box-shadow: inset 0 1px 2px #254b3210 !important;
}
.project-timeline-modal[data-linxi-modal-panel]:is([data-card-kind="project"], [data-card-kind="progress"]) :is(input, textarea)::placeholder { color: #849a8c !important; -webkit-text-fill-color: #849a8c !important; opacity: 1; }
.project-timeline-modal[data-linxi-modal-panel]:is([data-card-kind="project"], [data-card-kind="progress"]) :is(input, select, textarea):hover:not(:disabled) { border-color: #88b39a !important; }
.project-timeline-modal[data-linxi-modal-panel]:is([data-card-kind="project"], [data-card-kind="progress"]) :is(input, select, textarea):focus { border-color: #35875b !important; outline: none; background: #f4fbf5 !important; box-shadow: 0 0 0 3px #3d98631d !important; }
.project-timeline-modal[data-linxi-modal-panel]:is([data-card-kind="project"], [data-card-kind="progress"]) :is(option, optgroup) { background: #fff !important; color: #2b563c !important; -webkit-text-fill-color: #2b563c !important; }
.project-timeline-modal[data-linxi-modal-panel]:is([data-card-kind="project"], [data-card-kind="progress"]) option:checked { background: #deeee3 !important; color: #1f603c !important; -webkit-text-fill-color: #1f603c !important; }
.project-timeline-modal[data-linxi-modal-panel]:is([data-card-kind="project"], [data-card-kind="progress"]) option:disabled { color: #92a397 !important; -webkit-text-fill-color: #92a397 !important; }
.project-timeline-modal[data-linxi-modal-panel]:is([data-card-kind="project"], [data-card-kind="progress"]) input::-webkit-calendar-picker-indicator { filter: none !important; opacity: .72; cursor: pointer; }
.project-timeline-modal[data-linxi-modal-panel]:is([data-card-kind="project"], [data-card-kind="progress"]) input::-webkit-date-and-time-value { color: #2b563c !important; -webkit-text-fill-color: #2b563c !important; text-align: left; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-form { gap: 18px; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-project-form-top { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-field > span:first-child,
.project-timeline-modal[data-card-kind="project"] .project-timeline-project-form-section h3 { color: #3c664a !important; font-size: 13px; font-weight: 600; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-field > span:first-child small,
.project-timeline-modal[data-card-kind="project"] .project-timeline-project-form-section h3 small { color: #518767; }
.project-timeline-modal[data-linxi-modal-panel][data-card-kind="project"] textarea[name="goal"] { min-height: 120px; height: 132px; max-height: 260px; padding: 11px 13px; font-size: 14px; line-height: 1.7; resize: vertical; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-project-deadline { max-width: 340px; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-plan-datetime { display: grid; grid-template-columns: minmax(0, 1fr) 74px; align-items: center; gap: 8px; min-width: 0; }
.project-timeline-modal[data-linxi-modal-panel][data-card-kind="project"] .project-timeline-plan-datetime :is(input, select) { width: 100%; min-width: 0; min-height: 42px; height: 42px; margin: 0; padding: 8px; font-size: 13px; line-height: 1.5; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-date-picker { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; height: 42px; box-sizing: border-box; padding: 8px 10px; border: 1px solid #b9d0c0; border-radius: 10px; color: #2b563c; background: #f7fbf7; box-shadow: inset 0 1px 2px #254b3210; cursor: pointer; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-date-picker:hover { border-color: #82b394; background: #edf6ef; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-date-picker:focus-within { border-color: #25865b; outline: 2px solid #25865b24; outline-offset: 1px; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-date-picker-value { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 400; line-height: 1.5; pointer-events: none; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-date-picker.is-empty .project-timeline-date-picker-value { color: #688674; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-date-picker > svg { flex: 0 0 14px; width: 14px; height: 14px; color: #537761; pointer-events: none; }
.project-timeline-modal[data-linxi-modal-panel][data-card-kind="project"] .project-timeline-date-picker > input[data-project-date-input] { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; opacity: 0 !important; cursor: pointer; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-date-picker > input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-date-picker:has(input:disabled) { opacity: .6; cursor: default; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-date-picker > input:disabled { cursor: default; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-stage-plan { gap: 12px; padding: 14px; border-color: #bad3c2; background: #edf5ef; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-stage-plan-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(100px, .64fr); gap: 12px; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-stage-plan-fields > label > span { color: #63816c; font-size: 12px; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-stage-plan-head input { font-weight: 500; background: #fff !important; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-collaborator-picker { min-width: 0; border: 1px solid #c7dccd; border-radius: 10px; background: #f5faf5; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-collaborator-picker > summary { min-height: 40px; box-sizing: border-box; padding: 10px 12px; border-radius: 9px; color: #396b49; font-size: 12px; line-height: 20px; cursor: pointer; list-style-position: inside; user-select: none; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-collaborator-picker > summary::marker { color: #709c7f; font-size: 10px; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-collaborator-picker > summary:hover { background: #e5f1e8; color: #215f39; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-collaborator-picker > summary:active { background: #d5e9dc; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-collaborator-picker > summary:focus-visible { outline: 2px solid #4d976a; outline-offset: 2px; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-collaborator-picker[open] > summary { border-radius: 9px 9px 0 0; border-bottom: 1px solid #dbe8df; background: #eaf4ec; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-collaborator-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; max-height: 208px; overflow: auto; padding: 8px; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-collaborator-options > label { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 38px; box-sizing: border-box; padding: 7px 9px; border: 1px solid transparent; border-radius: 8px; color: #4c6e55; font-size: 12px; line-height: 1.5; cursor: pointer; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-collaborator-options > label > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-collaborator-options > label:hover { background: #e6f1e9; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-collaborator-options > label:has(input:checked) { border-color: #b5d2bd; background: #dfeee3; color: #2c6440; }
.project-timeline-modal[data-linxi-modal-panel][data-card-kind="project"] .project-timeline-collaborator-options input[type="checkbox"] { appearance: auto !important; -webkit-appearance: checkbox !important; flex: 0 0 17px; width: 17px !important; min-width: 17px !important; height: 17px !important; min-height: 17px !important; margin: 0; padding: 0 !important; border: 1px solid #89ae96 !important; border-radius: 4px; background: #fff !important; box-shadow: none !important; accent-color: #278653; cursor: pointer; }
.project-timeline-modal[data-linxi-modal-panel][data-card-kind="project"] .project-timeline-collaborator-options input[type="checkbox"]:focus-visible { outline: 2px solid #408e60 !important; outline-offset: 2px; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-collaborator-row { grid-template-columns: minmax(66px, .45fr) minmax(0, 1.7fr) 30px; gap: 10px; padding: 9px 10px; border: 1px solid #d0e0d5; border-radius: 10px; background: #f0f7f1; }
.project-timeline-modal[data-card-kind="project"] .project-timeline-collaborator-row > strong { min-width: 0; overflow-wrap: anywhere; color: #3e6548; font-size: 12px; font-weight: 500; line-height: 1.55; }
.project-timeline-field > span:first-child { color: #536c5b; font-size: 12px; font-weight: 500; }
.project-timeline-field > span:first-child small { color: #94a598; font-size: 11px; }
.project-timeline-field :is(input:not([type="file"]), textarea, select) {
  color: #293e32 !important;
  background: #fff !important;
  border: 1px solid #d7e2da !important;
  border-radius: 10px;
  box-shadow: none !important;
  font-size: 15px;
  color-scheme: light;
}
.project-timeline-field textarea { line-height: 1.8; min-height: 172px; }
.project-timeline-field :is(input, textarea, select):focus {
  border-color: #62a184 !important;
  box-shadow: 0 0 0 3px #26875b12 !important;
}
.project-timeline-file-trigger { color: #63836d !important; background: #f1f6f1 !important; border: 1px dashed #c7d9ca !important; border-radius: 10px; }
.project-timeline-modal p.project-timeline-form-status { margin: 0; color: #ae4a4c !important; font-size: 12px; }
.project-timeline-form-status:empty { display: none; }
.project-timeline-modal.is-busy p.project-timeline-form-status { color: #678470 !important; }
.project-timeline-modal .project-timeline-detail { gap: 22px; }
.project-timeline-detail-description { min-height: 0; margin: 0; color: #3f5547; font-size: 15px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.project-timeline-personal-detail .project-timeline-detail-meta { gap: 12px; padding: 10px 13px; border-radius: 8px; background: #edf3ee; border-left: 3px solid #74a78b; }
.project-timeline-personal-detail .project-timeline-detail-meta :is(span, time), .project-timeline-personal-detail > time { color: #7a8e7e; font-size: 12px; font-weight: 500; background: none; padding: 0; }
:is(.project-timeline-source-block, .project-timeline-annotations) { border-color: #e0e9e1 !important; color: #7c9080; }
.project-timeline-source-block :is(span, strong) { color: #7c9080; font-weight: 500; }
:is(.project-timeline-modal, .project-timeline-annotation-modal) :is(.project-timeline-attachment-list, .project-timeline-existing-files, .project-timeline-annotation-attachments, .project-timeline-annotation-existing) button,
.project-timeline-selected-files > span {
  min-height: 46px; border: 1px solid #dde7df !important; border-radius: 10px;
  color: #45634f !important; background: #f5f9f4 !important; box-shadow: none !important;
}
:is(.project-timeline-attachment-list, .project-timeline-existing-files, .project-timeline-selected-files, .project-timeline-annotation-attachments, .project-timeline-annotation-existing) :is(small, strong) { color: inherit; font-weight: 500; }
.project-timeline-selected-files > span > button { color: #7a8b7e !important; background: transparent !important; border: 0 !important; }
:is(.project-timeline-modal-layer, .project-timeline-annotation-layer, .project-timeline-preview-layer) button.linxi-oa-modal-button,
body:has(.project-timeline-modal-layer:not([hidden])) .linxi-oa-modal-card:has(#linxiOaModalTitle) button.linxi-oa-modal-button {
  min-height: 40px !important; min-width: 76px; padding: 0 17px !important;
  border: 1px solid #d6e3d8 !important; border-radius: 10px !important;
  background: #f1f6f2 !important; color: #42654e !important;
  box-shadow: none !important; font-size: 13px !important; font-weight: 600 !important;
}
:is(.project-timeline-modal-layer, .project-timeline-annotation-layer, .project-timeline-preview-layer) button.linxi-oa-modal-button-primary,
body:has(.project-timeline-modal-layer:not([hidden])) .linxi-oa-modal-card:has(#linxiOaModalTitle) button.linxi-oa-modal-button-primary {
  background: #17855f !important; color: #fff !important; border-color: #17855f !important;
}
:is(.project-timeline-modal-layer, .project-timeline-annotation-layer) button.linxi-oa-modal-button-danger,
body:has(.project-timeline-modal-layer:not([hidden])) .linxi-oa-modal-card:has(#linxiOaModalTitle) button.is-danger {
  color: #b04e52 !important; background: #fff6f5 !important; border-color: #efd8d7 !important;
}
.project-timeline-modal-actions .project-timeline-business-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.project-timeline-modal-actions .linxi-oa-modal-button-cancel { margin-left: auto !important; }
/* Event read view only: annotation on the left, the owner's record actions on the right. */
.project-timeline-modal-actions > .project-timeline-detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
}
.project-timeline-detail-actions > .project-timeline-annotation-insert { flex: 0 0 auto; }
.project-timeline-detail-actions > .project-timeline-owner-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  margin-left: auto;
}
.project-timeline-detail-actions > .project-timeline-owner-actions:empty { display: none; }
.project-timeline-modal[data-linxi-modal-panel] button.project-timeline-annotation-retry {
  border: 1px solid #c4d9ca !important; color: #356b49 !important; background: #edf5ed !important; box-shadow: none !important; min-height: 36px !important; padding-inline: 12px !important; font-weight: 500 !important;
}
.project-timeline-modal button.project-timeline-annotation-row { border-color: #e0e8e0 !important; color: #4e6554 !important; background: #f6faf5 !important; }
.project-timeline-modal button.project-timeline-annotation-row:hover { border-color: #b6cebb !important; color: #4e6554 !important; background: #eef5ec !important; }
.project-timeline-modal .project-timeline-annotation-status { color: #718779; }
.project-timeline-modal .project-timeline-annotation-status.is-error { color: #ae4a4c; }
.project-timeline-modal .project-timeline-annotation-row :is(strong, p, small, time, span),
.project-timeline-annotation-detail :is(strong, p, time), .project-timeline-annotation-empty { color: #607868; }
.project-timeline-preview-body { background: #eef3ed !important; }
.project-timeline-preview-unsupported { color: #6a8170; }
.project-timeline-preview-unsupported :is(strong, span, p) { color: inherit; }
body:has(.project-timeline-modal-layer:not([hidden])) .linxi-oa-modal-card:has(#linxiOaModalTitle) button.linxi-oa-modal-button-danger { color: #b04e52 !important; background: #fff6f5 !important; border-color: #efd8d7 !important; }
/* Paired foreground and background states override the legacy white hover text. */
:is(.project-timeline-modal, .project-timeline-annotation-modal, .project-timeline-preview-modal)[data-linxi-modal-panel] button.linxi-oa-modal-button,
.project-timeline-modal[data-linxi-modal-panel] button.project-timeline-annotation-insert {
  min-height: 40px !important;
  padding: 0 17px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
.project-timeline-modal[data-linxi-modal-panel] button.project-timeline-annotation-insert {
  border: 1px solid #bed7c6 !important;
  background: #e8f2eb !important;
  color: #356b49 !important;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal, .project-timeline-preview-modal)[data-linxi-modal-panel] button.linxi-oa-modal-button:hover,
.project-timeline-modal[data-linxi-modal-panel] button.project-timeline-annotation-retry:hover,
body:has(.project-timeline-modal-layer:not([hidden])) .linxi-oa-modal-card:has(#linxiOaModalTitle) button.linxi-oa-modal-button:hover {
  background: #dcece1 !important;
  border-color: #a8c7b2 !important;
  color: #285a3c !important;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal, .project-timeline-preview-modal)[data-linxi-modal-panel] button.linxi-oa-modal-button:active,
.project-timeline-modal[data-linxi-modal-panel] button.project-timeline-annotation-retry:active,
body:has(.project-timeline-modal-layer:not([hidden])) .linxi-oa-modal-card:has(#linxiOaModalTitle) button.linxi-oa-modal-button:active {
  background: #cbdfd1 !important;
  border-color: #8daf99 !important;
  color: #214f35 !important;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal, .project-timeline-preview-modal)[data-linxi-modal-panel] button.linxi-oa-modal-button-primary:hover,
body:has(.project-timeline-modal-layer:not([hidden])) .linxi-oa-modal-card:has(#linxiOaModalTitle) button.linxi-oa-modal-button-primary:hover {
  background: #0e7451 !important;
  border-color: #0e7451 !important;
  color: #fff !important;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal, .project-timeline-preview-modal)[data-linxi-modal-panel] button.linxi-oa-modal-button-primary:active,
body:has(.project-timeline-modal-layer:not([hidden])) .linxi-oa-modal-card:has(#linxiOaModalTitle) button.linxi-oa-modal-button-primary:active {
  background: #085e41 !important;
  border-color: #085e41 !important;
  color: #fff !important;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] button.linxi-oa-modal-button-danger:hover,
body:has(.project-timeline-modal-layer:not([hidden])) .linxi-oa-modal-card:has(#linxiOaModalTitle) button:is(.linxi-oa-modal-button-danger, .is-danger):hover {
  background: #f9e6e2 !important;
  border-color: #d9aaa5 !important;
  color: #963f41 !important;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] button.linxi-oa-modal-button-danger:active,
body:has(.project-timeline-modal-layer:not([hidden])) .linxi-oa-modal-card:has(#linxiOaModalTitle) button:is(.linxi-oa-modal-button-danger, .is-danger):active {
  background: #efd3ce !important;
  border-color: #c88e86 !important;
  color: #843438 !important;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal, .project-timeline-preview-modal)[data-linxi-modal-panel] button.linxi-oa-modal-button:focus-visible,
.project-timeline-modal[data-linxi-modal-panel] button.project-timeline-annotation-retry:focus-visible,
body:has(.project-timeline-modal-layer:not([hidden])) .linxi-oa-modal-card:has(#linxiOaModalTitle) button.linxi-oa-modal-button:focus-visible {
  outline: 2px solid #328260 !important;
  outline-offset: 3px;
}

/* Deliberate, timeline-scoped specificity: the shared dark modal fields must
   not turn these light editors and action bars into transparent white areas. */
:is(.project-timeline-modal, .project-timeline-annotation-modal, .project-timeline-preview-modal)[data-linxi-modal-panel] > .linxi-oa-modal-head {
  background: linear-gradient(110deg, #e0eee5, #f2f7f3) !important;
  border-bottom: 1px solid #c8dccf !important;
  box-shadow: inset 0 3px #70ac8c;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal, .project-timeline-preview-modal)[data-linxi-modal-panel] > .linxi-oa-modal-actions {
  background: #eaf2ec !important;
  border-top: 1px solid #ccdcd0 !important;
  padding-block: 17px !important;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] .project-timeline-field > span:first-child {
  color: #355542;
  font-size: 12px;
  font-weight: 600;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] .project-timeline-field :is(input:not([type="file"]), textarea, select) {
  color: #294233 !important;
  border: 1px solid #b7cdbf !important;
  border-radius: 10px !important;
  background: #f4f8f4 !important;
  box-shadow: inset 0 1px 2px #244b3410 !important;
  padding: 12px 14px;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] .project-timeline-field :is(input, textarea, select):focus {
  border-color: #328663 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px #25805518 !important;
  outline: none;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] .project-timeline-file-field {
  padding: 16px;
  border: 1px dashed #aac6b5;
  border-radius: 12px;
  background: #edf4ee;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] .project-timeline-file-trigger {
  border: 1px solid #b3cbbd !important;
  background: #fff !important;
  color: #376a4d !important;
  padding-inline: 14px;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] .project-timeline-file-trigger:hover { background: #deede3 !important; border-color: #9abba7 !important; color: #285f40 !important; }
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] .project-timeline-file-trigger:active { background: #cde1d4 !important; border-color: #85ab94 !important; color: #214f35 !important; }
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] .project-timeline-file-field:focus-within .project-timeline-file-trigger { outline: 2px solid #328260 !important; outline-offset: 2px; }
.project-timeline-modal[data-linxi-modal-panel] .project-timeline-personal-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-timeline-modal[data-linxi-modal-panel] .project-timeline-personal-file-field { min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.project-timeline-modal[data-linxi-modal-panel] .project-timeline-personal-visibility { flex: 0 0 auto; width: auto; min-width: 72px; min-height: 38px; margin: 0; padding: 7px 25px 7px 11px; border: 1px solid #bad0c1 !important; border-radius: 9px; background-color: #eef5ef !important; color: #3d6a4e !important; font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1.5; cursor: pointer; }
.project-timeline-modal[data-linxi-modal-panel] .project-timeline-personal-visibility:hover { background-color: #deece2 !important; border-color: #91b39d !important; color: #285f40 !important; }
.project-timeline-modal[data-linxi-modal-panel] .project-timeline-personal-visibility:active { background-color: #cfe1d5 !important; }
.project-timeline-modal[data-linxi-modal-panel] .project-timeline-personal-visibility:focus-visible { outline: 2px solid #328260 !important; outline-offset: 2px; }
.project-timeline-modal[data-linxi-modal-panel] .project-timeline-personal-visibility:disabled { opacity: .6; cursor: wait; }
.project-timeline-modal[data-linxi-modal-panel] .project-timeline-head-meta .project-timeline-personal-visibility { min-height: 28px; padding-top: 3px; padding-bottom: 3px; font-size: 11px; border-radius: 7px; }
.project-timeline-detail-description, .project-timeline-annotation-detail > p {
  padding: 17px 18px;
  border: 1px solid #d0dfd3;
  border-radius: 12px;
  background: #fafcf9;
  color: #334d3d;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal) .project-timeline-attachment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal) .project-timeline-attachment-grid:empty { display: none; }
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] button.project-timeline-attachment-tile {
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  min-height: 54px;
  padding: 9px 10px !important;
  border: 1px solid #d6e3d9 !important;
  border-radius: 9px !important;
  background: #f2f7f3 !important;
  box-shadow: none !important;
  color: #426a52 !important;
  text-align: left;
  overflow: hidden;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal) .project-timeline-attachment-tile > svg {
  flex: 0 0 20px;
  width: 20px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal) .project-timeline-attachment-copy { display: grid; gap: 4px; flex: 1 1 0; min-width: 0; }
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] .project-timeline-attachment-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #35583f !important;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] .project-timeline-attachment-copy small { color: #7a8e80 !important; font-size: 10px; line-height: 1.3; }
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] button.project-timeline-attachment-tile:hover {
  background: #e4f0e8 !important;
  border-color: #a9c7b3 !important;
  color: #2c6241 !important;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] button.project-timeline-attachment-tile:active { background: #d4e6da !important; border-color: #91b79f !important; color: #245739 !important; }
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] button.project-timeline-attachment-tile:focus-visible { outline: 2px solid #328260 !important; outline-offset: 2px; }
.project-timeline-modal .project-timeline-annotations {
  gap: 0;
  padding-top: 0;
  border: 0 !important;
  border-top: 1px solid #dbe7de !important;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.project-timeline-modal .project-timeline-annotations[hidden] { display: none !important; }
.project-timeline-modal .project-timeline-annotation-list:not(:empty) { padding: 0; }
.project-timeline-modal .project-timeline-annotation-list { max-height: none; overflow: visible; gap: 0; }
.project-timeline-modal[data-linxi-modal-panel] button.project-timeline-annotation-row {
  box-sizing: border-box;
  grid-template-rows: 18px 20px;
  gap: 4px;
  height: 62px;
  min-width: 0;
  width: 100%;
  padding: 10px 8px !important;
  border: 0 !important;
  border-bottom: 1px solid #e3ebe5 !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: hidden;
}
.project-timeline-modal[data-linxi-modal-panel] button.project-timeline-annotation-row:hover,
.project-timeline-modal[data-linxi-modal-panel] button.project-timeline-annotation-row:focus-visible {
  background: #edf5ef !important;
  border-bottom-color: #ccdecf !important;
}
.project-timeline-modal[data-linxi-modal-panel] button.project-timeline-annotation-row:focus-visible { outline: 2px solid #429573; outline-offset: -2px; }
.project-timeline-modal .project-timeline-annotation-meta { min-width: 0; justify-content: flex-start; gap: 8px; overflow: hidden; line-height: 18px; }
.project-timeline-modal .project-timeline-annotation-meta strong { flex: 0 1 auto; max-width: 28%; min-width: 0; font-weight: 600; }
.project-timeline-modal .project-timeline-annotation-meta time { color: #8a9b8e; font-weight: 400; }
.project-timeline-modal .project-timeline-annotation-filenames { flex: 1 1 0; min-width: 0; color: #829588 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.project-timeline-modal .project-timeline-source-block { margin-top: -10px; padding-top: 0; border-top: 0; }
.project-timeline-modal[data-linxi-modal-panel] p.project-timeline-detail-description,
.project-timeline-annotation-modal[data-linxi-modal-panel] .project-timeline-annotation-detail > p {
  color: #334d3d !important;
}
.project-timeline-modal[data-card-kind="fact"] .project-timeline-fact-sources { display: grid; gap: 10px; min-width: 0; padding-top: 12px; border-top: 1px solid #dbe7de; }
.project-timeline-modal[data-card-kind="fact"] .project-timeline-fact-source { display: grid; gap: 5px; min-width: 0; padding: 11px 13px; border: 1px solid #d9e6dd; border-radius: 10px; background: #f4f8f4; }
.project-timeline-modal[data-linxi-modal-panel][data-card-kind="fact"] .project-timeline-fact-source > button { width: fit-content; max-width: 100%; min-height: 28px; padding: 2px 0 !important; border: 0 !important; border-radius: 3px !important; background: transparent !important; box-shadow: none !important; color: #376b4d !important; font: inherit; font-size: 13px; line-height: 1.6; font-weight: 500; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.project-timeline-modal[data-linxi-modal-panel][data-card-kind="fact"] .project-timeline-fact-source > button:hover { color: #1d6741 !important; text-decoration: underline; }
.project-timeline-modal[data-card-kind="fact"] .project-timeline-fact-source > button:focus-visible { outline: 2px solid #5a9d79 !important; outline-offset: 3px; }
.project-timeline-modal[data-card-kind="fact"] .project-timeline-fact-source > button:disabled { opacity: .55; cursor: wait; }
.project-timeline-modal .project-timeline-annotation-preview {
  display: block;
  min-width: 0;
  height: 20px;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  font-weight: 400;
}

@media (max-width: 720px) {
  .project-timeline-modal[data-card-kind="project"] .project-timeline-project-form-top { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .project-timeline-modal[data-card-kind="project"] .project-timeline-stage-plan-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .project-timeline-modal[data-card-kind="project"] .project-timeline-stage-plan-fields > label:last-child { grid-column: 1 / -1; }
  .project-timeline-modal[data-card-kind="project"] .project-timeline-plan-datetime { grid-template-columns: minmax(0, 1fr) 88px; }
  .project-timeline-modal[data-card-kind="project"] .project-timeline-date-picker-value { font-size: 16px; }
  .project-timeline-modal[data-linxi-modal-panel][data-card-kind="project"] .project-timeline-plan-datetime :is(input, select),
  .project-timeline-modal[data-linxi-modal-panel][data-card-kind="project"] textarea[name="goal"] { font-size: 16px !important; }
  .project-timeline-modal[data-card-kind="project"] .project-timeline-collaborator-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-timeline-modal[data-card-kind="project"] .project-timeline-collaborator-row { grid-template-columns: minmax(58px, .45fr) minmax(0, 1.5fr) 28px; gap: 7px; padding: 8px; }
  .project-timeline-modal .project-timeline-project-form-section :is(input, select) { font-size: 16px !important; }
  .project-timeline-project-form-top { grid-template-columns: minmax(0, 1fr) 100px; gap: 10px; }
  .project-timeline-stage-plan-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .project-timeline-stage-plan-fields > label:last-child { grid-column: 1 / -1; }
  .project-timeline-collaborator-row { grid-template-columns: minmax(85px, .8fr) minmax(0, 1.2fr) 28px; gap: 6px; }
  .project-timeline-project-plans > div { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; }
  .project-timeline-project-plans time { grid-row: 2; font-size: 10px; }
  .project-timeline-project-plans > div > span { grid-column: 2; grid-row: 1 / 3; }
  .project-timeline-app {
    --timeline-date-width: clamp(104px, 24vw, 128px);
    --timeline-link-gap: clamp(10px, 3vw, 18px);
    --timeline-card-height: 110px;
    --timeline-card-title-height: 19.2px;
    --timeline-card-body-height: 36.3px;
    --timeline-card-row-gap: 5px;
    --timeline-card-padding-inline: 10px;
  }
  .project-timeline-canvas { padding: 78px 12px 84px; }
  .project-timeline-view-controls { top: 10px; right: 10px; }
  .project-timeline-view-controls button { min-width: 40px; height: 40px; }
  .project-timeline-personal-card-main > strong { font-size: 12px; line-height: 1.65; }
  .project-timeline-personal-source-summary { font-size: 11px; }
  .project-timeline-event .project-timeline-event-head { gap: 6px; }
  .project-timeline-event .project-timeline-event-title { font-size: 12px; }
  .project-timeline-event.is-fact .project-timeline-event-title { font-size: 12px; }
  .project-timeline-event .project-timeline-event-summary { font-size: 11px; }
  :is(.project-timeline-event, .project-timeline-personal-card-main) .project-timeline-event-footer { gap: 6px; }
  :is(.project-timeline-event, .project-timeline-personal-card-main) .project-timeline-event-footer-meta { gap: 6px; }
  :is(.project-timeline-event, .project-timeline-personal-card-main) .project-timeline-event-footer-meta > :is(.project-timeline-owner, .project-timeline-personal-owner) { font-size: 9px; }
  :is(.project-timeline-event, .project-timeline-personal-card-main) .project-timeline-event-indicators { gap: 4px; }
  .project-timeline-owner, .project-timeline-owner[class*="tone-"] { font-size: 9px; }
  .project-timeline-event-kind { font-size: 9px; }
  .project-timeline-date-card { border-radius: 13px; }
  .project-timeline-date-card time { font-size: 15px; }
  .project-timeline-date-add { width: 44px; height: 44px; bottom: 7px; }
  .project-timeline-date-add.is-company { left: 4px; }
  .project-timeline-date-add.is-personal { right: 4px; }
  :is(.project-timeline-modal-layer, .project-timeline-annotation-layer, .project-timeline-preview-layer) { padding: 0; place-items: end center; }
  :is(.project-timeline-modal-layer, .project-timeline-annotation-layer, .project-timeline-preview-layer) > .linxi-oa-modal-card { width: 100%; max-height: 90dvh; border-radius: 20px 20px 0 0 !important; }
  :is(.project-timeline-modal-layer, .project-timeline-annotation-layer) .linxi-oa-modal-body { padding: 22px 20px; }
  :is(.project-timeline-modal-layer, .project-timeline-annotation-layer) .linxi-oa-modal-head { padding-inline: 20px; }
  :is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] .project-timeline-head-copy { padding-block: 18px; }
  :is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] .project-timeline-head-copy .linxi-oa-modal-title { font-size: 17px; }
  :is(.project-timeline-modal, .project-timeline-annotation-modal) .project-timeline-attachment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-timeline-field :is(input:not([type="file"]), textarea, select) { font-size: 16px; }
  .project-timeline-field textarea { min-height: 140px; }
  :is(.project-timeline-modal, .project-timeline-annotation-modal, .project-timeline-preview-modal)[data-linxi-modal-panel] button.linxi-oa-modal-button { min-height: 44px !important; min-width: 60px; padding-inline: 10px !important; }
  .project-timeline-modal-actions .project-timeline-business-actions { gap: 6px; }
  .project-timeline-modal-actions, .project-timeline-annotation-actions { padding-inline: 20px !important; }
}

@media (max-width: 520px) {
  .project-timeline-modal[data-card-kind="project"] .project-timeline-stage-plan-fields { grid-template-columns: minmax(0, 1fr); }
  .project-timeline-modal[data-card-kind="project"] .project-timeline-stage-plan { padding: 11px; }
  .project-timeline-modal[data-card-kind="project"] .project-timeline-project-deadline { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.project-timeline-modal-layer, .project-timeline-annotation-layer, .project-timeline-preview-layer) * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  :is(.project-timeline-modal, .project-timeline-annotation-modal, .project-timeline-preview-modal) .project-timeline-heading-spinner { animation-duration: 2.4s !important; }
}

/* Attachment editing remains local to the timeline form. */
:is(.project-timeline-modal, .project-timeline-annotation-modal) .project-timeline-edit-files {
  display: grid;
  gap: 7px;
  min-width: 0;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal) .project-timeline-edit-files:empty { display: none; }
:is(.project-timeline-modal, .project-timeline-annotation-modal) .project-timeline-edit-file {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px 10px 9px 14px;
  border: 1px solid #d3e1d6;
  border-radius: 11px;
  background: #f4f8f4;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal) .project-timeline-edit-file-name { flex: 1 1 0; min-width: 0; }
:is(.project-timeline-modal, .project-timeline-annotation-modal) .project-timeline-edit-file-name > span,
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] .project-timeline-edit-file-name > button {
  display: block;
  width: 100%;
  min-height: 28px;
  padding: 3px 0 !important;
  border: 0 !important;
  border-radius: 3px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #365744 !important;
  font-size: 13px !important;
  line-height: 22px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal) .project-timeline-edit-file > small { flex: 0 0 auto; color: #74877a; font-size: 11px; white-space: nowrap; }
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] .project-timeline-edit-file button.project-timeline-file-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  height: 30px;
  padding: 6px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #65806d !important;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal) .project-timeline-file-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] .project-timeline-edit-file button.project-timeline-file-icon:hover { background: #e3eee6 !important; color: #28734c !important; }
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] .project-timeline-edit-file button.project-timeline-file-icon:active { background: #cfe2d5 !important; color: #225b3b !important; }
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] .project-timeline-edit-file button.is-delete:hover { background: #f5e9e5 !important; color: #a25243 !important; }
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] .project-timeline-edit-file button.is-delete:active { background: #ecd5ce !important; color: #8d4134 !important; }
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] .project-timeline-edit-file-name > button:hover { background: #e2eee5 !important; color: #285f40 !important; }
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] .project-timeline-edit-file-name > button:active { background: #d0e3d6 !important; color: #214f35 !important; }
:is(.project-timeline-modal, .project-timeline-annotation-modal) .project-timeline-edit-file button:focus-visible { outline: 2px solid #5a9d79 !important; outline-offset: 2px; }
:is(.project-timeline-modal, .project-timeline-annotation-modal) .project-timeline-file-rename { display: flex; align-items: center; gap: 4px; min-width: 0; }
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] .project-timeline-file-rename input[type="text"] {
  flex: 1 1 0;
  min-width: 0 !important;
  width: 0;
  min-height: 30px !important;
  padding: 4px 7px !important;
  border: 1px solid #71a58a !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #294c37 !important;
  font-size: 13px !important;
  line-height: 20px !important;
}
:is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] .project-timeline-file-rename input[aria-invalid="true"] { border-color: #ae6050 !important; }
:is(.project-timeline-modal, .project-timeline-annotation-modal) .project-timeline-file-rename > span { flex: 0 0 auto; color: #74877a; font-size: 12px; }
@media (pointer: coarse) {
  :is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] .project-timeline-edit-file button.project-timeline-file-icon { flex-basis: 40px; width: 40px; min-width: 40px; min-height: 40px; height: 40px; }
  :is(.project-timeline-modal, .project-timeline-annotation-modal) .project-timeline-edit-file { gap: 5px; padding-inline: 10px 5px; }
  :is(.project-timeline-modal, .project-timeline-annotation-modal)[data-linxi-modal-panel] .project-timeline-file-rename input[type="text"] { font-size: 16px !important; }
}
