.project-dialog {width:min(1100px,calc(100vw - 64px));max-height:calc(100vh - 64px);padding:0;border:0;background:#fff;color:var(--ink,#242622);box-shadow:0 18px 70px #17151426;}
.project-dialog::backdrop {background:#24262242;}
.project-dialog,.project-dialog-mount {font:400 14px/1.45 var(--ui-font,var(--interface-font));}
:is(.project-dialog, .sheet-editor-dialog[data-project-editor], .project-action-dialog,
    .project-editor-page:has([data-project-editor])) :is(
  p, input, select, textarea, .project-name-editor, .project-dialog__client-location, .project-dialog__file,
  .project-dialog__notice, .project-recipient-summary, .project-dialog__chips li, .project-dialog__field
) {
  font-family:var(--work-body-font);
  font-size:var(--text-body);
}
.project-dialog>:is(form,section) {position:relative;max-height:calc(100vh - 64px);overflow:auto;padding:42px;}.project-dialog-mount>:is(form,section) {max-width:1100px;padding:28px 0;}
.project-dialog__intro {display:flex;align-items:flex-start;justify-content:space-between;gap:32px;padding-bottom:28px;border-bottom:1px solid #deded9;}.project-dialog__intro h2 {margin:0 0 10px;font-size:24px;line-height:1.2;font-weight:550;letter-spacing:-.03em;}.project-dialog__intro p,.project-dialog__hint,.project-dialog__file {margin:0;font-size:15px;}.project-dialog__intro p {max-width:650px;color:#5f625c;}
.project-dialog__dismiss {position:absolute;top:18px;right:18px;display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ink,#242622);}.project-dialog__dismiss:hover {background:#f0f0ef;}
.project-dialog button {font-family:inherit;cursor:pointer;}.project-dialog button:focus-visible,.project-dialog input:focus-visible,.project-dialog select:focus-visible {outline:2px solid var(--focus,#566787);outline-offset:3px;}.project-dialog__upload,.project-dialog__secondary,.project-dialog__submit {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 14px;border:1px solid #bfc1bb;border-radius:4px;background:#fff;color:var(--ink,#242622);font:500 16px/1.25 var(--ui-font,var(--interface-font));white-space:nowrap;}.project-dialog__upload:hover,.project-dialog__secondary:hover {background:#f4f4f1;}.project-dialog__submit {border-color:var(--blue,#aeb8d2);background:var(--blue,#aeb8d2);}.project-dialog__submit:hover {background:#9eaac8;}.project-dialog button:disabled {opacity:.55;cursor:default;}.project-dialog svg {width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.project-dialog__file,.project-dialog__error {margin:20px 0 0;padding:12px 0;border-bottom:1px solid #deded9;}.project-dialog__error {color:#8a3d31;}.project-dialog__section {border-bottom:1px solid #deded9;}.project-dialog__section-toggle {display:flex;align-items:center;justify-content:space-between;width:100%;padding:22px 0;border:0;background:transparent;color:var(--ink,#242622);font:550 18px/1.25 var(--ui-font,var(--interface-font));text-align:left;}.project-dialog__section-toggle span {font-size:22px;font-weight:400;}.project-dialog__section-toggle+div {padding:0 0 26px;}
.project-dialog__notice {grid-column:1/-1;margin:0;padding:10px 12px;border-left:2px solid var(--blue,#aeb8d2);background:#f5f6fa;color:var(--ink,#242622);font-size:14px;}
.project-dialog__grid,.project-dialog__compact-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 28px;}.project-dialog__field {display:grid;gap:7px;min-width:0;color:#585c55;font-size:14px;}.project-dialog__field b {color:#8a3d31;}.project-dialog__field input,.project-dialog__field select {width:100%;min-width:0;padding:8px 0;border:0;border-bottom:1px solid #bfc1bb;border-radius:0;background:transparent;color:var(--ink,#242622);font:400 16px/1.35 var(--ui-font,var(--interface-font));}.project-dialog__field input:focus,.project-dialog__field select:focus {outline:0;border-bottom:2px solid var(--ink,#242622);padding-bottom:7px;}
.project-date-field {position:relative;}.project-date-field__control {display:grid;grid-template-columns:minmax(0,1fr) 32px;align-items:center;border-bottom:1px solid #bfc1bb;}.project-date-field__control input {border-bottom:0;}.project-date-field__control:focus-within {border-bottom:2px solid var(--ink,#242622);}.project-date-field__toggle {display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ink,#242622);}.project-date-field__toggle svg,.project-date-picker header svg {width:16px;height:16px;}.project-date-field__toggle:hover {background:#f4f2ef;}.project-date-picker {position:absolute;z-index:4;top:calc(100% + 10px);left:0;width:min(312px,calc(100vw - 48px));padding:18px;background:#fff;border:1px solid #deded9;color:var(--ink,#242622);}.project-date-field[data-project-date-placement="up"] .project-date-picker {top:auto;bottom:calc(100% + 10px);}.project-date-picker header {display:grid;grid-template-columns:32px minmax(0,1fr) 32px;align-items:center;gap:8px;margin-bottom:16px;text-align:center;}.project-date-picker header strong {font-family:var(--ui-font);font-size:var(--calendar-month-size);font-weight:var(--title-weight,550);letter-spacing:-.01em;}.project-date-picker header button {display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:transparent;}.project-date-picker header button:hover {background:#f4f2ef;}.project-date-picker__weekdays,.project-date-picker__days {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;}.project-date-picker__weekdays {margin-bottom:8px;color:#625e59;text-align:center;font-size:var(--calendar-label-size);font-weight:600;line-height:20px;}.project-date-picker__days > span {aspect-ratio:1;box-sizing:border-box;border:1px solid #eeeae6;border-radius:50%;}.project-date-picker__day {display:grid;aspect-ratio:1;width:100%;padding:0;border:0;border-radius:50%;background:#f4f2ef;place-items:center;color:inherit;font:400 var(--calendar-label-size)/1 var(--ui-font,var(--interface-font));font-variant-numeric:tabular-nums;}.project-date-picker__day:hover {background:#e8e4df;}.project-date-picker__day[aria-current="date"] {box-shadow:inset 0 0 0 1.5px #657699;font-weight:700;}.project-date-picker__day[aria-pressed="true"] {background:var(--selection-fill,#aeb8d2);color:#171514;}.project-date-picker__day[aria-current="date"][aria-pressed="true"] {box-shadow:none;}@media (max-width:700px){.project-date-picker {right:0;left:auto;}}
.project-dialog__services {display:grid;gap:18px;margin:26px 0 18px;}.project-dialog__service {padding:20px;border:1px solid #deded9;}.project-dialog__service>div:first-child {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;font-size:16px;}.project-dialog__plain {display:inline-flex;align-items:center;gap:6px;padding:0;border:0;background:transparent;color:#515f7d;font-size:14px;text-decoration:underline;text-underline-offset:3px;}.project-dialog__plain svg {width:15px;height:15px;}.project-dialog__members {display:grid;gap:12px;margin:22px 0 0;padding:18px;border:1px solid #deded9;}.project-dialog__members legend {padding:0 5px;font-size:15px;font-weight:550;}.project-dialog__members label {display:flex;gap:9px;align-items:flex-start;font-size:15px;}.project-dialog input[type="checkbox"],.project-dialog input[type="radio"] {width:17px;height:17px;margin:2px 0 0;accent-color:#6a7898;}
.project-dialog__email {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:end;margin-top:22px;}.project-dialog__chips {display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 0;padding:0;list-style:none;}.project-dialog__chips li {display:flex;align-items:center;gap:7px;padding:7px 10px;background:#eef0f5;font-size:14px;}.project-dialog__chips button {display:grid;place-items:center;width:20px;height:20px;padding:0;border:0;background:transparent;}.project-dialog__chips svg {width:14px;height:14px;}.project-dialog__actions {display:flex;align-items:center;justify-content:space-between;gap:22px;padding:28px 0 0;}.project-dialog__actions p {margin:0;color:#5f625c;font-size:15px;}
@media (max-width:700px) {.project-dialog {width:calc(100vw - 32px);max-height:calc(100vh - 32px);}.project-dialog>:is(form,section) {max-height:calc(100vh - 32px);padding:24px;}.project-dialog__intro {display:grid;gap:18px;}.project-dialog__upload {justify-self:start;}.project-dialog__grid,.project-dialog__compact-fields,.project-dialog__email {grid-template-columns:1fr;}.project-dialog__email {gap:12px;}.project-dialog__secondary {justify-self:start;}.project-dialog__actions {align-items:flex-start;flex-direction:column-reverse;}}



/* Tagebuch owns the tile sizes, icon buttons and secondary circular action. */
.project-dialog--quick {
  --quick-label-width:clamp(226px,18vw,246px);
  width:min(1200px,calc(100vw - 80px));border:0;border-radius:0;box-shadow:none;
}
.project-dialog--quick > :is(form,section) {padding:clamp(32px,4vw,56px);scrollbar-width:thin;}
.project-dialog--quick > form {
  --quick-title-size:var(--text-title);
}
.project-dialog__quick-title {
  display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 36px;
}
.project-dialog--quick .project-dialog__quick-title h2 {
  margin:0;font:550 var(--quick-title-size,var(--text-section))/1.3 var(--ui-font);letter-spacing:-.02em;
}
.project-dialog--quick svg {stroke-width:var(--icon-stroke);}
.project-dialog__quick-body {display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:clamp(48px,6vw,80px);align-items:start;}
.project-dialog__quick-fields {min-width:0;display:grid;gap:20px;align-content:start;}
.project-dialog__quick-fields > .project-dialog__field,
.project-dialog--quick .project-dialog__section-toggle,
.project-dialog--quick .project-dialog__line {min-height:44px;}
.project-dialog__quick-fields > .project-dialog__field,
.project-dialog--quick .project-dialog__line {
  display:grid;grid-template-columns:var(--quick-label-width) minmax(0,1fr);align-items:center;gap:16px;
}
.project-dialog__quick-fields > .project-dialog__field > span,
.project-dialog--quick .project-dialog__line > span,
.project-dialog--quick .project-dialog__section-toggle {
  font:500 var(--text-section)/1.3 var(--ui-font);color:var(--ink);
}

.project-dialog--quick {font-size:var(--text-body);color:var(--ink);}
.project-dialog--quick .project-dialog__field,
.project-dialog--quick .project-dialog__field :is(input,select,textarea),
.project-dialog--quick .project-dialog__chips li,
.project-dialog--quick .project-dialog__members :is(label,legend),
.project-dialog--quick .project-dialog__caption,
.project-dialog--quick .project-dialog__error {font:400 var(--text-body)/1.45 var(--ui-font);}
/* The hidden text sets the row height as its content, width or font changes. */
:is(.project-dialog--quick,.project-review) .project-dialog__line > .project-name-editor {
  position:relative;display:block;min-width:0;font:400 var(--text-body)/1.45 var(--ui-font);
}
.project-name-editor::after {
  content:attr(data-value) " ";visibility:hidden;display:block;min-height:38px;
  padding:8px 0;border-bottom:1px solid transparent;white-space:pre-wrap;overflow-wrap:anywhere;
}
:is(.project-dialog--quick,.project-review) .project-name-editor > textarea {
  position:absolute;inset:0;box-sizing:border-box;width:100%;height:100%;min-width:0;
  margin:0;padding:8px 0;border:0;border-radius:0;border-bottom:1px solid #bfc1bb;
  resize:none;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:transparent;color:var(--ink);
}
:is(.project-dialog--quick,.project-review) .project-name-editor > textarea:focus-visible {outline:0;border-bottom:2px solid var(--ink);padding-bottom:7px;}
.project-dialog--quick .project-dialog__error {color:var(--ink);margin:8px 0;padding:0;border:0;}
.project-dialog--quick .project-dialog__recipient-choices {margin:8px 0 8px calc(var(--quick-label-width) + 16px);padding:0;border:0;min-width:0;}
.project-dialog__recipient-choices legend {color:var(--muted);padding:0;margin:0 0 8px;}
.project-dialog__recipient-choices label {display:flex;align-items:baseline;gap:8px;margin:8px 0;overflow-wrap:anywhere;}
.project-dialog__recipient-choices label input {flex:none;}
.project-dialog--quick .project-dialog__address {display:block;font:inherit;color:var(--muted);text-align:left;margin-top:2px;}
.project-dialog--quick .project-dialog__client-value {overflow-wrap:anywhere;text-align:left;font-weight:400;}

.project-dialog--quick .project-dialog__field input:focus-visible {outline:0;border-color:var(--ink);}
.project-dialog--quick .project-dialog__section {border:0;}
.project-dialog--quick .project-dialog__section-toggle {width:fit-content;padding:0;justify-content:flex-start;gap:8px;overflow-wrap:anywhere;}

.project-dialog__client-contact,.project-dialog__client-location {margin:4px 0 0 calc(var(--quick-label-width) + 16px);}
.project-dialog__client-location {color:var(--muted);font:400 var(--text-body)/1.45 var(--ui-font);overflow-wrap:anywhere;}
.project-dialog__client-contact summary {color:var(--muted);font:400 var(--text-body)/1.45 var(--ui-font);list-style:none;cursor:pointer;}
.project-dialog__client-contact summary::-webkit-details-marker {display:none;}
.project-dialog__client-contact summary:hover {text-decoration:underline;}
.project-dialog__client-contact[open] > .project-dialog__field {margin-top:12px;}
.project-dialog__quick-footer {
  display:flex;justify-content:flex-end;margin-top:16px;
}
.project-dialog__team {min-width:0;}
.project-team-help {margin:20px 0 0;}
.project-dialog--quick .project-team-help {margin-inline-start:calc(var(--quick-label-width) + 16px);}
@media (max-width:660px) {.project-dialog--quick .project-team-help {margin-inline-start:0;}}
.project-dialog--quick form > .project-dialog__team {margin-top:24px;}
@media (min-width:661px) {
  /* Center the fields; the separate save row extends below them. */
  .project-dialog--quick {
    translate:0 clamp(0px,calc(50dvh - 50% - 32px),calc((var(--context-tile-size,96px) + 16px) / 2));
  }
  /* Match the original team baseline, centered against a tile-height row. */
  .project-dialog--quick form > .project-dialog__team {
    padding-block-start:calc((var(--context-tile-size,96px) - 44px) / 2);
  }
}
.project-dialog__team-input {display:grid;grid-template-columns:minmax(0,1fr) 120px 32px;align-items:end;gap:8px;max-width:560px;}
.project-dialog--quick .project-dialog__team-input {width:min(100%,calc(var(--quick-label-width) + 16px + 32ch + 168px));max-width:none;}
.project-dialog__team-input + .project-dialog__team-input {margin-top:4px;}
.project-dialog__team-input .project-dialog__add-address {flex:none;width:30px;height:30px;border-radius:50%;padding:0;background:#171514;color:#fff;}
.project-dialog__team-input .project-dialog__add-address:hover {background:#373a34;}
.project-dialog__role {display:grid;gap:7px;min-width:0;color:var(--muted);font:400 var(--text-body)/1.45 var(--ui-font);}
.project-dialog__role select {width:100%;min-width:0;height:38px;padding:8px 0;border:0;border-bottom:1px solid #bfc1bb;border-radius:0;background:transparent;color:var(--ink);font:400 var(--text-body)/1.45 var(--ui-font);}
.project-dialog__role select:focus-visible {outline:0;border-bottom:2px solid var(--ink);}
/* Native contact suggestions should share the paper and ink of the field. */
:is(.project-dialog,.project-dialog-mount) :is(input,textarea,select):is(:autofill,:-webkit-autofill) {
  background-color:#fff !important;box-shadow:0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color:var(--ink) !important;caret-color:var(--ink);
}
.project-dialog--quick .project-dialog__save {--pair-tile:var(--context-tile-size,96px);margin:0;}
.project-dialog__team .project-dialog__line {width:100%;}
.project-dialog--quick .project-dialog__team .project-dialog__error {margin-inline-start:calc(var(--quick-label-width) + 16px);}
@media(max-width:660px) {
  .project-dialog--quick {--quick-label-width:134px;}
}
.project-dialog--quick .project-dialog__compact-fields {grid-template-columns:1fr;gap:12px;}
.project-dialog__email {grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;margin-top:8px;}
.project-dialog__add-address {height:36px;width:36px;display:grid;place-items:center;background:transparent;color:var(--ink);border:0;}
.project-dialog__add-address:hover {background:#f2f3f5;}
.project-dialog__chips li {max-width:100%;padding:8px 12px;font-size:16px;color:var(--ink);}
.project-dialog__chips li span {min-width:0;overflow-wrap:anywhere;}
.project-dialog__chips li button {width:28px;height:28px;flex:none;}
.project-dialog--quick .project-dialog__members {margin-top:12px;padding:0;border:0;}
.project-dialog--quick .project-dialog__members legend {padding:0;margin-bottom:8px;}
.project-dialog--quick .project-dialog__pair {
  --pair-tile:var(--context-tile-size,96px);
  display:grid;grid-template-columns:minmax(var(--pair-tile),1fr);justify-items:end;align-items:start;row-gap:10px;
}
.project-dialog--quick .home-tile {font-family:var(--cta-font);}
.project-dialog__caption {grid-column:1/-1;max-width:100%;margin:0;color:var(--muted);font:400 var(--text-body)/1.45 var(--ui-font);}
.project-dialog__quick-import {justify-self:end;min-width:0;width:100%;max-width:210px;}
.project-dialog__quick-import .project-dialog__caption {text-align:right;}
.project-dialog__quick-import .project-dialog__file {overflow-wrap:anywhere;}
@media(max-width:660px) {
  .project-dialog--quick {width:calc(100vw - 20px);}
  .project-dialog--quick > :is(form,section) {padding:24px;}
  .project-dialog__quick-body {grid-template-columns:minmax(0,1fr);gap:24px;}
  .project-dialog__team-input,.project-dialog--quick .project-dialog__team-input {width:100%;grid-template-columns:minmax(0,1fr) 104px 30px;}
  :is(.project-dialog--quick, .project-review, .sheet-editor-dialog) .project-dialog__team-input > .project-dialog__line {
    grid-template-columns:minmax(0,1fr);
    align-content:end;
    gap:7px;
  }
  .project-dialog--quick .project-dialog__team :is(.project-team-help, .project-dialog__error) {margin-inline-start:0;}
}

/* The full project editor uses the same action tiles as the diary shortcut. */
.project-editor-page {container:project-editor / inline-size;}
.project-dialog-mount > form.project-review {
  flex:1;display:grid;max-width:none;padding:0;
  grid-template-columns:minmax(0,1fr) max-content;
  grid-template-areas:"sections actions";
  gap:32px clamp(28px,4vw,72px);
}
.project-review__actions {
  grid-area:actions;align-self:end;justify-self:end;
  position:sticky;bottom:calc(var(--footer-height) + var(--work-action-inset));
  margin-block-end:var(--work-action-lift);
  display:grid;justify-items:end;gap:12px;
}
.project-review__body {grid-area:sections;display:flex;flex-direction:column;min-width:0;}
.project-review__help {
  display:flex;align-items:flex-start;gap:16px 32px;
  margin-block-start:auto;padding-block-start:40px;
}
.project-review__help > .workspace-help {margin:0;min-width:0;}
@container project-editor (max-width:405px) {
  .project-review__help {flex-direction:column;}
}
.project-review__actions .diary-quick-actions {margin:0;}
.project-review__sections {min-width:0;}
.project-review .project-dialog__section {
  position:relative;display:grid;align-items:start;
  grid-template-columns:minmax(184px,24%) minmax(0,1fr) 18px;
  column-gap:clamp(12px,2vw,32px);padding:12px 0;
  border:0;border-top:1px solid var(--blue);
}
.project-review .project-dialog__section:last-child {border-bottom:1px solid var(--line);}
.project-review :is(.project-dialog__section-toggle,.project-review__section-title) {
  grid-area:1 / 1;min-height:36px;margin:0;padding:3px 0;
  font:550 var(--work-section-size)/1.3 var(--ui-font);letter-spacing:-.025em;
}
.project-review .project-dialog__section-toggle[aria-expanded="false"] {grid-column:1 / -1;padding-right:32px;}
.project-review .project-dialog__section-toggle > span {position:absolute;right:0;top:12px;height:36px;display:grid;place-items:center;}
.project-review .project-dialog__section-toggle svg {width:16px;height:16px;color:var(--muted);}
.project-review :is(.project-dialog__section-toggle + div,.project-review__section-fields) {grid-area:1 / 2;min-width:0;padding:0;}
.project-review .project-dialog__grid {grid-template-columns:minmax(0,1fr);gap:0;}
.project-review .project-dialog__field {
  grid-template-columns:minmax(116px,min(38%,226px)) minmax(0,1fr);
  align-items:center;gap:12px;min-height:36px;color:var(--muted);
  font:400 var(--text-body)/1.45 var(--work-body-font);
}
.project-review .project-dialog__field :is(input,select) {
  min-height:36px;padding:7px 0;border-bottom:1px solid var(--line);
  color:var(--ink);font:inherit;
}
.project-review .project-dialog__field:has(> select) {position:relative;}
.project-review .project-dialog__field > select {appearance:none;padding-inline-end:24px;}
.project-review .project-dialog__field > select + .ui-icon {
  position:absolute;right:0;bottom:10px;width:16px;height:16px;color:var(--muted);pointer-events:none;
}
.project-review .project-dialog__field :is(input,select):focus {border-bottom-color:var(--ink);}
.project-review .project-name-editor {align-self:center;color:var(--ink);}
.project-review .project-name-editor::after {box-sizing:border-box;min-height:36px;padding:7px 0;}
.project-review .project-name-editor > textarea {padding:7px 0;border-color:var(--line);}
.project-review .project-dialog__file,.project-review .project-dialog__error,
.project-review [role="status"] {padding:0;margin:0 0 12px;border:0;overflow-wrap:anywhere;color:var(--muted);font-size:var(--text-body);}
.project-review .project-dialog__services {gap:12px;margin:12px 0;}
.project-review .project-dialog__services:empty {display:none;}
.project-review .project-dialog__service {padding:12px 0 0;border:0;border-top:1px solid var(--line);}
.project-review .project-dialog__service>div:first-child {margin-bottom:4px;font-size:var(--text-body);}
.project-review .project-dialog__secondary {padding-inline:0;border:0;background:none;color:var(--ink);font-size:var(--text-body);text-decoration:underline;text-underline-offset:3px;}
.project-review .project-dialog__recipient-choices,.project-review .project-dialog__members {min-width:0;display:grid;gap:8px;margin:0 0 12px;padding:0;border:0;}
.project-review :is(.project-dialog__recipient-choices,.project-dialog__members) legend {padding:0;margin:0 0 8px;font-weight:550;font-size:var(--text-body);}
.project-review .project-dialog__recipient-choices label {display:flex;align-items:baseline;gap:8px;}
.project-review .project-dialog__recipient-choices .project-dialog__address {display:block;color:var(--muted);}
.project-review .project-dialog__email {grid-template-columns:minmax(0,1fr) auto;align-items:center;max-width:560px;margin:0;gap:12px;}
.project-review .project-dialog__add-address {display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:#171514;color:white;}
.project-review .project-dialog__add-address svg {width:16px;height:16px;}
.project-review .project-dialog__members {margin-top:16px;}
.project-review [hidden] {display:none !important;}
@container project-editor (max-width:1020px) {
  .project-review .project-dialog__section {grid-template-columns:minmax(0,1fr);}
  .project-review :is(.project-dialog__section-toggle,.project-review__section-title) {grid-area:auto;padding-right:28px;}
  .project-review :is(.project-dialog__section-toggle + div,.project-review__section-fields) {grid-area:auto;padding:4px 20px 2px 0;}
}
@container project-editor (max-width:720px) {
  .project-dialog-mount > form.project-review {grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr;grid-template-areas:"sections" "actions";gap:24px;}
  .project-review__actions {position:static;}
  .project-review :is(.project-dialog__section-toggle + div,.project-review__section-fields) {padding-right:0;}
}
@container project-editor (max-width:390px) {
  .project-review .project-dialog__field {grid-template-columns:minmax(0,1fr);gap:0;align-items:start;padding:4px 0;}
}

.project-recipient-summary {
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
  min-width:0;padding:7px 0;font:400 var(--text-body)/1.5 var(--ui-font);
}
.project-recipient-summary > div {min-width:0;overflow-wrap:anywhere;}
.project-recipient-summary strong {font-weight:550;}
.project-recipient-summary span {display:block;}
.project-recipient-choice {margin-bottom:8px;}

.project-recipient-summary button.project-edit-icon {padding:0;border:0;background:transparent;}
.project-recipient-summary .project-edit-icon .ui-icon {width:16px;height:16px;}

/* Optional recipient and order data share the existing form's text scale and columns. */
.project-dialog__details {min-width:0;grid-column:1/-1;}
.project-dialog__details > summary {
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  min-height:36px;padding:7px 0;box-sizing:border-box;list-style:none;cursor:pointer;
  color:var(--ink);font:400 var(--text-body)/1.45 var(--ui-font);
}
.project-dialog__details > summary::marker {content:"";}
.project-dialog__details > summary::-webkit-details-marker {display:none;}
.project-dialog__details > summary .ui-icon {width:16px;height:16px;flex:none;color:var(--muted);}
.project-dialog__details[open] > summary .ui-icon {transform:rotate(180deg);}

.additional-invoice-fields > summary {
  width:fit-content;cursor:pointer;padding:8px 0;color:var(--ink);
  font:500 var(--text-body)/1.45 var(--ui-font);
}
.additional-invoice-fields {margin-top:12px;}
.additional-invoice-fields[open] > .field-grid {margin-block:8px;}

/* On a narrow working screen the fields scroll between the heading and actions. */
@media (max-width:600px) and (min-height:540px) {
  body:has(.project-editor-page) .main-shell {display:flex;flex-direction:column;height:100dvh;min-height:0;}
  body:has(.project-editor-page) .page-header {flex:none;}
  body:has(.project-editor-page) #app {flex:1;min-height:0;}
  .project-editor-page,.project-editor-page > .project-dialog-mount {min-height:0;}
  .project-dialog-mount > form.project-review {
    min-height:0;grid-template-rows:minmax(0,1fr) auto;row-gap:16px;
  }
  .project-review__body {min-height:0;overflow:auto;overscroll-behavior:contain;}
  .project-review__actions {margin-block-end:0;}
}

/* The right column begins with Team at the top of the form. */
.project-create-page .project-review :is(.project-dialog__secondary,.project-dialog__plain) {
  display:inline-flex;align-items:center;justify-content:center;justify-self:start;gap:6px;
  min-height:32px;padding:4px 10px;border:1px solid var(--line);border-radius:4px;
  background:white;color:var(--ink);font:inherit;text-decoration:none;
}
.project-create-page .project-review :is(.project-dialog__secondary,.project-dialog__plain):hover {border-color:var(--ink);}
.project-create-page .project-review :is(.project-dialog__secondary,.project-dialog__plain) svg {width:14px;height:14px;}
@container project-editor (min-width:940px) {
  .project-create-page .project-dialog__section-toggle {padding-inline-end:24px;}
  .project-create-page .review-layout__topics .project-dialog__section:nth-child(even) {margin-block-start:0;}
  .project-create-page .review-layout__topics .project-dialog__section:first-child {margin-block-start:36px;}
  .project-create-page .project-dialog__section:nth-child(odd) > .project-dialog__section-toggle {
    display:block;text-align:end;
  }
}
