.action-dialog { max-width: 460px; }
.action-dialog::backdrop { background: rgb(0 0 0 / .55); }
.action-dialog p { margin: 12px 0; line-height: 1.6; }
.action-dialog-body label { display: grid; gap: 8px; margin: 16px 0; font-size: 14px; }
.action-dialog-body input { width: 100%; padding: 12px; border: 1px solid var(--sunken); border-radius: 12px; background: var(--raised); color: var(--text); font: inherit; }
.action-dialog-buttons { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 20px; }
.action-dialog-buttons button { border: 0; border-radius: 999px; padding: 12px 18px; font: inherit; font-weight: 600; cursor: pointer; background: var(--raised); color: var(--text); }
.action-dialog-buttons .btn-primary { background: var(--brand); color: #fff; }
.action-dialog-buttons button:disabled { opacity: .5; cursor: wait; }
.action-error { color: var(--bad); }
.action-panel { margin-bottom: 24px; }
.action-panel p { margin: 10px 0 16px; }
.account-signin { flex: none; border: 0; border-radius: 999px; height: 40px; padding: 0 18px; background: var(--raised); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .16s; }
.account-signin:hover { background: var(--sunken); }
.account-signin:disabled { opacity: .6; cursor: wait; }
.account-menu { position: relative; flex: none; }
.account-pill { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px 0 4px; border: 0; border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .16s; }
.account-pill:hover, .account-pill[aria-expanded="true"] { background: var(--raised); }
.account-pill:focus-visible, .account-item:focus-visible, .account-signin:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.account-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-chevron { color: var(--muted); transition: transform .16s; }
.account-pill[aria-expanded="true"] .account-chevron { transform: rotate(180deg); }
.account-avatar { position: relative; display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.account-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.account-dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 260px; padding: 6px; border-radius: 18px; background: var(--surface); box-shadow: 0 12px 32px rgb(0 0 0 / .18), 0 0 0 1px var(--sunken); z-index: 30; }
.account-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--sunken); }
.account-head div { display: grid; gap: 2px; min-width: 0; }
.account-head strong { font-size: 14px; }
.account-head span.muted { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--text); font: inherit; font-size: 14px; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; }
.account-item svg { color: var(--muted); flex: none; }
.account-item:hover { background: var(--raised); }
.account-danger, .account-danger svg { color: var(--bad); }
.account-item:disabled { opacity: .6; cursor: wait; }
@media (width <= 640px) {
  .topbar { padding-left: 16px; padding-right: 16px; gap: 4px; }
  .brand { gap: 6px; }
  .brand-name { font-size: 14px; }
  .topnav { gap: 0; }
  .topnav a { padding-left: 6px; padding-right: 6px; }
  .account-name, .account-chevron { display: none; }
  .account-pill { padding: 0 4px; height: 40px; background: transparent; }
  .account-avatar { width: 32px; height: 32px; }
  .account-signin { height: 36px; padding: 0 14px; font-size: 13px; }
}
.review-page { max-width: 100%; }
.review-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 24px 0 20px; }
.review-head h1 { font-size: clamp(30px, 4vw, 40px); }
.review-head p { margin-top: 6px; font-size: 14px; }
.review-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); margin-bottom: 20px; max-width: 100%; overflow-x: auto; }
.review-tabs button { border: 0; border-radius: 999px; height: 36px; padding: 0 16px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .16s, color .16s; }
.review-tabs button:hover { color: var(--text); }
.review-tabs button[aria-selected="true"] { background: var(--raised); color: var(--text); }
.review-queue { display: grid; gap: 14px; }
.review-card { display: grid; gap: 16px; }
.review-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.review-card-head h2 { font-size: 18px; margin: 2px 0; }
.review-card-head p { font-size: 13px; }
.review-ref { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--brand); font-variant-numeric: tabular-nums; }
.review-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0; }
.review-facts div { background: var(--raised); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.review-facts dt { font-size: 12px; color: var(--muted); }
.review-facts dd { margin: 2px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.review-file { justify-self: start; }
.review-timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--sunken); display: grid; gap: 10px; }
.review-timeline li { display: grid; gap: 2px; font-size: 13px; }
.review-form { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--sunken); }
.review-form .textarea, .review-form .select { margin-top: 0; }
.review-actions { display: flex; gap: 8px; }
.review-actions .select { flex: 1; height: 40px; }
.review-confirm { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.review-empty { display: grid; justify-items: center; gap: 6px; padding: 56px 16px; border-radius: 20px; background: var(--surface); text-align: center; color: var(--muted); }
.review-empty strong { color: var(--text); font-size: 16px; margin-top: 6px; }
.review-more { margin: 20px auto 0; display: flex; }
@media (width <= 640px) { .review-head { align-items: flex-start; flex-direction: column; } .review-actions { flex-direction: column; } }
