/* Module layout; shared portal header, rail, buttons, cards and theme variables remain in use. */
#development-requests-view, #panel-devqueue {
  font-family: "Segoe UI", Arial, sans-serif;
  --bg:#f3f6fa;--surface:#fff;--text:#203141;--muted:#5e7182;--border:#dfe8ef;--accent:#087cba;
  --dr-upload-bg:#f0f6fb;
  --dr-blue-bg: #e8f3fb; --dr-blue-ink: #2676a5;
  --dr-yellow-bg: #fff4df; --dr-yellow-ink: #87621b;
  --dr-purple-bg: #f0ebff; --dr-purple-ink: #705399;
  --dr-green-bg: #e6f7eb; --dr-green-ink: #287349;
  --dr-gray-bg: #eef0f4; --dr-gray-ink: #5e6876;
  --dr-red-bg: #fdebea; --dr-red-ink: #a53e3b;
}
[data-theme="dark"] #development-requests-view, [data-theme="dark"] #panel-devqueue {
  --bg:#15171d;--surface:#1e2128;--text:#e5eaf0;--muted:#acb9c5;--border:#343d47;--accent:#65b8eb;
  color-scheme: dark;
  --dr-upload-bg:#192a38;
  --dr-blue-bg: #18374b; --dr-blue-ink: #98d0f4;
  --dr-yellow-bg: #44371f; --dr-yellow-ink: #f2d18c;
  --dr-purple-bg: #362b4e; --dr-purple-ink: #c7b6ef;
  --dr-green-bg: #1e3e30; --dr-green-ink: #a1dfb7;
  --dr-gray-bg: #303742; --dr-gray-ink: #c3cbd6;
  --dr-red-bg: #482a2d; --dr-red-ink: #f3b2b2;
}
.dr-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dr-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--border)}
.dr-list-toolbar>.spec-subtabs{margin:0;padding:0;background:none;border:0;gap:24px;flex:1}
.dr-list-toolbar .spec-subtab{padding:12px 0;border-radius:0;background:none;border:0;border-bottom:2px solid transparent;font-size:13px;color:var(--muted)}
.dr-list-toolbar .spec-subtab.active{border-bottom-color:var(--accent);background:none;color:var(--accent)}
.dr-list-toolbar>.dr-row{flex-shrink:0;padding-bottom:8px}
#development-requests-view{background:var(--bg)}
#development-requests-view button,#panel-devqueue button{font-family:inherit}
.dr-list-toolbar .spec-subtab{display:flex;align-items:center;gap:8px;white-space:nowrap}
.dr-tab-count{font-size:11px;line-height:18px;min-width:18px;text-align:center;padding:0 4px;border-radius:3px;background:var(--surface-2);color:var(--muted);font-weight:400}
.spec-subtab.active .dr-tab-count{color:var(--accent);background:var(--dr-blue-bg)}
@media(max-width:760px){.dr-list-toolbar{flex-wrap:wrap;gap:12px}.dr-list-toolbar>.dr-row{flex-wrap:wrap}.dr-list-toolbar>.spec-subtabs{min-width:100%}}
.dr-content > * {
  flex-shrink: 0;
  width: 100%;
  max-width: var(--gsp-page);
  margin-left: auto;
  margin-right: auto;
}
.dr-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  min-width: 0;
  box-shadow: var(--sh-card);
}
.dr-box h2 {
  font-size: 19px;
  margin: 0 0 12px;
}
.dr-box h3 {
  font-size: 15px;
  margin: 0 0 12px;
}
.dr-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.dr-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.dr-row-between {
  justify-content: space-between;
}
.dr-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.dr-message {
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.dr-message[data-error="true"] {
  color: var(--red);
}
.dr-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dr-request {
  width: 100%;
  text-align: left;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
}

/* v4: the request title anchors the top left of each card. */
.dr-request > span:first-child{align-self:flex-start;display:flex;flex-direction:column;gap:8px;flex:1;min-width:0;text-align:left}
.dr-request strong{display:block;font-size:14px;line-height:1.45;text-align:left}
.dr-request{padding:24px;align-items:flex-start;min-height:96px;border-radius:12px}
.dr-heading-top,.dr-heading-meta{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.dr-heading-top>.dr-title-line{flex:1;min-width:0}
.dr-heading-top .dr-card-actions{flex-shrink:0;margin-left:auto}
.dr-heading-meta{align-items:center}
.dr-heading-meta p{margin:0}
.dr-removal-actions{display:flex;gap:18px;margin-left:auto;flex-shrink:0}
.dr-removal-actions button{font-size:12px!important;padding:0!important;border:0!important;background:none!important;color:var(--muted)!important}
.dr-removal-actions button:last-child{color:var(--red)!important}
.dr-status-menu{position:relative;flex-shrink:0}
.dr-status-menu summary{cursor:pointer;list-style:none;border-radius:6px}
.dr-status-menu summary::-webkit-details-marker{display:none}
.dr-status-menu summary .dr-status::after{content:"";display:inline-block;width:5px;height:5px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:translateY(-2px) rotate(45deg);margin-left:8px}
.dr-status-options{position:absolute;top:100%;left:0;z-index:20;width:230px;padding:6px;background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 24px #153d5926;display:flex;flex-direction:column}
.dr-status-options button{border:0!important;text-align:left;font-size:12px;padding:9px!important}
.dr-status-options{max-height:min(440px,60dvh);overflow:auto}
.dr-participant-grid,.dr-overview-grid,.dr-author-extra>.dr-stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 32px}
.dr-participants .dr-person{margin:0}
.dr-participants h2,.dr-participants h3{margin:0}
.dr-participants .dr-field{margin-bottom:0}
.dr-participants>button{align-self:flex-start}
.dr-author-extra{border-top:1px solid var(--border);padding-top:20px}
.dr-author-extra summary{cursor:pointer;color:var(--accent);font-weight:600;font-size:13px;margin-bottom:20px}
.dr-requirements{border-top:1px solid var(--border);padding-top:24px;margin-top:8px}
.dr-requirements>button{align-self:flex-start}
.dr-file-kind{display:flex;flex-direction:column;gap:5px;width:260px;max-width:100%}
.dr-file-kind select{font-size:12px;min-height:34px}
.dr-file{align-items:center;flex-wrap:wrap}
.dr-file>div:first-child{flex:1;min-width:160px}
.dr-steps li>button{background:none;border:0;color:inherit;padding:0;text-align:left;font:inherit;cursor:pointer;width:100%}
.dr-steps li[aria-current="step"]{border-color:var(--accent);color:var(--accent)}
.dr-content [hidden]{display:none!important}
.dr-heading-top button:focus-visible,.dr-status-menu summary:focus-visible,.dr-steps button:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
@media(max-width:760px){
  .dr-heading-top,.dr-heading-meta{flex-wrap:wrap;gap:12px}
  .dr-heading-top .dr-card-actions{margin-left:0}
  .dr-participant-grid,.dr-overview-grid,.dr-author-extra>.dr-stack{grid-template-columns:minmax(0,1fr);gap:20px}
  .dr-removal-actions{margin-left:0}
  .dr-file-kind{width:100%}
  .dr-status-options{left:auto;right:0}
}
.dr-request:hover {
  border-color: var(--accent);
}
.dr-request strong {
  display: block;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.dr-request-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.dr-status[data-status="draft"] { color: var(--muted); background: var(--surface-2); }
.dr-status[data-status="tz_draft"],
.dr-status[data-status="tz_ready"] { color: var(--dr-purple-ink); }
.dr-status[data-status="cancelled"] { color: var(--muted); background: var(--surface-2); }
.dr-callout {
  background: var(--accent-soft);
  border-radius: var(--r-sm);
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
}
.dr-callout p { margin: 6px 0 0; }
.dr-card-heading h2 { font-size: 24px; margin: 0; }
.dr-card-heading p { margin: 0; }
.dr-status {
  font-size: 12px;
  color: var(--dr-blue-ink);
  background: var(--dr-blue-bg);
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.dr-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}
.dr-filter label {
  flex: 1;
  min-width: 180px;
}
.dr-filter label:first-child{flex:2}
.dr-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.dr-request .dr-note:empty{display:none}
.dr-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.dr-field label {
  font-size: 13px;
  font-weight: 600;
}
.dr-required {
  color: var(--red);
}
.dr-content input:not([type="file"]),
.dr-content textarea,
.dr-content select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font: inherit;
  background: var(--surface);
  color: var(--text);
  min-width: 0;
}
.dr-content textarea {
  resize: vertical;
  min-height: 94px;
}
.dr-content [aria-invalid="true"] {
  border-color: var(--red) !important;
}
.dr-form {
  max-width: 980px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.dr-form .dr-box {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.dr-author {
  background: var(--surface-2);
  padding: 14px;
  border-radius: var(--r-sm);
}
.dr-steps {
  display: flex;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.dr-steps li {
  flex: 1;
  padding: 10px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  font-size: 12px;
}
.dr-steps li[aria-current="step"] {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}
.dr-deadline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.dr-detail {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.dr-detail > .dr-main { grid-column: 2; grid-row: 1; }
.dr-detail > .dr-sidebar { grid-column: 1; grid-row: 1; }
.dr-callout h3 { margin: 0 0 8px; font-size: 15px; }
.dr-main h4 { margin: 0; }
.dr-attention { color: var(--text); background: var(--accent-soft); padding: 7px 10px; border-radius: var(--r-sm); }
.dr-upload-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--border); }
.dr-upload-row strong { overflow-wrap: anywhere; }
.dr-upload-row progress { width: 100%; accent-color: var(--accent); }
.dr-spec { padding: 16px 0; border-bottom: 1px solid var(--border); }
.dr-message-item > * + * { margin-top: 8px; }
#dr-command:empty { display: none; }
.dr-content textarea { resize: vertical; caret-color: var(--accent); }
.dr-content select { max-width: 100%; }
.dr-content a { text-underline-offset: 3px; }
.dr-content ::selection { color: var(--text); background: var(--accent-soft); }
.dr-content ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
.dr-sections {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dr-sections button {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  text-align: left;
  color: var(--text);
}
.dr-sections button[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.dr-value {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.dr-value-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}
.dr-file {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  min-width: 0;
}
.dr-file-name {
  overflow-wrap: anywhere;
}
.dr-file input {
  max-width: 100%;
}
.dr-drop {
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}
.dr-drop[data-over="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.dr-event {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.dr-person {
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.dr-person strong {
  display: block;
}
.dr-person a {
  display: block;
}
.dr-search-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dr-search-results button {
  text-align: left;
  padding: 10px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  color: var(--text);
}
#development-requests-view :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.dr-row > select { width: auto; max-width: 100%; }
.dr-status-picker { margin: 0; }
.dr-status-picker select { width: auto; max-width: 100%; }
.dr-message:empty { display: none; }
.dr-status[data-status="tz_draft"], .dr-status[data-status="tz_approval"], .dr-status[data-status="tz_ready"] { color: var(--dr-purple-ink); background: var(--dr-purple-bg); }
.dr-status[data-status="tz_approved"], .dr-status[data-status="released"] { color: var(--dr-green-ink); background: var(--dr-green-bg); }
.dr-status[data-status="clarification"], .dr-status[data-status="review"], .dr-status[data-status="deferred"] { color: var(--dr-yellow-ink); background: var(--dr-yellow-bg); }
.dr-status[data-status="rejected"] { color: var(--dr-red-ink); background: var(--dr-red-bg); }
.dr-status[data-status="draft"], .dr-status[data-status="withdrawn"], .dr-status[data-status="cancelled"] { color: var(--dr-gray-ink); background: var(--dr-gray-bg); }
.dr-card-content { overflow: hidden; gap: 14px; }
.dr-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.dr-title-line h2 { overflow-wrap: anywhere; }
.dr-card-heading { gap: 10px; }
.dr-card-actions { min-height: 34px; }
.dr-notice-items { position: absolute; right: 0; top: 100%; width: min(360px, 80vw); max-height: 320px; overflow: auto; z-index: 20; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--sh-card); }
.dr-notice-items button { display: block; width: 100%; text-align: left; padding: 10px; }
.dr-card-content > .dr-detail { flex: 1 1 0; min-height: 0; align-items: stretch; }
.dr-sidebar { overflow: auto; scrollbar-gutter: stable; padding-bottom: 4px; gap: 16px; }
.dr-sidebar .dr-box { border-radius: 14px; box-shadow: none; padding: 16px; }
.dr-sections button { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; }
.dr-main { min-height: 0; overflow: auto; scrollbar-gutter: stable; padding-right: 4px; }
.dr-main-chat { display: flex; overflow: hidden; padding: 0; }
.dr-main > .dr-box { box-shadow: none; border-radius: 14px; }
.dr-unread-count { min-width: 20px; padding: 2px 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; text-align: center; }
.dr-chat { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; background: var(--surface); border-radius: 14px; border: 1px solid var(--border); padding: 16px; gap: 10px; position: relative; }
.dr-thread { flex: 1; min-height: 0; overflow: auto; scrollbar-gutter: stable; position: relative; }
.dr-message-item { max-width: 88%; width: fit-content; padding: 12px 14px; margin: 0 0 12px; background: var(--surface-2); border-radius: 10px; overflow-wrap: anywhere; }
.dr-message-own { background: var(--accent-soft); }
.dr-message-item .dr-value { font-size: 14px; line-height: 1.5; }
.dr-message-item .dr-note { font-size: 11px; }
.dr-message-actions { font-size: 11px; color: var(--muted); }
.dr-message-actions summary { cursor: pointer; }
.dr-message-actions button { font-size: 12px; padding: 6px 0; }
.dr-unread-divider { color: var(--accent); text-align: center; font-size: 12px; padding: 10px; margin-bottom: 12px; background: var(--accent-soft); border-radius: 6px; }
.dr-thread-empty { color: var(--muted); margin: 4px 0; font-size: 13px; }
.dr-thread-error { color: var(--red); font-size: 12px; margin: 0; }
.dr-thread-error:empty { display: none; }
.dr-internal-label { margin: 0; padding: 10px; background: var(--dr-yellow-bg); color: var(--dr-yellow-ink); font-size: 12px; border-radius: 6px; }
.dr-compose { flex-shrink: 0; }
.dr-compose-row { display: flex; gap: 8px; align-items: end; }
.dr-compose-row textarea { flex: 1; min-height: 40px; height: 40px; max-height: 120px; resize: none; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.dr-attach, .dr-send { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; }
.dr-attach { background: var(--surface); border: 1px solid var(--border); }
.dr-send { background: var(--accent); }
.dr-send:hover { background: var(--accent-dark); }
.dr-send:disabled { opacity: .5; cursor: wait; }
.dr-chat-files { max-height: 120px; overflow: auto; margin-bottom: 8px; font-size: 12px; }
.dr-compose #dr-upload-list:empty { display: none; }
.dr-compose #dr-upload-list { max-height: 100px; overflow: auto; }
.dr-thread-jump { align-self: center; }
#dr-command:not(:empty) { max-height: 45vh; overflow: auto; }
#development-requests-view [hidden] { display: none !important; }
@media (max-width: 760px) {
  .dr-content {
    padding: 12px;
  }
  .dr-card-content { overflow: auto; scrollbar-gutter: stable; }
  .dr-card-content > .dr-detail { flex: none; min-height: 0; grid-template-rows: auto minmax(460px, 65dvh) auto auto; }
  .dr-sidebar { overflow: visible; }
  .dr-main { height: 100%; }
  .dr-chat { padding: 12px; }
  .dr-compose-row textarea { font-size: 16px; }
  .dr-message-item { max-width: 95%; }
  .dr-card-actions { gap: 8px; }
  .dr-notice-items { right: auto; left: 0; }
  .dr-box {
    padding: 15px;
  }
  .dr-detail {
    grid-template-columns: minmax(0, 1fr);
  }
  .dr-detail > * {
    width: 100%;
  }
  .dr-detail > .dr-main { grid-column: 1; grid-row: 2; }
  .dr-detail > .dr-sidebar { display: contents; position: static; }
  .dr-sidebar > .dr-sections { grid-column: 1; grid-row: 1; }
  .dr-sidebar > section { grid-column: 1; grid-row: 3; }
  .dr-sidebar > div { grid-column: 1; grid-row: 4; }
  .dr-sections {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .dr-steps {
    gap: 5px;
  }
  .dr-steps li {
    padding: 9px 6px;
  }
  .dr-request {
    flex-direction: column;
    gap: 10px;
  }
  .dr-request-meta { align-items: flex-start; }
  .dr-deadline {
    grid-template-columns: 1fr;
  }
  .dr-content .btn,
  .dr-content .btn-ghost {
    min-height: 42px;
  }
  .dr-filter label {
    min-width: 100%;
  }
}

/* Approved request/queue composition, using the portal typeface. */
.dr-breadcrumb{display:flex;align-items:center;gap:16px;min-width:0;font-size:13px;flex-wrap:wrap}
.dr-breadcrumb button{color:var(--text);padding:8px 0;font-weight:600}
.dr-breadcrumb button:first-child{color:var(--muted);font-weight:400}
.dr-breadcrumb button:hover{text-decoration:underline;text-underline-offset:4px}
.dr-content{padding:28px 32px;gap:20px}
.dr-content > *{max-width:none}
.dr-content .dr-form{max-width:960px}
.dr-card-heading h2{font-size:24px;line-height:1.3;margin:0;font-weight:700}
.dr-card-heading{gap:8px}
.dr-detail{grid-template-columns:248px minmax(0,1fr);gap:28px}
.dr-card-content{gap:16px}
.dr-box,.dr-chat{border-radius:12px;box-shadow:none}
.dr-chat{padding:0;gap:0;overflow:hidden}
.dr-chat-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:22px 24px;border-bottom:1px solid var(--border)}
.dr-chat-heading h3{font-size:14px;margin:0}
.dr-thread{padding:24px}
.dr-message-item{background:var(--surface-2);padding:16px;max-width:88%;border-radius:8px}
.dr-message-own{margin-left:auto;background:var(--accent-soft)}
.dr-compose{padding:16px 24px;border-top:1px solid var(--border)}
.dr-content .dr-compose-row textarea{min-height:42px;height:42px;resize:none}
.dr-sidebar .dr-sections{padding:12px}
.dr-sidebar .dr-sections button{min-height:44px}
.dr-chat .dr-thread-error{padding:0 24px}
.dr-content input,.dr-content textarea,.dr-content select{font-family:inherit}
.dr-card-actions:empty{display:none}
.dr-chat .dr-thread-closed{margin:12px}
.dr-content .dr-drop[data-over="true"]{border-color:var(--accent);background:var(--accent-soft)}
.dr-content .dr-form{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:28px 32px;gap:24px}
.dr-form>.dr-box{border:0;padding:0}
.dr-form[data-step="0"]>.dr-box{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.dr-form[data-step="0"]>.dr-box>p,.dr-form[data-step="0"]>.dr-box>h3,.dr-form[data-step="0"]>.dr-box>.dr-row,.dr-form[data-step="0"]>.dr-box>.dr-field:not(:has(#dr-field-department,#dr-field-division)),.dr-form[data-step="0"]>.dr-box>.dr-deadline{grid-column:1/-1}
.dr-form .dr-field{margin:0}
.dr-form .dr-steps{margin:0;border-bottom:1px solid var(--border);gap:26px}
.dr-form .dr-steps li{background:none;border-radius:0;padding:0 0 16px;border-bottom:2px solid transparent}
.dr-form .dr-steps li[aria-current="step"]{border-color:var(--accent)}
.dr-form .dr-steps button{display:flex;align-items:center;gap:8px}
.dr-step-number{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--surface-2);flex-shrink:0}
.dr-steps li[aria-current="step"] .dr-step-number{background:var(--accent);color:var(--surface)}
.dr-form>.dr-row h2{font-size:24px;margin:0}
.dr-form>.dr-box>.dr-row{border-top:1px solid var(--border);padding-top:24px;margin-top:10px}
.dr-form .dr-drop{padding:32px;min-height:170px;justify-content:center;text-align:center;align-items:center}
.dr-breadcrumb:has(#dr-header-number:not(:empty)) button:nth-of-type(2){font-weight:400;color:var(--muted)}
#dr-header-number:not(:empty){font-weight:600;color:var(--text)}
@media(max-width:760px){.dr-content .dr-form{padding:18px}.dr-form[data-step="0"]>.dr-box{grid-template-columns:1fr}.dr-form .dr-steps{gap:10px}.dr-form .dr-steps button{flex-direction:column;align-items:flex-start;font-size:11px}}
@media(max-width:760px){.dr-content{padding:16px}.dr-detail{grid-template-columns:minmax(0,1fr);gap:16px}.dr-chat-heading,.dr-thread,.dr-compose{padding:14px}.dr-chat-heading{flex-wrap:wrap}.dr-card-heading h2{font-size:21px}.dr-breadcrumb{gap:8px}.dr-breadcrumb button{font-size:12px}}

.dr-main-chat{flex-direction:column;gap:16px}.dr-approval{flex-shrink:0;padding:16px 20px;border-radius:10px;color:var(--dr-purple-ink);background:var(--dr-purple-bg)}

.dr-text-action{padding:0;border:0;background:none;color:var(--accent);font:inherit;font-size:12px;cursor:pointer}
.dr-text-action:hover{text-decoration:underline;text-underline-offset:3px}
.dr-text-action:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.dr-list-toolbar>.dr-row>.btn{border-radius:6px;padding:10px 16px;font-size:12px;font-weight:400}
.dr-list{gap:12px}
@media(max-width:760px){
  .dr-list-toolbar{flex-wrap:nowrap;gap:8px}
  .dr-list-toolbar>.spec-subtabs{min-width:0;gap:8px}
  .dr-list-toolbar .spec-subtab{font-size:11px;gap:4px}
  .dr-list-toolbar>.dr-row{flex-wrap:nowrap;padding-bottom:0}
  .dr-list-toolbar>.dr-row>.btn{font-size:11px;padding:9px 10px;white-space:nowrap}
}

.dr-breadcrumb[hidden]{display:none!important}
.dr-drop input[type="file"][hidden]{display:none!important}
.dr-drop .dr-attach-image{width:28px;height:28px;margin:0 auto 8px}
.dr-drop>button{align-self:center}

.dr-form .dr-deadline{display:block}
.dr-form .dr-deadline>.dr-note{margin-top:8px}

/* Shared material rows and drop area, matching the v4 reference. */
.dr-content .dr-drop{padding:32px 20px;min-height:260px;box-sizing:border-box;justify-content:center;align-items:center;text-align:center;background:var(--dr-upload-bg);border:1px dashed var(--border);border-radius:8px;gap:16px}
.dr-drop>strong{color:var(--text)}
.dr-drop>p{margin:0}
.dr-drop>select{width:min(100%,325px)}
.dr-icon{width:24px;height:24px;flex:none}
.dr-drop>.dr-icon-paperclip{width:34px;height:34px;color:var(--muted);margin-bottom:4px}
.dr-content .dr-file{display:flex;align-items:center;gap:16px;padding:20px 4px;border:0;border-top:1px solid var(--border);border-radius:0;background:transparent}
.dr-file-icon{display:flex;align-items:center;justify-content:center;background:var(--dr-upload-bg);border-radius:6px;width:44px;height:50px;color:var(--muted);flex:none}
.dr-file-content{display:flex;flex:1;min-width:0;flex-direction:column;gap:8px}
.dr-file-name{overflow-wrap:anywhere}
.dr-file-content .dr-file-kind{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:min(100%,325px)}
.dr-file-kind select{width:100%;height:34px;min-height:34px;padding:4px 12px}
.dr-file-size{white-space:nowrap}
.dr-content .dr-file>button{padding:8px;flex:none;border:0;background:transparent}
.dr-file-content>button{align-self:flex-start;width:auto}
.dr-file>button .dr-icon{width:18px;height:18px}
@media(max-width:540px){.dr-content .dr-file{gap:10px;flex-wrap:wrap}.dr-file-content{flex-basis:calc(100% - 60px)}.dr-file-size{margin-left:54px}}
