:root {
  --red: #b22222;
  --ink: #242424;
  --line: #dedede;
  --muted: #6b6b6b;
  --soft: #f5f5f5;
  --white: #fff;
}
@font-face {
  font-family: "Playwrite IT Trad";
  src: url("/assets/playwrite-it-trad.woff2") format("woff2");
  font-display: swap;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  overflow-x: hidden;
  font:
    14px/1.5 Inter,
    Arial,
    sans-serif;
  color: var(--ink);
  background: #f3f3f3;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 650;
  line-height: 1.15;
  vertical-align: middle;
  white-space: nowrap;
  transition: 0.15s;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--red);
  border-radius: 6px;
  padding: 10px 16px;
  color: var(--red);
  background: #fff;
  font-weight: 650;
  line-height: 1.15;
  vertical-align: middle;
  white-space: nowrap;
  text-decoration: none;
}
button svg,
.button svg { flex: 0 0 auto; }
.button:hover { background: var(--red); color: #fff; }
button:not(:disabled):hover {
  background: #fff;
  color: var(--red);
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #e6a0a0;
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.secondary {
  background: #fff;
  color: var(--red);
}
.secondary:not(:disabled):hover {
  background: var(--red);
  color: #fff;
}
.workflow-primary,
.editor-mode-tabs button.active {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.workflow-primary:not(:disabled):hover,
.editor-mode-tabs button.active:not(:disabled):hover {
  border-color: #8f1818;
  background: #8f1818;
  color: #fff;
}
.danger-link {
  background: transparent;
  color: var(--red);
  border-color: transparent;
}
.login {
  width: min(1180px, calc(100vw - 48px));
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 53.9fr) minmax(430px, 46.1fr);
  margin: max(28px, calc((100vh - 720px) / 2)) auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d9d1cb;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px #59463b18;
}
.brand-panel {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  background: #b22222;
  color: #fff;
  padding: 50px;
  display: flex;
  flex-direction: column;
}
.auth-wordmark {
  margin-bottom: 58px;
  font: 400 27px/1.25 "Playwrite IT Trad", cursive;
  letter-spacing: -.035em;
}
.brand-kicker,
.login-access-label,
.auth-eyebrow {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .14em;
}
.brand-panel h1 {
  position: relative;
  z-index: 1;
  max-width: 536px;
  margin: 18px 0 0;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.04em;
}
.contract-illustration {
  position: absolute;
  right: 48px;
  bottom: 96px;
  width: 238px;
  height: 238px;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.contract-illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: .2;
  filter: brightness(0) invert(1);
  user-select: none;
  animation: mutual-document-float 7s ease-in-out infinite;
}
.brand-benefits {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid #ffffff55;
}
.brand-benefits span { display: grid; align-content: center; min-width: 0; min-height: 32px; padding-right: 18px; font-size: 11px; line-height: 1.4; }
.brand-benefits span + span { padding-left: 18px; border-left: 1px solid #ffffff35; }
.brand-benefits b { color: #fff; font-weight: 600; letter-spacing: .02em; }
.login-card {
  min-height: 720px;
  background: #fff;
}
.login-card-inner {
  display: flex;
  width: 100%;
  min-height: 720px;
  min-width: 0;
  padding: 42px 50px 34px;
  flex-direction: column;
  background: #fff;
}
.login-card form {
  width: 100%;
  max-width: 440px;
  margin: auto;
}
.login-card h2 {
  margin: 13px 0 0;
  font-size: 38px;
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.login-access-label { color: #938a85; }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 19px; min-height: 82px; margin: 8px 0 12px; }
.login-brand img { width: 108px; height: 78px; object-fit: contain; }
.login-brand i { width: 1px; height: 42px; background: #ddd6d1; }
.login-brand b { color: var(--red); font: 400 27px/1.2 "Playwrite IT Trad", cursive; letter-spacing: -.035em; }
.auth-eyebrow { display: block; color: var(--red); }
.auth-form > .hint { margin: 10px 0 27px; line-height: 1.5; }
.auth-form > button[type="submit"] { width: 100%; min-height: 48px; margin-top: 11px; }
.auth-actions { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 20px 0 0; }
.auth-action-divider { width: 1px; height: 18px; background: #ddd4cf; }
.auth-link,
.auth-back { border: 0; padding: 5px 0; background: transparent; color: var(--red); font-weight: 700; text-decoration: none; }
.auth-link:hover,
.auth-back:hover { background: transparent; color: #861919; text-decoration: underline; }
.auth-back { display: flex; width: max-content; margin: 10px auto 0; }
.auth-legal-link {
  display: block;
  width: max-content !important;
  min-height: 0 !important;
  margin: 12px auto 0 !important;
  padding: 4px 0 !important;
  border: 0;
  background: transparent;
  color: #756d68;
  font-size: 10px;
  font-weight: 700;
}
.auth-legal-link:not(:disabled):hover { background: transparent; color: var(--red); text-decoration: underline; transform: none; box-shadow: none; }
.privacy-draft-dialog { width: min(430px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 24px 70px #0003; }
.privacy-draft-dialog::backdrop { background: rgba(23, 18, 17, .48); }
.privacy-draft-dialog form { display: grid; gap: 10px; padding: 26px; }
.privacy-draft-dialog h2 { margin: 0; font-size: 26px; }
.privacy-draft-dialog p { margin: 0; color: var(--muted); line-height: 1.55; }
.temporary-password-dialog {
  width: min(500px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 70px #0004;
}
.temporary-password-dialog::backdrop { background: rgba(23, 18, 17, .56); }
.temporary-password-dialog form { display: grid; gap: 0; padding: 30px; }
.temporary-password-dialog h2 { margin: 9px 0 5px; font-size: 28px; line-height: 1.2; }
.temporary-password-dialog .hint { margin: 0 0 24px; line-height: 1.5; }
.temporary-password-dialog .field { display: grid; gap: 7px; margin: 0 0 18px; }
.temporary-password-dialog .field label { display: block; margin: 0; font-weight: 700; }
.temporary-password-dialog .field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #bbb;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-weight: 400;
}
.temporary-password-dialog .field input::placeholder { color: #898989; font-weight: 400; }
.temporary-password-dialog .field input:focus { border-color: var(--red); outline: 0; box-shadow: 0 0 0 3px rgba(178, 34, 34, .12); }
.temporary-password-dialog .field small { color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.4; }
.temporary-password-dialog .form-error { margin: 0 0 14px; }
.temporary-password-dialog button[type="submit"] { width: 100%; min-height: 46px; margin-top: 4px; }
.temporary-password-dialog button[type="submit"]:not(:disabled):hover { border-color: var(--red); background: #fff; color: var(--red); }
.login-security { margin-top: auto; padding-top: 20px; border-top: 1px solid #eee6e1; color: #827a75; font-size: 11px; text-align: center; }
.login-card .field { margin: 18px 0; gap: 8px; }
.login-card .field input,
.login-card .field select { min-height: 48px; border-color: #d3d4d7; border-radius: 9px; }
.login-card .field input:focus,
.login-card .field select:focus { border-color: var(--red); outline: 0; box-shadow: 0 0 0 3px #b91f2415; }
.login-card .register-form { margin: 0 auto; }
.login-card.login-mode .auth-form,
.login-card.forgot-mode .auth-form { margin: 54px auto auto; }
.login-card.register-mode .login-card-inner { padding-top: 30px; padding-bottom: 24px; }
.login-card.register-mode .login-brand { min-height: 68px; margin: 0 0 4px; }
.login-card.register-mode .login-brand img { width: 94px; height: 68px; }
.login-card .register-form h2 { font-size: 34px; }
.login-card .register-form > .hint { margin-bottom: 10px; }
.login-card .register-form .field { margin: 7px 0; }
.login-card .register-form .field input,
.login-card .register-form .field select { min-height: 40px; }
.login-card .register-form > button[type="submit"] { min-height: 44px; }
.auth-name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-name-grid .field { min-width: 0; }
.login-card .demo { margin-top: 14px; padding-top: 12px; font-size: 11px; }
.login-card .demo code { display: inline-block; margin: 5px 10px 3px 0; }
@media (max-width: 900px) {
  .login { width: min(620px, calc(100vw - 24px)); min-height: 0; grid-template-columns: 1fr; margin: 12px auto; border-radius: 20px; }
  .brand-panel { min-height: auto; padding: 28px; }
  .auth-wordmark { margin-bottom: 28px; }
  .brand-panel h1 { max-width: 540px; font-size: 36px; }
  .contract-illustration { position: relative; right: auto; bottom: auto; width: 148px; height: 148px; align-self: flex-end; margin: 8px 2% 0 0; }
  .brand-benefits { margin-top: 18px; }
  .login-card { min-height: auto; border-radius: 0; }
  .login-card-inner { min-height: auto; padding: 30px 28px; }
  .login-card form { margin: 18px auto 32px; }
  .login-security { margin-top: 0; }
}
.field {
  display: grid;
  gap: 6px;
  margin: 18px 0;
}
.field label {
  font-weight: 650;
}
.field input,
.field textarea,
.field select {
  border: 1px solid #aaa;
  border-radius: 6px;
  padding: 11px;
  background: #fff;
}
.login-switch { width: 100%; margin-top: 10px; }
.success-message { padding: 10px 12px; border-left: 4px solid #3b7a52; background: #eef8f1; color: #285c3b; }
.hint {
  color: var(--muted);
  font-size: 13px;
}
.demo {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.demo code {
  display: block;
  margin: 5px 0;
}
.shell {
  min-width: 1180px;
  min-height: 100vh;
}
.topbar {
  height: 66px;
  background: #b22222;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 24px;
}
.topbar > .status,
.topbar > #saveState {
  display: none;
}
.logo {
  font-weight: 800;
  letter-spacing: 0.08em;
}
.topbar nav {
  display: flex;
  gap: 6px;
  flex: 1;
}
.topbar nav button {
  background: transparent;
  border-color: transparent;
  color: #fff;
  opacity: 1;
}
.topbar nav button.active,
.topbar nav button:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-bottom-color: #fff;
  box-shadow: inset 0 -2px 0 #fff;
  transform: translateY(-1px);
}
.userbox {
  text-align: right;
  font-size: 12px;
}
.userbox strong {
  display: block;
  font-size: 13px;
}
.page {
  padding: 28px 34px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 22px;
}
.page-head h1 {
  margin: 0;
  font-size: 28px;
}
.page-head p {
  margin: 5px 0 0;
  color: var(--muted);
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.metric b {
  font-size: 30px;
  display: block;
}
.metric span {
  color: var(--muted);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
}
th,
td {
  text-align: left;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}
th {
  background: var(--ink);
  color: #fff;
  font-size: 12px;
}
tr:hover td {
  background: #fafafa;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border-radius: 20px;
  background: #f3e4e4;
  color: #841818;
  font-size: 12px;
  font-weight: 700;
}
.proposal-status-open {
  border: 1px solid #c7dcef;
  background: #eaf3fb;
  color: #245d8b;
}
.proposal-status-open::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3d82b8;
  box-shadow: 0 0 0 3px rgba(61, 130, 184, .12);
}
.proposal-status-accepted {
  border: 1px solid #c9e2d1;
  background: #eaf6ee;
  color: #286441;
}
.workspace {
  height: calc(100vh - 66px);
  display: grid;
  grid-template-columns: 340px minmax(760px, 1fr) 520px;
  background: #fff;
}
.rail {
  border-right: 1px solid var(--line);
  overflow: auto;
  font-size: 13px;
}
.rail.right {
  border-left: 1px solid var(--line);
  border-right: 0;
  display: flex;
  flex-direction: column;
}
.rail-head {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.rail-head h3 {
  margin: 0;
}
.clause-link {
  display: grid;
  grid-template-columns: 18px 27px minmax(0, 1fr);
  column-gap: 4px;
  align-items: start;
  width: 100%;
  text-align: left;
  background: #fff;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 10px 12px 8px;
  text-indent: 0;
  font-weight: 500;
}
.clause-link::before {
  content: "";
  width: 8px;
  height: 8px;
  align-self: center;
  border-radius: 50%;
  background: transparent;
}
.clause-link b {
  text-align: right;
  white-space: nowrap;
}
.clause-link.active {
  border-left: 4px solid var(--red);
  padding-left: 4px;
  background: #faf4f4;
}
.clause-link:hover {
  background: #faf4f4;
  color: var(--red);
}
.document {
  overflow: auto;
  background: #f0f0f0;
  padding: 28px;
}
.paper {
  max-width: 790px;
  margin: auto;
  background: #fff;
  min-height: 100%;
  box-shadow: 0 2px 14px #0002;
  padding: 60px 72px;
}
.contract-meta {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 34px;
  text-align: center;
}
.contract-meta h1 {
  width: 100%;
  text-align: center;
  font:
    700 26px Georgia,
    serif;
  margin: 0 0 7px;
}
.contract-context {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 12px;
  color: var(--muted);
  font: 10px/1.35 Arial, sans-serif;
}
.contract-context span { display: inline-flex; gap: 5px; }
.contract-context b { color: var(--ink); }
.contract-meta > div {
  color: var(--muted);
  font: 12px/1.4 Arial, sans-serif;
}
.document-meta-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  max-width: 790px;
  margin: 0 auto 9px;
  color: #696d70;
  font-size: 10px;
  line-height: 1.3;
}
.document-meta-strip span { text-transform: uppercase; letter-spacing: .08em; font-weight: 750; }
.document-meta-strip b { color: #303235; font-weight: 700; }
.clause {
  font:
    15px/1.55 Georgia,
    serif;
  margin: 0 0 25px;
  scroll-margin-top: 30px;
}
.clause h2 {
  font-size: 18px;
  margin: 0;
}
.clause-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 6px;
  padding: 0;
}
.clause.selected {
  outline: 2px solid #ead0d0;
  outline-offset: 12px;
}
.clause.has-change {
  border-color: inherit;
  box-shadow: none;
}
.clause.has-change .clause-heading {
  background: #fff8e7;
  border: 1px solid #ead7a4;
  border-radius: 6px;
  padding: 9px 11px;
}
.review-badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3dfaa;
  color: #6f4a00;
  font: 700 11px/1 Arial, sans-serif;
}
.clause.has-change .review-pill {
  color: #765d2b;
}
.clause-link.has-comment::before {
  background: #d79a23;
}
.clause-link.has-proposal::before {
  background: var(--red);
}
.choice-cell.proposal-highlight {
  background: #ffe59a !important;
  outline: 3px solid #d79a23;
  outline-offset: -3px;
}
.proposal-preview {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}
.proposal-preview > span,
.proposal-preview small {
  color: var(--muted);
}
.proposal-preview ul {
  margin: 0;
  padding-left: 18px;
}
.proposal-preview li {
  margin: 5px 0;
  line-height: 1.35;
}
.proposal-preview del,
.proposal-diff-dialog del {
  color: #9c1c1c;
  background: #fde8e8;
  text-decoration-thickness: 2px;
}
.proposal-preview ins,
.proposal-diff-dialog ins {
  color: #176b3a;
  background: #e3f5e9;
  text-decoration: none;
  font-weight: 700;
}
.view-proposal { width: 100%; }
.proposal-diff-dialog {
  width: min(900px, calc(100vw - 48px));
  max-height: 84vh;
  border: 0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 80px #0005;
}
.proposal-diff-dialog::backdrop { background: #1b1b1bcc; }
.diff-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.diff-head h2,
.diff-head p { margin: 0 0 6px; }
.proposal-diff-dialog table { width: 100%; }
.proposal-diff-dialog td small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.text-diff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.text-diff section {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  max-height: 52vh;
  overflow: auto;
}
.text-diff p { white-space: pre-wrap; line-height: 1.55; }
.diff-note {
  margin: 16px 0 0;
  color: #8a5a00;
  font-weight: 700;
}
.review-pill {
  font:
    12px Arial,
    sans-serif;
  color: var(--muted);
  margin-bottom: 12px;
}
.panel {
  padding: 14px 16px;
}
.rail.right > .panel {
  flex: 1;
  display: flex;
  min-height: 0;
  flex-direction: column;
}
.editor {
  flex: 1;
  display: flex;
  min-height: 430px;
  flex-direction: column;
}
.editor-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 4px 0 14px;
}
.editor-mode-tabs button {
  padding: 10px 8px;
}
.editor-mode-tabs button.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.editor-mode-content {
  flex: 1;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  gap: 9px;
}
.editor-mode-content label {
  font-weight: 700;
}
.editor-mode-content textarea {
  flex: 1;
  width: 100%;
  min-height: 300px;
  resize: vertical;
}
.editor-mode-content > button {
  align-self: flex-start;
}
.draft-clear {
  align-self: flex-start;
  margin-top: 10px;
  color: #555;
  border-color: #c9c9c9;
  background: #f7f7f7;
}
.draft-clear:hover,
.danger-action:hover {
  color: var(--red);
  border-color: var(--red);
  background: #fff;
}
.editor-action-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.editor-action-pair button { width: 100%; min-height: 42px; margin: 0; align-self: stretch; }
.reply-context,
.reply-reference {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px 12px;
  border-left: 3px solid var(--red);
  background: #fff7f7;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.reply-context > div,
.reply-reference {
  min-width: 0;
}
.reply-context b,
.reply-reference b {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}
.reply-context span,
.reply-reference span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reply-context .danger-link {
  flex: 0 0 auto;
}
.reply-reference {
  display: block;
  margin-top: 10px;
  border-left-color: #c8c8c8;
  background: #fafafa;
}
.table-editor-help {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e5caca;
  background: #fffafa;
  border-radius: 7px;
  line-height: 1.45;
}
.table-editor-help p {
  margin: 0;
}
.choice-legend {
  display: grid;
  gap: 7px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.x-state,
.table-choice.rejected {
  color: var(--red);
}
.table-change-ready {
  color: #176b36;
  font-weight: 700;
}
.locked-notice,
.isolation-note {
  padding: 12px 14px;
  border-left: 4px solid var(--red);
  background: #fff4f4;
  line-height: 1.45;
}
.isolation-note {
  margin-bottom: 18px;
}
.template-card {
  margin-bottom: 22px;
  border: 1px solid #e5e5e5;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(24, 24, 24, .055);
}
.template-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #fff 0%, #fcfcfc 100%);
}
.template-actions {
  display: grid;
  grid-template-columns: repeat(4, 108px);
  grid-auto-rows: 40px;
  gap: 8px;
  align-self: center;
}
.template-actions > * {
  width: 108px;
  height: 40px;
  min-height: 40px;
  padding: 7px 10px;
  text-align: center;
  border-radius: 10px;
  font-size: 12px;
}
.danger-action { color: #8b1717; border-color: #e4c2c2; background: #fff8f8; }
.template-summary h2,
.template-summary p {
  margin: 0 0 6px;
}
.template-summary h2 { font-size: 20px; letter-spacing: -.01em; }
.template-summary p { color: #444; }
.template-summary small { color: var(--muted); }
.assign-form {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 20px;
  padding: 20px 24px 22px;
  background: #f8f8f9;
  border-top: 1px solid #ececec;
}
.assignment-main,
.assignment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.assignment-main {
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: 1.15fr 1.15fr 1fr;
  gap: 14px;
}
.assign-heading { grid-column: 1; grid-row: 1; align-self: center; }
.assign-heading b,
.assign-heading span { display: block; }
.assign-heading b { font-size: 15px; }
.assign-heading span { color: var(--muted); font-size: 12px; margin-top: 5px; line-height: 1.35; }
.customer-search { background: #fff; }
.assignment-options {
  grid-column: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 2px;
}
.assign-form > button {
  grid-column: 3;
  grid-row: 1;
  width: 150px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 5px 12px rgba(178, 34, 34, .16);
}
.option-summary dl {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 8px 10px;
  margin: 12px 0;
}
.option-summary dt {
  color: var(--muted);
  font-weight: 700;
}
.option-summary dd {
  margin: 0;
  font-weight: 700;
}
.assign-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
  color: #4e4e4e;
  font-size: 11px;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.assign-form input,
.assign-form select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d5d5d8;
  border-radius: 12px;
  background-color: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.025);
}
.assign-form input:hover,
.assign-form select:hover { border-color: #aaa; }
.assign-form input:focus,
.assign-form select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(178,34,34,.1);
  outline: none;
}
.template-clauses {
  display: none;
  border-top: 1px solid var(--line);
}
.template-clauses.open {
  display: block;
}
.template-clauses article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  align-items: start;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
.template-clauses article p {
  margin: 6px 0 0;
  color: var(--muted);
}
.template-clauses article.is-locked,
.working-clause.is-locked { border-left: 3px solid var(--red); }
.locked-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 7px;
  border-radius: 12px;
  background: #f3e4e4;
  color: #841818;
  font-size: 11px;
}
.template-dialog {
  width: min(760px, 90vw);
}
.template-dialog form,
.template-dialog label {
  display: grid;
  gap: 8px;
}
.template-dialog form {
  gap: 14px;
}
.template-dialog textarea {
  min-height: 330px;
}
.diff-added,
.diff-removed {
  padding: 1px 2px;
  border-radius: 3px;
  color: inherit;
}
.diff-added { background: #dff3e5; box-shadow: inset 0 -2px #5ca874; }
.diff-removed { background: #fde1e1; box-shadow: inset 0 -2px #c65a5a; text-decoration: line-through; }
.proposal-type-chip { align-self: flex-start; display: inline-flex; width: max-content; padding: 4px 8px; border-radius: 999px; background: #f7e2e2; color: #8d171b; font-size: 9px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.proposal-change-list { display: grid; gap: 10px; margin-top: 6px; }
.proposal-change-row { display: grid; gap: 10px; padding: 12px; border: 1px solid #ead1d1; border-radius: 9px; background: #fffafa; }
.proposal-change-field { display: grid; gap: 4px; }
.proposal-change-field small { color: var(--muted); }
.proposal-change-values { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 9px; align-items: center; }
.proposal-change-values > span:not(.proposal-arrow) { display: grid; gap: 5px; min-width: 0; padding: 9px 10px; border-radius: 7px; font-size: 11px; }
.proposal-change-values strong { display: block; line-height: 1.35; }
.proposal-change-values em { color: var(--muted); font-size: 8px; font-style: normal; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.proposal-before { background: #f8eded; color: #782124; }
.proposal-after { background: #eaf6ee; color: #24633c; }
.proposal-arrow { color: #777; font-weight: 900; }
.proposal-more { color: var(--muted); font-weight: 700; }
.import-template-dialog { width: min(780px, 92vw); }
.import-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.template-page-head { align-items: flex-end; }
.template-page-head .eyebrow { color: var(--red); }
.template-page-head h1 { margin-top: 5px; }
.template-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(180px, .7fr) minmax(180px, .7fr) auto;
  gap: 14px;
  align-items: end;
  margin: 18px 0 14px;
  padding: 16px;
  border: 1px solid #dedede;
  border-radius: 14px;
  background: #fff;
}
.template-toolbar label,
.wizard-field,
.wizard-options label,
.wizard-search,
.working-clause-editor label {
  display: grid;
  gap: 6px;
  color: #4a4a4a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.template-toolbar input,
.template-toolbar select,
.wizard-field select,
.wizard-options select,
.wizard-search input,
.working-clause-editor input,
.working-clause-editor textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d0d0d3;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: 600 13px/1.3 Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
.template-toolbar input:focus,
.template-toolbar select:focus,
.wizard-field select:focus,
.wizard-options select:focus,
.wizard-search input:focus,
.working-clause-editor input:focus,
.working-clause-editor textarea:focus {
  border-color: var(--red);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(178, 34, 34, .1);
}
.template-toolbar-summary { display: grid; grid-template-columns: auto 1fr; gap: 0 7px; align-items: baseline; min-width: 180px; padding: 4px 8px; }
.template-toolbar-summary b { color: var(--red); font-size: 24px; }
.template-toolbar-summary span { font-weight: 750; }
.template-toolbar-summary small { grid-column: 1 / -1; color: var(--muted); }
.template-library { display: grid; gap: 18px; }
.template-card { margin: 0; }
.template-summary { align-items: stretch; padding: 24px; }
.template-copy { align-self: center; }
.template-type { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: #f5e6e6; color: #8b171b; font-size: 10px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.template-copy h2 { margin-top: 10px; }
.template-primary-action { display: grid; align-content: center; justify-items: stretch; gap: 7px; width: min(320px, 34vw); padding: 14px; border-radius: 12px; background: #fff5f5; border: 1px solid #edd0d0; }
.template-primary-action button { min-height: 44px; border-radius: 10px; }
.template-primary-action span { color: var(--muted); font-size: 11px; text-align: center; }
.template-secondary-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 11px 24px; border-top: 1px solid #ececec; background: #fafafa; }
.template-secondary-actions > * { min-height: 36px; padding: 7px 12px; border-radius: 9px; font-size: 11px; }
.template-clauses > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; background: #f5f5f6; border-bottom: 1px solid #ddd; }
.template-clauses > header div { display: grid; gap: 3px; }
.template-clauses > header span { color: var(--muted); font-size: 11px; }
.template-clause-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.lock-action.active { border-color: #d8aaaa; background: #fbefef; color: #841818; }
.lock-action.active:not(:disabled):hover { border-color: var(--red); background: var(--red); color: #fff; }

.assignment-dialog {
  width: min(1120px, 94vw);
  height: min(840px, 92vh);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .3);
  overflow: hidden;
}
.assignment-dialog::backdrop { background: rgba(20, 20, 20, .68); }
.assignment-wizard { display: grid; grid-template-rows: auto auto 1fr auto; height: 100%; }
.assignment-wizard > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 18px 22px 15px; border-bottom: 1px solid #e4e4e4; }
.assignment-wizard > header h2 { margin: 4px 0; font-size: 23px; }
.assignment-wizard > header p { margin: 0; color: var(--muted); }
.assignment-wizard > header #closeAssignmentWizard { flex: 0 0 38px; width: 38px; height: 38px; min-height: 38px; padding: 0; border-radius: 10px; font-size: 22px; line-height: 1; }
.wizard-steps { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #ddd; background: #f7f7f8; }
.wizard-steps span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; color: #777; font-size: 12px; font-weight: 750; border-bottom: 3px solid transparent; }
.wizard-steps b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #ddd; color: #555; }
.wizard-steps .active { color: #8f171b; border-bottom-color: var(--red); background: #fff6f6; }
.wizard-steps .active b { background: var(--red); color: #fff; }
.wizard-steps .done { color: #28633f; }
.wizard-steps .done b { background: #dceee3; color: #28633f; }
.assignment-wizard > main { overflow: auto; padding: 20px 24px 24px; background: #f7f7f8; }
.assignment-wizard > footer { display: flex; justify-content: space-between; gap: 14px; padding: 14px 24px; border-top: 1px solid #ddd; background: #fafafa; }
.assignment-wizard > footer > div { display: flex; gap: 9px; }
.wizard-section { display: grid; gap: 16px; max-width: 1020px; margin: 0 auto; }
.wizard-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.wizard-section-head h3 { margin: 4px 0; font-size: 21px; }
.wizard-section-head p { margin: 0; color: var(--muted); }
.assignment-details-step { gap: 14px; }
.assignment-block { display: grid; gap: 14px; padding: 18px; border: 1px solid #ddd; border-radius: 13px; background: #fff; box-shadow: 0 7px 20px rgba(28, 28, 28, .035); }
.assignment-block > header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.assignment-block h4 { margin: 0 0 3px; font-size: 15px; }
.assignment-block header p { margin: 0; color: var(--muted); font-size: 11px; }
.required-note { padding: 3px 7px; border-radius: 999px; background: #f6e4e4; color: #8c171b; font-size: 9px; font-weight: 800; }
.assignment-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 13px; }
.assignment-form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.assignment-form-grid label,
.assignment-block > .wizard-field { display: grid; gap: 5px; margin: 0; color: #4d4d4d; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .035em; }
.assignment-form-grid input,
.assignment-form-grid textarea,
.assignment-block select { width: 100%; padding: 10px 11px; border: 1px solid #bbb; border-radius: 8px; background: #fff; color: var(--ink); font: 12px Arial, sans-serif; text-transform: none; letter-spacing: 0; }
.assignment-form-grid input,
.assignment-block select { min-height: 42px; }
.assignment-form-grid textarea { resize: vertical; }
.assignment-form-grid .span-2 { grid-column: 1 / -1; }
.account-block .customer-picker { border: 0; padding: 0; background: transparent; }
.wizard-search { max-width: 560px; }
.customer-choice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 260px; overflow: auto; padding: 2px; }
.customer-choice { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; padding: 13px 14px; border: 1px solid #d7d7d7; border-radius: 11px; background: #fff; cursor: pointer; }
.customer-choice:hover { border-color: #b15b5d; background: #fffafa; }
.customer-choice:has(input:checked) { border-color: var(--red); box-shadow: 0 0 0 2px rgba(178, 34, 34, .12); background: #fff6f6; }
.customer-choice input { accent-color: var(--red); }
.customer-choice span { display: grid; gap: 3px; }
.customer-choice small { color: var(--muted); }
.customer-choice em { padding: 3px 7px; border-radius: 999px; background: #e5f3ea; color: #25643d; font-size: 10px; font-style: normal; font-weight: 800; }
.customer-picker { display: grid; gap: 10px; padding: 13px; border: 1px solid #ddd; border-radius: 12px; background: #fafafa; }
.customer-picker-toolbar { display: grid; grid-template-columns: 1fr minmax(280px, .75fr); gap: 12px; align-items: end; }
.customer-scope-tabs { display: flex; align-items: center; gap: 6px; }
.customer-scope-tabs button { min-height: 38px; padding: 7px 10px; border-radius: 8px; font-size: 10px; }
.customer-scope-tabs button span { display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #eee; color: #555; font-size: 9px; }
.customer-scope-tabs button.active { border-color: #557f9f; background: #eaf3fb; color: #245d8b; }
.customer-scope-tabs button.active:not(:disabled):hover { border-color: #3f708f; background: #dcecf8; color: #1e506f; }
.customer-scope-tabs button.active span { background: #fff; color: #245d8b; }
.customer-choice-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; }
.customer-choice-summary b { color: var(--ink); }
.customer-choice-list.compact { display: grid; grid-template-columns: 1fr; gap: 5px; max-height: 250px; padding: 0; }
.customer-choice-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 54px; padding: 8px 10px; border: 1px solid #ddd; border-radius: 9px; background: #fff; cursor: pointer; }
.customer-choice-row:hover { border-color: #8baec8; background: #f7fbfe; }
.customer-choice-row:has(input:checked) { border-color: #557f9f; box-shadow: 0 0 0 2px rgba(77, 134, 178, .12); background: #f2f8fc; }
.customer-choice-row input { width: 17px; height: 17px; accent-color: #3e789f; }
.customer-choice-row > span { display: grid; min-width: 0; }
.customer-choice-row b,
.customer-choice-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-choice-row small { color: var(--muted); font-size: 10px; }
.customer-choice-row em { padding: 3px 7px; border-radius: 999px; background: #e8f4ec; color: #286441; font-size: 9px; font-style: normal; font-weight: 800; white-space: nowrap; }
.customer-choice-row em.assigned { background: #eef1f4; color: #596a76; }
.customer-picker-empty { display: grid; justify-items: center; gap: 3px; padding: 22px; color: var(--muted); text-align: center; }
.customer-picker-empty b { color: var(--ink); }
.wizard-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 4px; }
.wizard-options.package-plan-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.working-clause-editor { display: grid; gap: 12px; padding: 18px; border: 1px solid #e3b4b5; border-radius: 13px; background: #fff8f8; }
.working-clause-editor h3 { margin: 3px 0; }
.working-clause-editor p { margin: 0; color: var(--muted); }
.working-clause-editor textarea { min-height: 170px; resize: vertical; }
.working-lock-option { grid-template-columns: auto 1fr; align-items: start; padding: 12px 13px; border: 1px solid #e1c9c9; border-radius: 10px; background: #fff; text-transform: none; letter-spacing: 0; }
.working-lock-option input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red); }
.working-lock-option span { display: grid; gap: 3px; }
.working-lock-option b { color: var(--ink); font-size: 12px; }
.working-lock-option small { color: var(--muted); font-size: 11px; font-weight: 600; }
.working-editor-actions { display: flex; justify-content: flex-end; gap: 8px; }
.working-clause-list { display: grid; gap: 8px; }
.working-clause { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 13px 14px; border: 1px solid #ddd; border-radius: 11px; background: #fff; }
.working-clause.excluded { background: #f5f5f5; opacity: .72; }
.working-clause p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.working-kind { display: inline-flex; margin-left: 8px; padding: 2px 6px; border-radius: 999px; background: #eee; color: #666; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.working-kind.changed { background: #f7dfdf; color: #8c171b; }
.include-switch { display: grid; justify-items: start; gap: 4px; color: #555; font-size: 10px; font-weight: 800; }
.include-switch input { width: 20px; height: 20px; accent-color: var(--red); }
.working-clause-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: nowrap; }
.assignment-review-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; }
.assignment-review-grid > section { padding: 18px; border: 1px solid #ddd; border-radius: 12px; background: #fff; }
.assignment-review-grid h4 { margin: 0 0 14px; }
.assignment-review-grid dl { display: grid; grid-template-columns: 150px 1fr; gap: 9px 12px; margin: 0; }
.assignment-review-grid dt { color: var(--muted); font-weight: 750; }
.assignment-review-grid dd { margin: 0; font-weight: 700; }
.assignment-preview-list { max-height: 360px; overflow: auto; margin: 0; padding: 0; list-style: none; counter-reset: preview-clause; }
.assignment-preview-list li { counter-increment: preview-clause; display: grid; grid-template-columns: 32px minmax(0, 1fr) 92px; gap: 14px; align-items: start; padding: 9px 0; border-bottom: 1px solid #eee; }
.assignment-preview-list li::before { content: counter(preview-clause) "."; color: #444; font-size: 12px; line-height: 1.4; text-align: right; }
.assignment-preview-list li b { min-width: 0; max-width: 36rem; font-size: 12px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.assignment-preview-list li span { justify-self: end; min-width: 78px; color: #8f171b; font-size: 9px; font-weight: 800; line-height: 1.4; text-align: right; text-transform: uppercase; }
.assignment-preview-list li span.locked { padding: 2px 6px; border-radius: 999px; background: #f7e2e2; }
.assignment-final-note { display: grid; gap: 4px; padding: 14px 16px; border-left: 4px solid #2f7448; background: #f1faf4; color: #24573a; }

@media (max-width: 900px) {
  .template-toolbar { grid-template-columns: 1fr; }
  .template-summary { display: grid; }
  .template-primary-action { width: 100%; }
  .customer-choice-list,
  .wizard-options,
  .assignment-review-grid { grid-template-columns: 1fr; }
  .assignment-form-grid,
  .assignment-form-grid.two,
  .user-management-grid,
  .permission-editor { grid-template-columns: 1fr; }
  .new-organization > div { grid-template-columns: 1fr; }
  .working-clause { grid-template-columns: 62px 1fr; }
  .working-clause-actions { grid-column: 2; flex-wrap: wrap; justify-content: flex-start; }
  .assignment-preview-list li { grid-template-columns: 28px minmax(0, 1fr); }
  .assignment-preview-list li span { grid-column: 2; justify-self: start; text-align: left; }
}
.activity small {
  display: block;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  flex: 1;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  padding: 11px 4px;
}
.tabs button.active {
  color: var(--red);
  border-bottom: 3px solid var(--red);
}
.activity {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.activity strong {
  font-size: 13px;
}
.activity-kind {
  display: block;
  margin-bottom: 2px;
}
.activity-body {
  margin: 9px 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.activity-body-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.activity small {
  color: var(--muted);
  display: block;
}
.activity p {
  margin: 6px 0;
}
.editor textarea {
  width: 100%;
  min-height: 160px;
  padding: 10px;
  border: 1px solid #aaa;
  border-radius: 6px;
}
.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.toolbar button {
  padding: 8px 11px;
}
.approval {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.approval label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.collab {
  font-size: 12px;
  color: var(--muted);
}
#toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(12px);
  transition: 0.2s;
  z-index: 99;
}
#toast.show {
  opacity: 1;
  transform: none;
}

/* Giriş ekranı: sözleşme sürecini anlatan modern mutabakat görseli */
.brand-panel::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -190px;
  top: -180px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(255, 255, 255, .025), 0 0 0 144px rgba(255, 255, 255, .02);
  pointer-events: none;
}
.contract-illustration {
  right: 46px;
  bottom: 96px;
  width: 370px;
  height: 246px;
  display: block;
}
.agreement-visual {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .23);
  border-radius: 27px;
  background:
    radial-gradient(circle at 52% 42%, rgba(255, 255, 255, .14), transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .055));
  box-shadow: 0 24px 55px rgba(82, 9, 9, .22), inset 0 1px 0 rgba(255, 255, 255, .14);
  backdrop-filter: blur(7px);
}
.agreement-visual::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  left: 50%;
  top: 47%;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 18px rgba(255, 255, 255, .025);
}
.agreement-status {
  position: absolute;
  z-index: 3;
  top: 17px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 5px 10px 5px 6px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(84, 10, 10, .2);
  color: rgba(255, 255, 255, .92);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .025em;
  transform: translateX(-50%);
  white-space: nowrap;
}
.agreement-status i {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}
.agreement-connector {
  position: absolute;
  z-index: 0;
  left: 73px;
  right: 73px;
  top: 128px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,.42), rgba(255,255,255,.1));
}
.agreement-connector::before,
.agreement-connector::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border: 2px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  background: #b22222;
}
.agreement-connector::before { left: -3px; }
.agreement-connector::after { right: -3px; }
.agreement-handshake {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 49%;
  display: grid;
  width: 130px;
  height: 130px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .08));
  box-shadow: 0 16px 36px rgba(78, 5, 5, .22);
  transform: translate(-50%, -50%);
}
.contract-illustration .agreement-handshake img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  opacity: .9;
  filter: brightness(0) invert(1);
  animation: none;
}
.agreement-stage {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 17px;
  display: flex;
  align-items: center;
  gap: 7px;
  transform: translateX(-50%);
  white-space: nowrap;
}
.agreement-stage small,
.agreement-node small {
  color: rgba(255, 255, 255, .56);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}
.agreement-stage b { color: #fff; font-size: 10px; letter-spacing: .02em; }
.agreement-node {
  position: absolute;
  z-index: 3;
  top: 100px;
  display: grid;
  min-width: 92px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 14px;
  background: rgba(100, 11, 11, .22);
  box-shadow: 0 12px 30px rgba(72, 4, 4, .16);
}
.agreement-node-draft { left: 16px; }
.agreement-node-approved { right: 16px; }
.agreement-node b { margin-top: 2px; color: #fff; font-size: 10px; line-height: 1.2; }
.agreement-node em { margin-top: 2px; color: rgba(255, 255, 255, .58); font-size: 8px; font-style: normal; }
.brand-benefits b { text-transform: none; }

@media (max-height: 780px) and (min-width: 901px) {
  .contract-illustration { width: 330px; height: 218px; right: 40px; bottom: 82px; }
  .agreement-handshake { width: 112px; height: 112px; }
  .contract-illustration .agreement-handshake img { width: 78px; height: 78px; }
  .agreement-node { top: 87px; min-width: 84px; padding: 9px 10px; }
  .agreement-connector { top: 112px; }
}
@media (max-width: 900px) {
  .contract-illustration {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(420px, 100%);
    height: 220px;
    align-self: center;
    margin: 24px auto 0;
  }
}
@media (max-width: 520px) {
  .contract-illustration { width: 100%; height: 194px; }
  .agreement-visual { border-radius: 20px; }
  .agreement-handshake { width: 98px; height: 98px; }
  .contract-illustration .agreement-handshake img { width: 68px; height: 68px; }
  .agreement-node { top: 78px; min-width: 78px; padding: 8px 9px; }
  .agreement-node-draft { left: 10px; }
  .agreement-node-approved { right: 10px; }
  .agreement-connector { top: 100px; left: 60px; right: 60px; }
}
.empty {
  padding: 30px;
  text-align: center;
  color: var(--muted);
}
.save-state {
  font-size: 12px;
  color: var(--muted);
  min-height: 18px;
}
.error {
  color: #9d1818;
  margin: 12px 0;
}
.clause-text {
  white-space: pre-wrap;
}
.anchor {
  background: #ffe39a;
  border-bottom: 2px solid var(--red);
  padding: 1px 0;
}
.anchor.pending-anchor {
  background: #fff0b9;
  box-shadow: 0 0 0 2px rgba(215, 154, 35, 0.24);
}
.comment-scope {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #ead7a4;
  border-radius: 7px;
  background: #fffaf0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.comment-scope b {
  color: var(--ink);
}
.quote {
  border-left: 3px solid var(--red);
  padding: 7px 0 7px 9px;
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0;
}
.quote b {
  color: var(--ink);
}
.editor textarea {
  min-height: 92px;
}
.editor-form-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
  margin-top: 10px;
}
.editor-form-actions button { width: 100%; min-height: 42px; }
.editor-closed-note {
  margin-top: 10px;
  padding: 14px;
  border: 1px dashed #d7d7d7;
  border-radius: 10px;
  background: #fafafa;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.pending-proposal-notice {
  margin-top: 10px;
  padding: 11px 12px;
  border-left: 4px solid var(--red);
  border-radius: 6px;
  background: #fff3f3;
  color: #7f1b1b;
  font-size: 12px;
  line-height: 1.45;
}
.contract-paragraph {
  margin: 0 20px 10px;
  text-align: justify;
  text-indent: 0;
  line-height: 1.48;
  overflow-wrap: anywhere;
}
.contract-label {
  margin: 9px 20px 4px;
  font-weight: 700;
  line-height: 1.35;
}
.table-wrap {
  margin: 14px 10px 18px;
  overflow-x: auto;
}
.contract-table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  font:
    12px/1.3 Arial,
    sans-serif;
}
.contract-table th,
.contract-table td {
  padding: 7px 8px;
  border: 1px solid #d9d9d9;
  vertical-align: middle;
}
.contract-table th {
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.contract-table th:first-child,
.contract-table td:first-child {
  text-align: left;
  min-width: 210px;
}
.choice-cell {
  text-align: center;
  min-width: 52px;
}
.editable-choice {
  cursor: pointer;
  transition: background 0.15s ease;
}
.editable-choice:hover {
  background: #fff0f0 !important;
  outline: 2px solid #e3aaaa;
  outline-offset: -2px;
}
.editable-choice:focus-visible {
  outline: 3px solid #d26b6b;
  outline-offset: -3px;
  background: #fff6f6 !important;
}
.table-choice {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1.5px solid #777;
  border-radius: 4px;
  font:
    700 14px/1 Arial,
    sans-serif;
}
.table-choice.selected {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.table-choice.empty {
  /* Genel .empty kuralındaki 30px dolgu seçim kutusunu büyütmemeli. */
  padding: 0;
  background: #fff;
  color: transparent;
}
.table-choice.rejected {
  background: #fff;
  border-color: var(--red);
}
.party-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0 14px;
}
.party-card {
  border: 1px solid #d9d9d9;
  border-top: 3px solid var(--red);
  padding: 10px;
  font-family: Arial, sans-serif;
}
.party-role {
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 7px;
}
.party-card dl {
  display: grid;
  grid-template-columns: 88px 8px minmax(0, 1fr);
  margin: 0;
  row-gap: 6px;
  font-size: 10.5px;
  line-height: 1.25;
}
.party-card dt {
  font-weight: 700;
}
.party-card dt::after {
  content: ":";
  float: right;
}
.party-card dd {
  grid-column: 3;
  margin: 0;
  overflow-wrap: anywhere;
}
.party-form h3 {
  margin: 0 0 4px;
}
.party-form textarea {
  width: 100%;
  min-height: 74px;
  padding: 10px;
  border: 1px solid #aaa;
  border-radius: 6px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form-row > *,
.party-form .field {
  min-width: 0;
}
.party-form input,
.party-form textarea {
  width: 100%;
  min-width: 0;
}
.party-form .field {
  margin: 12px 0;
}
.party-form label {
  font-size: 12px;
}
.rail-head {
  padding: 16px;
}
.rail-head h3 {
  font-size: 16px;
}
.clause-link {
  font-size: 12.5px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.participants-link {
  display: inline-flex;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 12px;
  text-decoration: underline;
}
.participants-link:hover { background: transparent; color: #861717; }
.top-approve {
  white-space: nowrap;
}
.top-approval-actions {
  display: flex;
  gap: 10px;
}
.topbar > button,
.top-approval-actions button {
  width: 150px;
  min-height: 44px;
  padding: 9px 12px;
}
.top-approval-actions button:disabled {
  opacity: .38;
  cursor: not-allowed;
}
.approval-readonly .document {
  opacity: .76;
}
.approval-readonly .editable-choice,
.approval-readonly .party-form,
.approval-readonly .editor {
  pointer-events: none;
}
.approval-readonly-note,
.approval-side-note {
  border: 1px solid #d8cba7;
  background: #fff9e9;
  color: #654f20;
  border-radius: 7px;
  padding: 10px 12px;
  margin: 0 0 18px;
  font: 12px/1.45 Arial, sans-serif;
}
.participants-dialog {
  width: min(620px, calc(100vw - 40px));
  max-height: 80vh;
  border: 0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 18px 60px #0005;
}
.participants-dialog::backdrop { background: #0008; }
.participant-list { display: grid; gap: 10px; margin-top: 18px; }
.participant-card {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(230px, 1.2fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
}
.participant-card > div { display: grid; gap: 4px; }
.participant-card span, .participant-card small { color: var(--muted); font-size: 11px; }
.participant-activity {
  display: grid;
  gap: 3px;
  text-align: left;
  background: #faf7f7;
  color: var(--ink);
  border: 1px solid #ead7d7;
  padding: 9px 11px;
}
.participant-activity span { color: var(--red); }
.approval-dialog {
  width: min(520px, calc(100vw - 40px));
  border: 0;
  border-radius: 10px;
  box-shadow: 0 18px 60px #0005;
  padding: 28px;
}
.approval-dialog::backdrop {
  background: #0008;
}
.approval-dialog h2 {
  margin: 0 0 14px;
}
.modal-confirm {
  display: flex;
  gap: 10px;
  padding: 14px 0;
  font-weight: 650;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.contract-options {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #fafafa;
}
.package-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #e6caca;
  border-left: 4px solid var(--red);
  background: #fff7f7;
  font:
    12px/1.3 Arial,
    sans-serif;
}
.package-info strong {
  color: var(--red);
  white-space: nowrap;
}

/* 2026 arayüz yenilemesi: sade üst bar, tek onay eylemi ve ek protokol akışı */
.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.eyebrow {
  display: block;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.2;
}
.app-topbar,
.workspace-topbar {
  height: 72px;
  padding: 0 20px;
  gap: 18px;
  box-shadow: 0 1px 0 #000;
}
.app-topbar .logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
  min-width: 218px;
}
.app-topbar .brand-home {
  min-height: 54px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #fff;
}
.app-topbar .brand-home:not(:disabled):hover {
  border-color: transparent;
  background: transparent;
  color: #fff;
  box-shadow: none;
  transform: none;
}
.app-topbar .brand-home:focus-visible {
  outline-color: #fff;
  outline-offset: 2px;
}
.app-topbar .header-metek-logo {
  display: block;
  width: 92px;
  height: 42px;
  object-fit: contain;
  margin-right: 12px;
}
.app-topbar .logo .product-wordmark {
  margin-left: 0;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, .7);
  color: #fff;
  font: 400 16px/1.2 "Playwrite IT Trad", cursive;
  letter-spacing: -.035em;
}
.notification-center {
  position: relative;
  flex: 0 0 auto;
}
.notification-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #fff;
}
.notification-button .icon { width: 20px; height: 20px; }
.notification-button:not(:disabled):hover {
  border-color: #ffffff30;
  background: #ffffff16;
  color: #fff;
}
.notification-badge {
  position: absolute;
  top: -2px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid var(--red);
  border-radius: 999px;
  background: #fff;
  color: var(--red);
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
}
.notification-badge[hidden],
.notification-panel[hidden] { display: none; }
.notification-panel {
  position: absolute;
  z-index: 60;
  top: calc(100% + 10px);
  right: 0;
  width: min(410px, calc(100vw - 28px));
  max-height: min(640px, calc(100vh - 96px));
  overflow: hidden;
  border: 1px solid #d7d7d7;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 50px #0003;
}
.notification-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}
.notification-panel > header > div { display: grid; gap: 2px; }
.notification-panel > header span { color: var(--muted); font-size: 11px; }
.notification-panel .icon-button {
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
}
.notification-list {
  max-height: min(550px, calc(100vh - 174px));
  overflow-y: auto;
}
.notification-item {
  width: 100%;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 11px;
  padding: 13px 16px;
  border: 0;
  border-bottom: 1px solid #eeeeee;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  text-align: left;
  font-weight: 500;
}
.notification-item:not(:disabled):hover { background: #fff8f8; color: var(--ink); }
.notification-item > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.notification-item b { font-weight: 800; }
.notification-item small,
.notification-item span span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}
.notification-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--red);
}
.notification-comment .notification-dot { background: #d79a23; }
.notification-approval .notification-dot { background: #27854b; }
.notification-system .notification-dot { background: #777; }
.notification-item.is-own { background: #fafafa; }
.notification-item.is-own .notification-dot { background: #aaa; }
.notification-empty { padding: 28px 18px; color: var(--muted); text-align: center; }
.user-menu {
  position: relative;
  flex: 0 0 auto;
}
.user-menu-button {
  min-width: 0;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 9px 5px 5px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #fff;
}
.user-menu-button:hover {
  border-color: #fff;
  background: #fff;
  color: var(--red);
}
.user-menu-button:hover .user-menu-copy b,
.user-menu-button:hover .user-menu-copy small { color: var(--red); }
.avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  color: var(--red);
  font-size: 12px;
  font-weight: 850;
}
.user-menu-copy {
  display: grid;
  min-width: 120px;
  text-align: left;
  line-height: 1.15;
}
.user-menu-copy b { font-size: 12px; }
.user-menu-copy small { color: #fff; font-size: 10px; margin-top: 3px; }
.user-menu-panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + 9px);
  right: 0;
  width: 244px;
  padding: 6px;
  border: 1px solid #d7d7d7;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 50px #0003;
}
.user-menu-panel[hidden] { display: none; }
.user-menu-summary { display: grid; gap: 2px; padding: 9px 10px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.user-menu-summary b { font-size: 12px; line-height: 1.25; }
.user-menu-summary span,
.user-menu-summary small { color: var(--muted); font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }
.user-menu-actions { display: grid; gap: 2px; padding-top: 4px; }
.user-menu-panel button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  margin: 0;
  padding: 8px 10px;
  border-color: transparent;
  background: transparent;
  color: var(--ink);
  text-align: left;
  justify-content: flex-start;
  border-radius: 8px;
  font-size: 11px;
}
.user-menu-panel button .icon { width: 17px; height: 17px; }
.user-menu-panel button:hover { background: #f7eeee; color: var(--red); }
.user-menu-panel .logout-action { margin-top: 4px; padding-top: 9px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; color: var(--red); }
.contracts-page-head { align-items: end; gap: 24px; margin-bottom: 16px; }
.contracts-page-head h1 { margin-bottom: 4px; }
.contracts-page-head p { max-width: 680px; }
.contract-result-summary { display: flex; align-items: baseline; gap: 7px; padding: 7px 10px; border-radius: 9px; background: #fff; border: 1px solid #ddd; white-space: nowrap; }
.contract-result-summary b { color: var(--red); font-size: 19px; }
.contract-result-summary span { color: var(--muted); font-size: 11px; font-weight: 700; }
.dashboard-overview-only { min-height: calc(100vh - 72px); margin: 0 auto; }
.dashboard-page.dashboard-overview-only { width: min(1120px, calc(100% - 56px)); max-width: none; padding: 34px 0 48px; }
.dashboard-page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.dashboard-page-head h1 { margin: 4px 0 0; color: #171717; font-size: 30px; line-height: 1.1; letter-spacing: -.03em; }
.dashboard-context { color: var(--red); font-size: 10px; font-weight: 850; letter-spacing: .15em; }
.dashboard-page-head time { color: #1d1d1f; font: 800 18px/1.2 Inter, Arial, sans-serif; letter-spacing: -.015em; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; }
.dashboard-metrics-overview { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dashboard-metric.dashboard-menu-card { --metric-accent: #6c8090; --metric-soft: #eef2f4; position: relative; display: grid; grid-template-rows: auto 1fr; gap: 17px; min-width: 0; min-height: 148px; padding: 18px; overflow: hidden; border: 1px solid #dfe3e6; border-radius: 16px; background: #fff; color: #171717; text-align: left; white-space: normal; box-shadow: 0 5px 18px rgba(34, 42, 48, .055); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.dashboard-menu-card .metric-marker { position: absolute; inset: 0 0 auto; width: 100%; height: 3px; border-radius: 16px 16px 0 0; background: var(--metric-accent); }
.dashboard-card-head { display: flex !important; align-items: center; justify-content: space-between; gap: 16px; }
.dashboard-menu-card .metric-icon { display: grid; flex: 0 0 auto; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: var(--metric-soft); color: var(--metric-accent); }
.dashboard-tile-icon { display: block; width: 21px; height: 21px; padding: 0; background: transparent; color: inherit; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-menu-card .metric-number { color: #171717; font-size: 34px; font-weight: 820; line-height: 1; letter-spacing: -.05em; }
.dashboard-card-copy { display: grid !important; align-content: end; gap: 4px; min-width: 0; }
.dashboard-menu-card .metric-title { color: #1e1f20; font-size: 16px; font-weight: 820; line-height: 1.25; letter-spacing: -.015em; white-space: normal; }
.dashboard-menu-card strong { display: -webkit-box; overflow: hidden; color: #73777a; font-size: 13px; font-weight: 650; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; }
.dashboard-metric.dashboard-menu-card:not(:disabled):hover,
.dashboard-metric.dashboard-menu-card:focus-visible { border-color: var(--metric-accent); background: #fff; color: #171717; box-shadow: 0 12px 28px rgba(34, 42, 48, .11); transform: translateY(-3px); }
.dashboard-menu-card:not(:disabled):hover .metric-icon { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--metric-accent) 35%, transparent); }
.metric-tone-blue { --metric-accent: #427ca5 !important; --metric-soft: #edf5fa !important; }
.metric-tone-amber { --metric-accent: #c78617 !important; --metric-soft: #fff6e5 !important; }
.metric-tone-red { --metric-accent: #b22222 !important; --metric-soft: #faeded !important; }
.metric-tone-green { --metric-accent: #3f845d !important; --metric-soft: #edf7f1 !important; }
.metric-tone-slate { --metric-accent: #687c8a !important; --metric-soft: #eff3f5 !important; }
.dashboard-return { min-height: 34px; margin: 0 0 14px; padding: 7px 11px; border-color: #c9c9c9; border-radius: 8px; background: #fff; color: var(--ink); font-size: 11px; }
.dashboard-return:not(:disabled):hover { border-color: var(--red); background: #fff7f7; color: var(--red); }
.dashboard-metric > span:not(.metric-marker) { display: grid; gap: 1px; }
.dashboard-metric b { font-size: 21px; line-height: 1; }
.dashboard-metric small { color: var(--muted); font-size: 10px; font-weight: 700; }
.dashboard-metric em { color: #49718e; font-size: 9px; font-style: normal; font-weight: 800; }
.metric-marker { width: 8px; height: 32px; border-radius: 999px; background: #6c8090; }
.metric-marker.blue { background: #4d86b2; }
.metric-marker.slate { background: #6c8090; }
.metric-marker.amber { background: #d59624; }
.metric-marker.red { background: var(--red); }
.metric-marker.green { background: #4b8c65; }
.dashboard-insight { margin: -2px 0 12px; padding: 16px; border: 1px solid #cddce8; border-radius: 12px; background: #f7fbfe; }
.dashboard-insight[hidden] { display: none; }
.dashboard-insight > header { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.dashboard-insight h2 { margin: 3px 0 1px; font-size: 17px; }
.dashboard-insight p { margin: 0; color: var(--muted); font-size: 11px; }
.dashboard-insight-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; max-height: 260px; overflow: auto; }
.dashboard-insight-list article { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border: 1px solid #dbe5ec; border-radius: 9px; background: #fff; }
.dashboard-insight-list article > div { display: grid; min-width: 0; }
.dashboard-insight-list span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-insight-list strong { color: #3c647f; font-size: 10px; white-space: nowrap; }
.dashboard-insight-list button { min-height: 34px; padding: 6px 10px; font-size: 10px; }
.dashboard-insight-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 3px; padding: 18px; color: var(--muted); }
.contract-filterbar { display: grid; grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(155px, .75fr)) auto; gap: 9px; align-items: end; margin-bottom: 12px; padding: 12px; border: 1px solid #ddd; border-radius: 12px; background: #fff; }
.contract-filterbar label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.contract-filterbar input,
.contract-filterbar select { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #d1d1d4; border-radius: 8px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 650; text-transform: none; }
.contract-filterbar input:focus,
.contract-filterbar select:focus { border-color: #739bb9; outline: 0; box-shadow: 0 0 0 3px rgba(77, 134, 178, .12); }
.clear-contract-filters { min-height: 40px; padding: 8px 11px; border-color: #bbb; color: #555; font-size: 10px; }
.clear-contract-filters:not(:disabled):hover { border-color: #777; background: #f4f4f4; color: #333; }
.contract-list { display: grid; gap: 8px; }
.contract-row { display: grid; grid-template-columns: 190px minmax(0, 1fr) 160px; align-items: center; gap: 22px; min-height: 142px; padding: 18px 20px; border: 1px solid #dadada; border-radius: 12px; background: #fff; box-shadow: 0 3px 14px #00000008; }
.contract-row[hidden] { display: none; }
.contract-row-kind { display: grid; justify-items: start; gap: 10px; }
.contract-number { color: var(--red); font-size: 10px; font-weight: 800; line-height: 1.35; }
.contract-type { color: var(--muted); font-size: 10px; font-weight: 800; }
.contract-row-main { min-width: 0; }
.contract-row-main h2 { overflow: hidden; margin: 0; font-size: 21px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.contract-customer-type { display: block; margin-top: 3px; color: #3f6d8d; font-size: 11px; font-weight: 800; }
.contract-row-main h3 { overflow: hidden; margin: 9px 0 3px; color: #454545; font-size: 13px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.contract-row-main p { margin: 0; color: var(--muted); font-size: 10px; }
.contract-dates { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 9px; color: #666; font-size: 9px; }
.contract-dates span { display: flex; gap: 5px; }
.contract-dates b { color: #333; }
.contract-status { padding: 3px 7px; font-size: 9px; }
.contract-status-draft { border: 1px solid #d8d8dc; background: #f2f2f4; color: #555; }
.contract-status-review,
.contract-status-counterparty_review { border: 1px solid #c7dcef; background: #eaf3fb; color: #245d8b; }
.contract-status-one_side_approved { border: 1px solid #ead7aa; background: #fff6dd; color: #795817; }
.contract-status-locked { border: 1px solid #c9e2d1; background: #eaf6ee; color: #286441; }
.contract-open { min-height: 40px; width: 100%; justify-content: space-between; border-radius: 8px; font-size: 11px; }
.dashboard-page { max-width: 1880px; margin: 0 auto; }
.dashboard-page-head { margin-bottom: 22px; }
.dashboard-page-head h1 { margin-top: 4px; }
.dashboard-page-head p { max-width: 720px; }
.dashboard-metric.attention:not(:disabled):hover,
.dashboard-metric.attention.active { border-color: #e1aaaa; background: #fff6f6; }
.dashboard-focus-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr); align-items: start; gap: 12px; margin-bottom: 16px; }
.dashboard-focus-panel { min-width: 0; padding: 15px; border: 1px solid #ddd; border-radius: 12px; background: #fff; box-shadow: 0 3px 16px #00000007; }
.dashboard-focus-panel > header,
.contracts-section > header,
.user-directory > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 11px; }
.dashboard-focus-panel h2,
.contracts-section h2,
.user-directory h2 { margin: 2px 0 1px; font-size: 17px; }
.dashboard-focus-panel header p,
.contracts-section header p,
.user-directory header p { margin: 0; color: var(--muted); font-size: 10px; }
.dashboard-task-list,
.dashboard-activity-list { display: grid; gap: 6px; }
.dashboard-task { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; min-height: 54px; padding: 8px 10px; border-color: #ead1d1; border-radius: 8px; background: #fffafa; color: var(--ink); text-align: left; white-space: normal; }
.dashboard-task:not(:disabled):hover { border-color: var(--red); background: #fff2f2; color: var(--ink); }
.dashboard-task-icon { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: #f1d9d9; color: #8d1818; font-size: 11px; font-weight: 900; }
.dashboard-task > span:nth-child(2) { display: grid; min-width: 0; }
.dashboard-task small { color: var(--red); font-size: 8px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.dashboard-task b { overflow: hidden; font-size: 11px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-task em { color: var(--muted); font-size: 9px; font-style: normal; font-weight: 600; }
.dashboard-task > strong { color: var(--red); font-size: 9px; white-space: nowrap; }
.dashboard-success { display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 11px; border: 1px solid #cfe3d6; border-radius: 8px; background: #f2f9f4; }
.dashboard-success > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #d8ebdf; color: #2f704b; font-weight: 900; }
.dashboard-success > div { display: grid; }
.dashboard-success b { font-size: 11px; }
.dashboard-success small { color: #52705d; font-size: 9px; }
.dashboard-activity { display: grid; grid-template-columns: 8px minmax(0, 1fr); align-items: start; gap: 8px; width: 100%; min-height: 42px; padding: 7px 6px; border: 0; border-bottom: 1px solid #ededed; border-radius: 0; background: transparent; color: var(--ink); text-align: left; white-space: normal; }
.dashboard-activity:last-child { border-bottom: 0; }
.dashboard-activity:not(:disabled):hover { background: #f7f7f7; color: var(--ink); }
.activity-marker { width: 6px; height: 6px; margin-top: 5px; border-radius: 50%; background: #66849a; }
.dashboard-activity > span:last-child { min-width: 0; font-size: 10px; line-height: 1.35; }
.dashboard-activity b { font-size: 10px; }
.dashboard-activity small { display: block; color: var(--muted); font-size: 8px; }
.dashboard-activity-empty { padding: 18px 6px; color: var(--muted); font-size: 10px; text-align: center; }
.contracts-section { scroll-margin-top: 80px; }
.contracts-section > header { align-items: center; margin: 0 2px 9px; }
.workflow-status { padding: 3px 7px; border: 1px solid #d6d6d8; background: #f4f4f5; color: #555; font-size: 9px; }
.workflow-status-attention { border-color: #ebcaca; background: #faeaea; color: #8b1b1b; }
.workflow-status-in_progress { border-color: #ead7aa; background: #fff6dd; color: #795817; }
.workflow-status-waiting_counterparty { border-color: #c7dcef; background: #eaf3fb; color: #245d8b; }
.workflow-status-locked { border-color: #c9e2d1; background: #eaf6ee; color: #286441; }
.contract-row.workflow-attention { border-left: 3px solid var(--red); }
.contract-row-main strong { display: block; margin-top: 4px; color: #555; font-size: 9px; font-weight: 750; }
.contract-row.workflow-attention .contract-row-main strong { color: #8b1b1b; }
.contract-row.workflow-waiting_counterparty { border-left: 3px solid #4f8fba; }
.contract-row.workflow-waiting_counterparty .contract-row-main strong { color: #245d8b; }
.contract-waiting-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 7px;
  margin-top: 7px;
}
.contract-waiting-preview span,
.contract-waiting-preview em {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid #c7dcef;
  border-radius: 999px;
  background: #f2f8fc;
  color: #245d8b;
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
}
.contract-waiting-preview i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4f8fba;
}
.user-summary { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 9px; margin-bottom: 14px; }
.user-summary-card { display: flex; align-items: baseline; justify-content: flex-start; gap: 9px; min-height: 64px; padding: 11px 13px; border-color: #d9dde1; border-radius: 10px; background: #fff; color: var(--ink); }
.user-summary-card b { font-size: 22px; }
.user-summary-card span { color: var(--muted); font-size: 10px; }
.user-summary-card:not(:disabled):hover,
.user-summary-card.active { border-color: #9ebbd2; background: #f3f8fc; color: var(--ink); }
.user-summary-card.pending:not(:disabled):hover,
.user-summary-card.pending.active { border-color: #ead7aa; background: #fff8e8; }
.user-directory { padding: 15px; border: 1px solid #ddd; border-radius: 12px; background: #fff; }
.user-filterbar { display: grid; grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(150px, .7fr)) auto; gap: 9px; align-items: end; margin-bottom: 12px; padding: 11px; border: 1px solid #e2e2e2; border-radius: 10px; background: #fafafa; }
.user-filterbar label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.user-filterbar input,
.user-filterbar select { width: 100%; min-height: 39px; padding: 8px 10px; border: 1px solid #d1d1d4; border-radius: 8px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 650; text-transform: none; }
.user-table-wrap { overflow-x: auto; }
.user-table { min-width: 900px; border-color: #e2e2e2; }
.user-table th { background: #303030; font-size: 10px; }
.date-entry { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; align-items: center; width: 100%; }
.date-entry .date-display { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #d0d0d3; border-radius: 10px; background: #fff; color: var(--ink); font: 600 13px/1.3 Arial, sans-serif; }
.date-picker-button { min-height: 44px; padding: 8px 12px; border-radius: 9px; background: #fff; color: var(--red); }
.native-date-picker { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.audit-filterbar { display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 28vw, 360px) auto; gap: 10px; align-items: end; margin-bottom: 14px; padding: 12px; border: 1px solid #ddd; border-radius: 12px; background: #fff; }
.audit-filterbar label { display: grid; min-width: 0; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.audit-filterbar input,
.audit-filterbar select { box-sizing: border-box; width: 100%; min-width: 0; height: 40px; min-height: 40px; padding: 8px 10px; border: 1px solid #d1d1d4; border-radius: 8px; background: #fff; }
.audit-table-wrap { overflow-x: auto; border: 1px solid #ddd; border-radius: 12px; background: #fff; }
.audit-table { min-width: 960px; margin: 0; }
.audit-table td b,
.audit-table td small { display: block; }
.audit-table td small { color: var(--muted); font-size: 9px; }
.template-metadata-dialog form { display: grid; gap: 12px; }
.template-metadata-dialog label { display: grid; gap: 6px; font-weight: 750; }
.template-metadata-dialog input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #bbb; border-radius: 9px; }
.user-table td { padding: 10px 12px; font-size: 10px; }
.user-table td:first-child { display: grid; }
.user-table td:first-child b { font-size: 11px; }
.user-table td:first-child small { color: var(--muted); font-size: 9px; }
.user-table td em { display: block; color: var(--muted); font-size: 9px; font-style: normal; }
.user-table tr[hidden] { display: none; }
.permission-summary { color: #4f5d66; font-size: 10px; white-space: nowrap; }
.user-management-dialog { width: min(760px, calc(100vw - 32px)); }
.user-management-dialog form { display: grid; gap: 16px; }
.user-management-dialog header h2 { margin: 4px 0 0; }
.user-management-dialog header p { margin: 2px 0 0; color: var(--muted); }
.user-management-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.user-management-grid label,
.new-organization label { display: grid; gap: 5px; color: #555; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.user-management-grid input,
.user-management-grid select,
.new-organization input { width: 100%; padding: 10px 11px; border: 1px solid #bbb; border-radius: 8px; background: #fff; color: var(--ink); text-transform: none; }
.password-field > span,
.password-reset-panel label > span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
  min-width: 0;
}
.password-field > span input,
.password-reset-panel label > span input { min-width: 0; }
.password-field > span button,
.password-reset-panel label > span button {
  width: auto;
  min-height: 40px;
  padding-inline: 12px;
  white-space: nowrap;
}
.password-field > small { display: block; color: var(--muted); font-size: 9px; line-height: 1.35; }
.manual-account-dialog .user-management-grid > label {
  align-content: start;
  grid-template-rows: 30px 42px auto;
}
.manual-account-dialog .user-management-grid > label > .form-label-text {
  display: flex;
  align-items: flex-end;
  min-height: 30px;
  padding-bottom: 4px;
  line-height: 1.25;
}
.manual-account-dialog .user-management-grid input,
.manual-account-dialog .user-management-grid select,
.manual-account-dialog .password-field > span {
  min-height: 42px;
}
.manual-account-dialog .user-management-grid input:hover,
.manual-account-dialog .user-management-grid select:hover,
.manual-account-dialog .new-organization-panel textarea:hover { border-color: #8f8f94; }
.manual-account-dialog .user-management-grid input:focus,
.manual-account-dialog .user-management-grid select:focus,
.manual-account-dialog .new-organization-panel textarea:focus {
  border-color: var(--red);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(178, 34, 34, .12);
}
.manual-account-dialog .fixed-organization {
  display: grid;
  min-height: 84px;
  align-content: center;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #d2d2d5;
  border-radius: 8px;
  background: #fafafa;
}
.manual-account-dialog .fixed-organization > span {
  color: #555;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.manual-account-dialog .fixed-organization > b { font-size: 12px; line-height: 1.35; }
.manual-account-dialog .fixed-organization > small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.account-info-dialog,
.change-password-dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 22px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 20px 65px #0004;
}
.account-info-dialog::backdrop,
.change-password-dialog::backdrop { background: #17171799; }
.account-dialog-content,
.change-password-dialog form { display: grid; gap: 14px; }
.account-dialog-content header h2,
.change-password-dialog header h2 { margin: 4px 0 1px; font-size: 22px; }
.account-dialog-content header p,
.change-password-dialog header p { margin: 0; color: var(--muted); font-size: 11px; }
.account-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.account-profile-grid > span { display: grid; gap: 3px; min-width: 0; padding: 11px; border: 1px solid #e1e1e1; border-radius: 9px; background: #fafafa; }
.account-profile-grid small { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.account-profile-grid b { overflow-wrap: anywhere; font-size: 11px; }
.change-password-dialog label { display: grid; gap: 5px; color: #555; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.change-password-dialog input { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #bbb; border-radius: 8px; background: #fff; color: var(--ink); text-transform: none; }
.change-password-dialog label small { color: var(--muted); font-size: 9px; font-weight: 600; text-transform: none; }
.change-password-dialog .form-error { margin: 0; }
.directory-page-head { align-items: flex-end; }
.directory-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.directory-summary .directory-metric-card {
  min-height: 126px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr;
  align-items: center;
  gap: 18px;
  text-align: left;
}
.directory-summary .directory-metric-content { display: flex; min-width: 0; align-items: center; gap: 11px; }
.directory-summary .dashboard-card-copy { display: grid; min-width: 0; gap: 3px; text-align: left; }
.directory-summary .metric-icon { width: 32px; height: 32px; border-radius: 9px; }
.directory-summary .metric-number { justify-self: end; align-self: center; font-size: 34px; line-height: 1; text-align: right; }
.directory-summary .metric-title { font-size: 14px; }
.directory-summary .metric-description { font-size: 11px; }
.permission-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0; padding: 14px; border: 1px solid #ddd; border-radius: 10px; }
.permission-editor legend { padding: 0 6px; font-weight: 800; }
.permission-editor label { display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: start; padding: 10px; border: 1px solid #e4e4e4; border-radius: 8px; }
.permission-editor input { width: 17px; height: 17px; accent-color: var(--red); }
.permission-editor span { display: grid; }
.permission-editor small { color: var(--muted); }
.new-organization { padding: 12px 14px; border: 1px dashed #c9c9c9; border-radius: 10px; }
.new-organization summary { cursor: pointer; color: var(--red); font-weight: 750; }
.new-organization > div { display: grid; grid-template-columns: 1fr 180px auto; gap: 10px; align-items: end; margin-top: 12px; }
.dialog-info { margin: 0; padding: 10px 12px; border-left: 4px solid #527c9b; background: #edf5fa; color: #345a74; font-size: 11px; }
.user-status { display: inline-flex; padding: 3px 7px; border-radius: 999px; background: #f0f0f1; color: #555; font-size: 9px; font-weight: 800; }
.user-status-approved { background: #eaf6ee; color: #286441; }
.user-status-pending { background: #fff6dd; color: #795817; }
.user-status-inactive { background: #f1f2f4; color: #4e5962; box-shadow: inset 0 0 0 1px #d7dce0; }
.user-status-deleted { background: #f1e8e8; color: #7b3030; }
.management-status { min-height: 39px; align-items: center; justify-content: center; border-radius: 8px; font-size: 11px; text-transform: none; }
.account-security-actions { display: grid; gap: 11px; padding: 13px 14px; border: 1px solid #ddd; border-radius: 10px; background: #fafafa; }
.account-security-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.account-security-head h3 { margin: 0 0 3px; font-size: 14px; }
.account-security-head p { margin: 0; color: var(--muted); font-size: 10px; }
.account-action-buttons { display: flex; gap: 8px; flex: 0 0 auto; }
.account-action-buttons button { min-height: 38px; padding: 8px 12px; }
.account-action-buttons .activate-user { border-color: #8db69b; background: #f1f8f3; color: #286441; }
.account-action-buttons .activate-user:hover { border-color: #4f8c64; background: #e7f4eb; color: #1f5735; }
.password-reset-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: end; padding-top: 11px; border-top: 1px solid #e1e1e1; }
.password-reset-panel[hidden] { display: none; }
.password-reset-panel label { display: grid; gap: 5px; color: #555; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.password-reset-panel input { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #bbb; border-radius: 8px; background: #fff; color: var(--ink); text-transform: none; }
.password-reset-panel button { min-height: 40px; }
.clear-contract-filters[hidden],
#clearUserFilters[hidden],
#clearCustomerFilters[hidden] { display: none !important; }
.workspace-topbar { gap: 16px; }
.workspace-topbar > button { width: auto; min-width: 0; min-height: 44px; }
.back-to-contracts {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 14px;
  border-color: #fff;
  background: #fff;
  color: var(--red);
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(80, 0, 0, .18);
}
.back-to-contracts:hover,
.back-to-contracts:focus-visible { border-color: #fff; background: #fff1f1; color: #861717; transform: translateY(-1px); }
.workspace-identity {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  line-height: 1.15;
}
.workspace-identity b { letter-spacing: .07em; }
.workspace-identity span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.workspace-identity small { grid-column: 2; margin-top: 3px; color: #bdbdbd; font-size: 10px; }
.workspace-actions { display: flex; align-items: center; gap: 9px; }
.document-actions { display: flex; gap: 6px; }
.compact-button,
.document-actions button {
  min-width: 0;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 9px;
}
.approval-toggle {
  min-width: 170px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 10px;
}
.approval-toggle.approved:disabled { opacity: 1; border-color: #4e735c; background: #365a45; color: #fff; }
.workspace { height: calc(100vh - 72px); }
.addenda-nav {
  position: relative;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  color: var(--ink);
  text-transform: none;
}
.addenda-nav-label {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: #f6e8e8;
  color: var(--red);
  font-size: 10px;
  font-weight: 850;
}
.addenda-nav-copy { display: grid; min-width: 0; gap: 2px; }
.addenda-nav-copy b { overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.addenda-nav-copy small { color: var(--muted); font-size: 10px; font-weight: 650; }
.addenda-total {
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid #dcc6c6;
  border-radius: 999px;
  background: #fff;
  color: var(--red);
  font-size: 11px;
  font-weight: 850;
}
.addenda-unread {
  position: absolute;
  right: 8px;
  bottom: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 8px;
  font-weight: 850;
  line-height: 1.2;
}
.addenda-nav.has-unread { padding-bottom: 18px; background: #fff8f8; }
.addenda-nav.has-unread .addenda-nav-label { box-shadow: 0 0 0 3px rgba(178, 34, 34, .12); }
.approval-readonly .document { opacity: 1; }
.approval-readonly .clause { opacity: .72; }
.approval-readonly .approval-readonly-note,
.approval-readonly .contract-addenda { opacity: 1; }
.approval-intro { margin: 12px 0 20px; text-indent: 0; }
.signature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0 26px;
}
.signature-card {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid #d7d7d7;
  border-top: 4px solid var(--red);
  border-radius: 10px;
  font-family: Arial, sans-serif;
}
.signature-side { color: var(--red); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.signature-card h3 { min-height: 24px; margin: 7px 0 3px; font-size: 13px; line-height: 1.35; }
.signature-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.35; }
.signature-fields {
  width: min(88%, 340px);
  margin: 20px auto 0;
}
.authorized-field {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: end;
  gap: 12px;
  color: var(--muted);
  font-size: 9px;
}
.authorized-field i { display: block; height: 15px; border-bottom: 1px solid #8e8e8e; }
.stamp-field {
  min-height: 78px;
  margin-top: 12px;
  display: grid;
  place-items: center;
  border: 1px dashed #aaa;
  border-radius: 8px;
  color: var(--muted);
  font-size: 9px;
  background: #fcfcfc;
}
.contract-attachments {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 24px;
  align-items: start;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fafafa;
  font-family: Arial, sans-serif;
}
.contract-attachments h3 { margin: 5px 0 3px; font-size: 17px; }
.contract-attachments p { margin: 0; color: var(--muted); font-size: 11px; }
.contract-attachments ol { margin: 0; padding-left: 22px; }
.contract-attachments li { padding: 5px 0; }
.contract-addenda {
  margin: 70px -22px 0;
  padding: 34px 22px 0;
  border-top: 2px solid var(--ink);
  scroll-margin-top: 28px;
  font-family: Arial, sans-serif;
}
.addenda-title h2 { margin: 6px 0 3px; font: 700 23px Georgia, serif; }
.addenda-title p { margin: 0 0 22px; color: var(--muted); }
.empty-addenda { padding: 24px; border: 1px dashed #d0d0d0; border-radius: 12px; color: var(--muted); text-align: center; }
.addendum-document { margin: 22px 0; border: 1px solid #d4d4d4; border-radius: 14px; overflow: hidden; background: #fff; }
.addendum-document > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 16px 18px; border-bottom: 1px solid #ddd; background: #fbfbfb; }
.addendum-title-block { display: grid; min-width: 0; gap: 2px; }
.addendum-header-actions { display: grid; flex: 0 1 auto; justify-items: end; gap: 7px; }
.addendum-edit-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.addendum-edit-actions button,
.addendum-clause-actions button { min-height: 34px; padding: 7px 10px; }
.addendum-document h2 { margin: 2px 0; font: 700 20px Georgia, serif; }
.addendum-document header p { margin: 0; color: var(--muted); font-size: 11px; }
.addendum-clauses { padding: 2px 18px; }
.addendum-clause { padding: 14px 0; border-bottom: 1px solid #e5e5e5; }
.addendum-clause:last-child { border-bottom: 0; }
.addendum-clause-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 7px; }
.addendum-clause-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.danger-text { color: #a7191d !important; }
.danger-text:hover { color: #7c1014 !important; background: #fff0f0 !important; }
.addendum-clause h3 { margin: 0; font: 700 17px Georgia, serif; text-transform: uppercase; }
.addendum-clause p { margin: 0; white-space: pre-wrap; font: 14px/1.55 Georgia, serif; text-align: justify; }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 6px; border: 0; background: transparent; color: var(--red); font-size: 11px; }
.text-button:hover { background: #f7eded; }
.addendum-seal { margin: 0; padding: 14px 22px; border-top: 1px solid #dfcaca; border-bottom: 1px solid #dfcaca; background: #fff7f7; color: #642020; font-size: 11px; }
.addendum-document > footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 22px; }
.addendum-document footer button { display: inline-flex; align-items: center; gap: 6px; }
.addendum-actions { display: flex; gap: 8px; align-items: center; }
.addendum-locked-note { color: #2c6544; font-size: 11px; font-weight: 750; }
.addendum-builder { display: grid; justify-items: center; gap: 7px; padding: 26px 18px; border: 1px dashed #c9c9c9; border-radius: 12px; text-align: center; }
.addendum-builder p { max-width: 520px; margin: 0; color: var(--muted); font-size: 11px; }
.addendum-create { display: inline-flex; align-items: center; gap: 7px; border-radius: 10px; }
.addendum-dialog form { display: grid; gap: 12px; }
.addendum-dialog label { display: grid; gap: 5px; font-weight: 700; }
.addendum-dialog input,
.addendum-dialog textarea { width: 100%; padding: 11px; border: 1px solid #aaa; border-radius: 8px; font: inherit; }
.addendum-dialog textarea { min-height: 170px; resize: vertical; }
.manual-account-dialog #generatePassword,
.manual-account-dialog #showNewOrganization,
.manual-account-dialog #manualCreateOrganization,
.manual-account-dialog .dialog-actions button {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.manual-account-dialog #generatePassword:not(:disabled):hover,
.manual-account-dialog #showNewOrganization:not(:disabled):hover,
.manual-account-dialog #manualCreateOrganization:not(:disabled):hover,
.manual-account-dialog .dialog-actions button:not(:disabled):hover {
  border-color: var(--red);
  background: #fff;
  color: var(--red);
}
.manual-account-dialog .create-org-inline {
  align-self: end;
  grid-column: 1 / -1;
  width: 100%;
  min-height: 40px;
  height: 40px;
  padding-block: 8px;
}
.manual-account-dialog .password-field small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
  text-transform: none;
}
.manual-account-dialog .password-field input,
.manual-account-dialog .password-field input::placeholder {
  font-weight: 400;
}
.manual-account-dialog .password-field input::placeholder { color: #868686; }
.manual-account-dialog .dialog-actions button { min-height: 40px; }
.new-organization-panel {
  padding: 16px;
  border: 1px solid #e1d7d7;
  border-radius: 10px;
  background: #fffafa;
}
.new-organization-panel h3 { margin: 0 0 12px; }
.new-organization-panel #manualCreateOrganization {
  justify-self: start;
  margin-top: 14px;
}
@media (max-width: 1500px) {
  .workspace { grid-template-columns: 220px minmax(570px, 1fr) 390px; }
  .user-menu-copy { display: none; }
  .approval-toggle { min-width: 150px; }
  .dashboard-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dashboard-metrics-overview { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dashboard-metric.dashboard-menu-card { min-height: 144px; padding: 17px; }
  .dashboard-menu-card .metric-title { font-size: 15px; }
  .dashboard-menu-card .metric-number { font-size: 32px; }
  .contract-filterbar { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .user-filterbar { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .clear-contract-filters { justify-self: start; }
}
@media (max-width: 1200px) {
  .dashboard-metrics-overview { grid-template-columns: repeat(2, minmax(280px, 1fr)); }
  .dashboard-metric.dashboard-menu-card { min-height: 142px; padding: 18px; }
  .dashboard-menu-card .metric-title { font-size: 16px; }
  .dashboard-menu-card .metric-number { font-size: 34px; }
}
@media (max-width: 900px) {
  .dashboard-metrics-overview { grid-template-columns: repeat(2, minmax(190px, 1fr)); }
  .dashboard-page.dashboard-overview-only { width: calc(100% - 36px); }
  .dashboard-metric.dashboard-menu-card { min-height: 138px; }
  .audit-filterbar { grid-template-columns: minmax(0, 1fr) minmax(220px, 40%); }
  .audit-filterbar > button { grid-column: 1 / -1; justify-self: start; }
  .account-security-head { align-items: stretch; flex-direction: column; }
  .account-action-buttons { width: 100%; }
  .account-action-buttons button { flex: 1; }
  .password-reset-panel { grid-template-columns: 1fr; }
  .directory-summary { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}
@media (max-width: 520px) {
  .dashboard-metrics-overview { grid-template-columns: 1fr; }
  .dashboard-page-head time { display: none; }
  .dashboard-metric.dashboard-menu-card { min-height: 132px; }
  .audit-filterbar { grid-template-columns: 1fr; }
  .audit-filterbar > button { grid-column: auto; }
  .directory-summary { grid-template-columns: 1fr; }
  .password-field > span,
  .password-reset-panel label > span { grid-template-columns: minmax(0, 1fr) auto; }
  .password-field > span button,
  .password-reset-panel label > span button { padding-inline: 9px; font-size: 10px; }
  .account-profile-grid { grid-template-columns: 1fr; }
  .editor-action-pair { grid-template-columns: 1fr; }
}
@media print {
  .document-meta-strip { display: none !important; }
}
.contract-options h3 {
  margin: 0 0 10px;
}
.contract-options fieldset {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}
.contract-options legend {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.option-choice {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 5px 0;
  font-size: 12px;
  line-height: 1.25;
  cursor: pointer;
}
.option-choice input {
  margin-top: 1px;
  accent-color: var(--red);
}
.clause-content p {
  line-height: 1.48;
}
.contract-colon-row {
  display: grid;
  grid-template-columns: 190px 12px minmax(0, 1fr);
  column-gap: 0;
  margin: 5px 20px;
  text-align: left;
  line-height: 1.35 !important;
}
.contract-colon-row > span:first-child {
  font-weight: 700;
}
@media (max-width: 1400px) {
  .shell {
    min-width: 1024px;
  }
  .workspace {
    grid-template-columns: 205px minmax(600px, 1fr) 350px;
  }
  .paper {
    padding: 34px 32px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-focus-grid { grid-template-columns: 1fr; }
  .user-summary { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .contract-row { grid-template-columns: 180px minmax(0, 1fr) 145px; }
  .customer-picker-toolbar { grid-template-columns: 1fr; }
}

/* 2026-11-20: sözleşme akışı, firma dizini ve ortak çalışma iyileştirmeleri */
.contract-illustration svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: rgba(255, 255, 255, .28);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: none;
  animation: mutual-document-float 7s ease-in-out infinite;
}
.contract-illustration .shared-contract { stroke: rgba(255, 255, 255, .34); }
.contract-illustration .document-line { stroke: rgba(255, 255, 255, .19); }
.contract-illustration .approval-row { stroke: rgba(255, 255, 255, .25); }
.contract-illustration .approval-seal,
.contract-illustration .approval-check {
  stroke: rgba(255, 255, 255, .58);
  stroke-width: 2.6;
  transform-box: fill-box;
  transform-origin: center;
  animation: approval-breathe 6s ease-in-out infinite;
}
.contract-illustration .approval-row-two .approval-seal,
.contract-illustration .approval-row-two .approval-check { animation-delay: -3s; }
@keyframes approval-breathe {
  0%, 100% { opacity: .7; transform: scale(1); }
  50% { opacity: .96; transform: scale(1.035); }
}
@keyframes mutual-document-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .contract-illustration img,
  .contract-illustration svg,
  .contract-illustration .approval-seal,
  .contract-illustration .approval-check { animation: none; }
}

@media (max-width: 520px) {
  .brand-panel h1 { font-size: 31px; }
  .contract-illustration { width: 138px; height: 138px; }
  .brand-benefits { gap: 8px; padding-top: 14px; }
  .brand-benefits span { min-height: 28px; padding: 0 4px; text-align: center; }
  .brand-benefits span + span { padding-left: 4px; }
  .brand-benefits b { font-size: 9px; letter-spacing: 0; white-space: nowrap; }
}

.metric-description { display: block; overflow: visible; color: #73777a; font-size: 13px; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.dashboard-menu-card time { color: #242424; font-weight: 800; }

.customer-organization-table td:first-child,
.customer-organization-table td:nth-child(2) { display: table-cell; }
.customer-organization-table td > small,
.customer-organization-table td > b { display: block; }
.username-list { display: grid; justify-items: start; gap: 3px; }
.username-list code { max-width: 290px; overflow: hidden; color: #314654; font-family: inherit; text-overflow: ellipsis; white-space: nowrap; }
.pending-account-strip { display: grid; gap: 8px; margin-top: 18px; padding: 16px; border: 1px solid #ead39f; border-radius: 12px; background: #fffbf1; }
.pending-account-strip h3 { margin: 0 0 4px; }
.pending-account-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid #eadcb8; border-radius: 9px; background: #fff; color: var(--ink); text-align: left; }
.pending-account-item span { display: grid; }
.pending-account-item small { color: var(--muted); }
.pending-account-item em { color: #705515; font-style: normal; }

.organization-management-dialog { width: min(920px, calc(100vw - 32px)); }
.organization-profile-grid .wide-field,
.wide-field { grid-column: 1 / -1; }
.organization-access-card { margin: 14px 0; padding: 12px 14px; border: 1px solid #d9e2e7; border-radius: 12px; background: #f7fafc; }
.access-switch { display: flex !important; align-items: center; justify-content: space-between; gap: 18px; min-width: 210px; cursor: pointer; }
.access-switch > span { display: grid; }
.access-switch small { color: var(--muted); }
.access-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.access-switch i { position: relative; flex: 0 0 auto; width: 44px; height: 25px; border-radius: 999px; background: #b8bdc1; transition: .18s ease; }
.access-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px #0003; transition: .18s ease; }
.access-switch input:checked + i { background: #3b7d56; }
.access-switch input:checked + i::after { transform: translateX(19px); }
.access-switch input:focus-visible + i { outline: 3px solid #b2222233; }
.organization-users { display: grid; gap: 8px; margin: 18px 0; }
.organization-users > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.organization-users h3,
.organization-users p { margin: 0; }
.organization-users article { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 11px 13px; border: 1px solid #ddd; border-radius: 10px; }
.organization-user-identity { display: grid; min-width: 0; }
.organization-user-identity code { color: #415766; font-family: inherit; }
.organization-user-identity small { color: var(--muted); }
.compact-empty { padding: 14px; }

.selected-organization-card { display: grid; grid-template-columns: minmax(190px, .7fr) minmax(340px, 1.3fr); gap: 22px; align-items: start; padding: 16px; border: 1px solid #cfdde6; border-radius: 11px; background: #f6fafc; }
.selected-organization-card span { color: #547085; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.selected-organization-card h4,
.selected-organization-card dl { margin: 0; }
.selected-organization-main { display: grid; gap: 5px; }
.selected-organization-card dl { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 7px 12px; font-size: 10px; }
.selected-organization-card dt { color: var(--muted); }
.selected-organization-card dd { min-width: 0; margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.participant-picker { display: grid; gap: 7px; }
.participant-picker h5 { margin: 0; }
.participant-picker > label { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid #ddd; border-radius: 9px; }
.participant-picker input { width: 17px; height: 17px; accent-color: var(--red); }
.participant-picker span { display: grid; }
.participant-picker small { color: var(--muted); }
.metek-participant-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.metek-participant-list article { padding: 11px; border: 1px solid #ddd; border-radius: 10px; }
.metek-participant-list article.selected { border-color: #92b5cb; background: #f5fafd; }
.metek-participant-list article > label { display: flex; align-items: center; gap: 9px; }
.metek-participant-list article > label span { display: grid; }
.metek-participant-list small { color: var(--muted); }
.participant-permissions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #dce7ed; font-size: 10px; }
@media (max-width: 760px) {
  .assignment-dialog { width: calc(100vw - 16px); height: calc(100vh - 16px); border-radius: 14px; }
  .assignment-wizard > header { padding: 15px 16px 12px; }
  .assignment-wizard > main { padding: 16px; }
  .wizard-steps span { min-height: 48px; gap: 5px; font-size: 10px; }
  .wizard-steps b { width: 21px; height: 21px; }
  .selected-organization-card { grid-template-columns: 1fr; gap: 14px; }
  .selected-organization-card dl { grid-template-columns: 88px minmax(0, 1fr); }
}
.field-error { margin: 0; color: #a1151a; font-size: 10px; font-weight: 750; text-transform: none; letter-spacing: 0; }
.wizard-error { margin: 0; padding: 9px 24px; border-bottom: 1px solid #e3b9ba; background: #fff1f1; color: #8b161a; font-size: 11px; font-weight: 750; }
.wizard-error[hidden], .field-error[hidden] { display: none; }
.assignment-wizard:has(.wizard-error:not([hidden])) { grid-template-rows: auto auto auto 1fr auto; }
.preview-step { padding-bottom: 14px; }

.workspace-identity { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; min-width: 0; align-items: start; }
.workspace-identity > span { overflow: hidden; color: #fff; font-size: 16px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.workspace-identity > div { display: flex; align-items: center; gap: 9px; }
.workspace-identity b,
.workspace-identity small { color: rgba(255, 255, 255, .82); font-size: 10px; font-weight: 500; letter-spacing: 0; }
.workspace-status { padding: 3px 7px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: #fff; font-size: 9px; font-style: normal; font-weight: 750; }
.approval-toggle:not(.secondary) { border-color: #fff; background: #fff; color: var(--red); }
.approval-toggle:not(.secondary):hover { border-color: #fff; background: #fff2f2; color: #8d1519; }
.review-admin_edit { border-left-color: #3c8c60 !important; }
.review-admin_edit .review-badge,
.review-admin_edit .review-pill { border-color: #b9ddc7; background: #eef9f2; color: #2e714a; }
.review-accepted_customer { border-left-color: var(--red) !important; }
.review-accepted_customer .review-badge,
.review-accepted_customer .review-pill { border-color: #e2b6b7; background: #fff0f0; color: #97191d; }
.review-accepted_customer .clause-content,
.review-changed .clause-content {
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid #b9ddc7;
  border-radius: 9px;
  background: #eef9f2;
  color: #215f3a;
}
.review-accepted_customer .clause-content p,
.review-accepted_customer .clause-content td,
.review-accepted_customer .clause-content th,
.review-changed .clause-content p,
.review-changed .clause-content td,
.review-changed .clause-content th { color: #215f3a; }
.rail.right { background: #f5f6f7; }
.rail.right .rail-head { background: #fff; }
.activity-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0 10px;
  border-bottom: 1px solid #dfe2e4;
  background: #fff;
}
.activity-filters button {
  display: inline-flex;
  min-width: 0;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 5px 7px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #5d6266;
  font-size: 10px;
  font-weight: 750;
  white-space: normal;
  line-height: 1.15;
  text-align: center;
}
.activity-filters button:not(:disabled):hover,
.activity-filters button.active {
  border-bottom-color: var(--red);
  background: rgba(178, 34, 34, .07);
  color: var(--red);
  box-shadow: inset 0 -2px 0 var(--red);
  transform: translateY(-1px);
}
.activity-tab-count {
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: #eceeef;
  color: #53585b;
  font-size: 9px;
  line-height: 1;
}
.activity-tab-count.attention { background: #f7dddd; color: #8d171b; }
.rail.right > .panel { padding: 12px; }
.activity {
  margin: 0 0 9px;
  padding: 11px 12px;
  border: 1px solid #e0e2e3;
  border-radius: 10px;
  background: #fff;
}
.activity-comment {
  position: relative;
  width: min(92%, 430px);
  border-color: #eadcaf;
  background: #fffaf0;
  overflow: visible;
}
.activity-comment.activity-other { margin-right: auto; }
.activity-comment.activity-own { margin-left: auto; border-color: #e4cccc; background: #fff7f7; }
.activity-comment::before,
.activity-comment::after { content: ""; position: absolute; bottom: 14px; width: 0; height: 0; }
.activity-comment.activity-other::before { left: -10px; border-top: 8px solid transparent; border-right: 10px solid #eadcaf; border-bottom: 8px solid transparent; }
.activity-comment.activity-other::after { left: -8px; border-top: 7px solid transparent; border-right: 9px solid #fffaf0; border-bottom: 7px solid transparent; }
.activity-comment.activity-own::before { right: -10px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 10px solid #e4cccc; }
.activity-comment.activity-own::after { right: -8px; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 9px solid #fff7f7; }
.activity-comment .activity-heading { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px; }
.activity-comment .activity-heading span { text-align: right; white-space: nowrap; }
.activity-comment .activity-body,
.activity-comment .reply-reference,
.activity-comment .quote { overflow-wrap: anywhere; white-space: normal; }
.activity-proposal { border-color: #e7c7c8; background: #fff6f6; }
.activity-direct,
.direct-edit-activity { border-color: #cde1d4; background: #f3faf6; }
.activity-heading { display: grid; gap: 2px; margin-bottom: 7px; }
.activity-heading strong { color: #222; font-size: 12px; line-height: 1.25; }
.activity-heading span { color: #72777a; font: 500 9px/1.3 Arial, sans-serif; }
.activity-body { margin: 7px 0; font: 500 11px/1.45 Arial, sans-serif; }
.activity .compact-quote { margin: 7px 0; padding: 7px 9px; font-size: 10px; }
.activity-state { display: inline-flex; margin-top: 8px; padding: 3px 7px; border-radius: 999px; font: 750 9px/1.2 Arial, sans-serif; }
.activity-state-complete { background: #dcefe3; color: #2c6544; }
.proposal-preview { gap: 6px; margin: 6px 0; }
.proposal-preview-compact { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.proposal-preview-compact .view-proposal { width: auto; padding: 6px 9px; }
.proposal-change-list { gap: 6px; }
.proposal-change-row { gap: 6px; padding: 8px; background: #fff; }
.proposal-change-values { gap: 5px; }
.proposal-change-values > span:not(.proposal-arrow) { padding: 6px 7px; }
.activity .toolbar { gap: 5px; margin-top: 8px; }
.activity .toolbar button { min-height: 32px; padding: 7px 10px; font-size: 10px; }
.activity .toolbar:has(.decision-note-input) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.decision-note-label,
.decision-note-input { grid-column: 1 / -1; }
.decision-note-label,
.change-note-label {
  display: grid;
  gap: 2px;
  color: #292929;
  font-size: 10px;
  font-weight: 800;
}
.decision-note-label span,
.change-note-label span { color: var(--muted); font-size: 9px; font-weight: 600; }
.decision-note-input,
.change-note-input {
  width: 100%;
  min-height: 70px;
  padding: 9px 10px;
  border: 1px solid #c8cbcd;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: 500 10px/1.4 Arial, sans-serif;
  resize: vertical;
}
.decision-note-input:hover,
.change-note-input:hover { border-color: #8f8f94; }
.decision-note-input:focus,
.change-note-input:focus { border-color: var(--red); outline: 3px solid rgba(178, 34, 34, .12); }
.change-note-display {
  display: grid;
  gap: 3px;
  margin: 8px 0;
  padding: 8px 9px;
  border-left: 3px solid #d3a33c;
  background: #fff9ea;
  color: #4c4331;
  font-size: 10px;
  line-height: 1.4;
}
.change-note-display.decision { border-left-color: #648fa8; background: #f0f7fb; color: #334b58; }
.change-history-note {
  display: grid;
  gap: 3px;
  margin: 0 0 10px;
  padding: 10px 11px;
  border: 1px solid #d9dcde;
  border-radius: 9px;
  background: #fff;
  color: #555;
  font-size: 10px;
}
.change-history-note b { color: var(--ink); font-size: 11px; }
.movement-activity {
  position: relative;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
}
.movement-dot { width: 8px; height: 8px; border-radius: 50%; background: #b4b8ba; }
.movement-complete .movement-dot { background: #4e986a; }
.movement-closed .movement-dot { background: #9aa0a3; }
.movement-open .movement-dot { background: #d79a23; }
.movement-copy { display: grid; gap: 2px; min-width: 0; }
.movement-copy strong { color: #292929; font-size: 10px; line-height: 1.35; }
.movement-copy span { color: var(--muted); font-size: 9px; }
.movement-activity .view-proposal { min-width: 0; min-height: 30px; padding: 6px 8px; font-size: 9px; }
.proposal-editor-content,
.comment-editor-content { min-height: 0; }
.proposal-editor-content .change-note-input { flex: 0 0 auto; }
.workspace .rail.right .panel button:not([role="tab"]) {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.workspace .rail.right .panel button:not([role="tab"]):not(:disabled):hover {
  border-color: var(--red);
  background: #fff;
  color: var(--red);
  box-shadow: none;
  transform: none;
}
.activity-history { margin: 10px 0; border: 1px solid #d9dcde; border-radius: 10px; background: #fff; }
.activity-history > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; color: #555a5d; font: 750 10px/1.3 Arial, sans-serif; cursor: pointer; list-style: none; }
.activity-history > summary::-webkit-details-marker { display: none; }
.activity-history > summary::after { content: "⌄"; order: 3; color: #777; }
.activity-history[open] > summary::after { transform: rotate(180deg); }
.activity-history > summary b { display: inline-grid; min-width: 20px; height: 20px; place-items: center; margin-left: auto; border-radius: 999px; background: #eceeef; font-size: 9px; }
.activity-history > div { padding: 0 8px 8px; border-top: 1px solid #eceeef; }
.activity-history .activity { margin-top: 8px; margin-bottom: 0; }
.activity-empty { margin: 0 0 9px; padding: 18px 12px; border: 1px dashed #d5d8da; border-radius: 10px; background: #fff; }
.proposal-status-rejected,
.proposal-status-withdrawn { border: 1px solid #d9dcde; background: #f0f1f2; color: #5b6063; }
.proposal-status-accepted { border: 1px solid #c9e2d1; background: #eaf6ee; color: #286441; }
.clause-link::before { content: none; }
.clause-link:not(.addenda-nav) {
  position: relative;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: start;
  min-height: 66px;
  padding: 12px 10px 26px;
}
.clause-indicators {
  position: absolute;
  left: 41px;
  bottom: 7px;
  display: flex;
  width: auto;
  height: 17px;
  min-width: 0;
  min-height: 17px;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}
.clause-indicators i {
  display: block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(35, 35, 35, .08);
}
.clause-indicators .proposal-dot { background: var(--red); }
.clause-link.needs-action .proposal-dot { box-shadow: 0 0 0 3px rgba(178, 34, 34, .13); }
.clause-link.waiting-counterparty .proposal-dot { opacity: .72; }
.response-waiting-mark {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 17px;
  padding: 2px 5px;
  border: 1px solid #c7dcef;
  border-radius: 999px;
  background: #edf6fc;
  color: #245d8b;
  font: 800 8px/1 Arial, sans-serif;
}
.response-waiting-mark svg,
.waiting-overview-icon svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.clause-indicators .comment-dot { background: #d79a23; }
.clause-indicators .direct-edit-mark {
  display: grid;
  order: -1;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid #cfe2ed;
  border-radius: 5px;
  background: #e4f0f7;
  color: #245d7d;
  box-shadow: none;
  font: 800 12px/1 Arial, sans-serif;
}
.rail .addenda-nav {
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 64px;
}
.counterparty-waiting-panel {
  margin: 9px 8px;
  overflow: hidden;
  border: 1px solid #c7dcef;
  border-radius: 10px;
  background: #f3f8fc;
  color: #234e6d;
}
.counterparty-waiting-panel > summary {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 9px;
  cursor: pointer;
  list-style: none;
}
.counterparty-waiting-panel > summary::-webkit-details-marker { display: none; }
.waiting-overview-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: #e1eef7;
  color: #32739f;
}
.counterparty-waiting-panel > summary > span:nth-child(2) { display: grid; gap: 1px; min-width: 0; }
.counterparty-waiting-panel > summary b { overflow: hidden; font-size: 10px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.counterparty-waiting-panel > summary small { color: #5f7b8e; font-size: 8px; }
.counterparty-waiting-panel > summary strong {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: #245d8b;
  font-size: 9px;
}
.counterparty-waiting-list {
  max-height: 176px;
  overflow-y: auto;
  border-top: 1px solid #d7e6f0;
  background: #fff;
}
.counterparty-waiting-list > button,
.waiting-overview-static {
  display: grid;
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid #e5edf2;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  text-align: left;
  white-space: normal;
}
.counterparty-waiting-list > :last-child { border-bottom: 0; }
.counterparty-waiting-list > button:not(:disabled):hover {
  background: #edf6fc;
  color: #174e74;
  transform: none;
  box-shadow: none;
}
.counterparty-waiting-list span { display: grid; gap: 2px; min-width: 0; }
.counterparty-waiting-list b { overflow: hidden; font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.counterparty-waiting-list small { color: #667985; font-size: 8px; line-height: 1.3; }
.clause-link.has-direct-edit { box-shadow: inset 2px 0 #6c9fbc; }
.direct-edit-summary { display: grid; gap: 7px; margin-top: 9px; }
.direct-edit-summary span { display: grid; gap: 3px; padding: 8px; border: 1px solid #d9e9df; border-radius: 7px; background: #fff; color: #3f4c45; font-size: 10px; line-height: 1.4; }
.direct-edit-version { display: flex; align-items: center; gap: 7px; margin: 8px 0; color: #426452; font-size: 10px; }
.direct-edit-version span { padding: 5px 7px; border: 1px solid #cde1d4; border-radius: 6px; background: #fff; font-weight: 750; }
.view-direct-edit { width: 100%; margin-top: 9px; }
.direct-edit-diff-dialog .direct-table-diff h3 { margin: 0 0 10px; }
.direct-edit-diff-dialog .change-note-display { margin-top: 14px; }
.activity-reply { margin-left: 18px; border-left: 3px solid #d7e2e8; }
.inline-reply { display: grid; gap: 7px; margin-top: 10px; padding: 10px; border: 1px solid #cbdde8; border-radius: 9px; background: #f6fafc; }
.inline-reply label { font-size: 10px; font-weight: 800; }
.inline-reply textarea { min-height: 80px; resize: vertical; }
.inline-reply > div { display: flex; justify-content: flex-end; gap: 7px; }

@media (max-width: 900px) {
  .metek-participant-list { grid-template-columns: 1fr; }
  .organization-users article { grid-template-columns: 1fr; }
}

/* Sözleşme çalışma alanında seçili madde, işlem önizlemeleri ve yorum dili */
.app-topbar .header-metek-logo { margin-right: 12px; }
.clause-link:not(.active):hover {
  background: #fff7f7;
  color: #8f1818;
}
.clause-link.active,
.clause-link.active:hover,
.clause-link.active:focus-visible {
  border-left: 4px solid var(--red);
  padding-left: 4px;
  background: #f7e5e5;
  color: #8f1818;
  box-shadow: inset 0 0 0 1px rgba(178, 34, 34, .08);
}
.clause-link:not(.addenda-nav).active,
.clause-link:not(.addenda-nav).active:hover,
.clause-link:not(.addenda-nav).active:focus-visible {
  padding-left: 6px;
}
.clause-link:focus-visible { outline: 3px solid rgba(178, 34, 34, .22); outline-offset: -3px; }

.document-change-preview {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid #e0c86f;
  border-radius: 10px;
  background: #fff9df;
  color: #322e20;
  font-size: 11px;
  line-height: 1.5;
}
.document-change-preview header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.document-change-preview header b { color: #5f4e0c; }
.document-change-preview header span { color: #746a48; font-size: 9px; }
.document-change-preview ul { display: grid; gap: 5px; margin: 0; padding-left: 18px; }
.document-change-preview p { margin: 0; color: #746a48; font-size: 10px; }
.document-change-text { padding: 9px 10px; border-radius: 7px; background: #fff; white-space: pre-wrap; }
.direct-change-preview { border-color: #b9d7c4; background: #f1faf4; }
.direct-change-preview header b { color: #286441; }
.direct-change-preview header span,
.direct-change-preview p { color: #4d715b; }
.editor-mode-tabs:has(.approval-required-note) { grid-template-columns: minmax(110px, .65fr) minmax(0, 1fr); align-items: center; }
.approval-required-note { color: #6a590f; font-size: 10px; font-weight: 750; line-height: 1.35; }

.activity-comment {
  --bubble-bg: #fff4e1;
  --bubble-border: #e4c88c;
  --bubble-accent: #a77b2e;
  --bubble-heading: #3d3424;
  width: min(88%, 420px);
  margin-bottom: 11px;
  padding: 12px 13px 10px;
  border: 1px solid var(--bubble-border);
  border-radius: 15px;
  background: var(--bubble-bg);
  color: #292719;
  box-shadow: 0 3px 10px rgba(91, 76, 22, .07);
}
.activity-comment.activity-metek {
  --bubble-bg: #fbeaea;
  --bubble-border: #e4b8b8;
  --bubble-accent: #ae5555;
  --bubble-heading: #6f2525;
}
.activity-comment.activity-customer {
  --bubble-bg: #eaf4fb;
  --bubble-border: #b4d2e3;
  --bubble-accent: #4f87a6;
  --bubble-heading: #255a77;
}
.activity-comment.activity-metek,
.activity-comment.activity-customer {
  border-color: var(--bubble-border);
  background: var(--bubble-bg);
}
.activity-comment.activity-other { margin-left: 0; margin-right: auto; }
.activity-comment.activity-own { margin-left: auto; margin-right: 0; }
.activity-comment.activity-reply { border-left: 1px solid var(--bubble-border); }
.activity-comment.activity-own.activity-reply { border-left-color: var(--bubble-border); }
.activity-comment::before,
.activity-comment::after { bottom: 18px; }
.activity-comment.activity-other::before { left: -9px; border-top: 7px solid transparent; border-right: 9px solid var(--bubble-border); border-bottom: 7px solid transparent; }
.activity-comment.activity-other::after { left: -7px; border-top: 6px solid transparent; border-right: 8px solid var(--bubble-bg); border-bottom: 6px solid transparent; }
.activity-comment.activity-own::before { right: -9px; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 9px solid var(--bubble-border); }
.activity-comment.activity-own::after { right: -7px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 8px solid var(--bubble-bg); }
.activity-comment .activity-heading { margin-bottom: 6px; }
.activity-comment .activity-heading strong { color: var(--bubble-heading); }
.activity-comment .activity-heading span { color: #776b3e; }
.activity-comment .activity-body { color: #302d1e; font-size: 11px; }
.activity-comment .reply-reference,
.activity-comment .quote {
  margin: 7px 0;
  padding: 8px 9px;
  border: 0;
  border-left: 3px solid var(--bubble-accent);
  border-radius: 6px;
  background: rgba(255, 255, 255, .55);
  color: var(--bubble-heading);
}
.activity-comment .toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--bubble-accent) 30%, transparent);
}
.workspace .rail.right .panel .activity-comment .toolbar button {
  min-height: 29px;
  padding: 5px 8px;
  border-color: color-mix(in srgb, var(--bubble-accent) 65%, white);
  background: rgba(255, 255, 255, .58);
  color: var(--bubble-heading);
  font-size: 9px;
}
.workspace .rail.right .panel .activity-comment .toolbar button:not(:disabled):hover {
  border-color: var(--bubble-accent);
  background: #fff;
  color: #3f350d;
}

/* Yorumlar, klasik mesajlaşma akışında eskiden yeniye dizilir. */
.comment-thread {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 11px;
  overflow-y: auto;
  padding: 2px 6px 12px 2px;
  scroll-behavior: smooth;
}
.comment-thread .activity-comment { margin-bottom: 0; }

.rail.right.comment-mode { overflow: hidden; }
.rail.right.comment-mode > .rail-head,
.rail.right.comment-mode > .activity-filters { flex: 0 0 auto; }
.rail.right > .panel.comment-panel {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 10px;
}
.comment-panel .activity-empty { flex: 0 0 auto; }

.comment-composer {
  flex: 0 0 auto;
  margin-top: 2px;
  padding-top: 9px;
  border-top: 1px solid #dfe2e4;
  background: #f5f6f7;
}
.workspace .rail.right .panel button.comment-composer-trigger {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid #d5dadd;
  border-radius: 14px;
  background: #fff;
  color: #2d3032;
  text-align: left;
  box-shadow: 0 4px 13px rgba(36, 42, 46, .08);
}
.workspace .rail.right .panel button.comment-composer-trigger:not(:disabled):hover {
  border-color: var(--red);
  background: #fffafa;
  color: #2d3032;
  box-shadow: 0 5px 15px rgba(178, 34, 34, .11);
}
.comment-composer-trigger > span:last-child { display: grid; gap: 2px; }
.comment-composer-trigger b { font-size: 11px; }
.comment-composer-trigger small { color: #74797c; font-size: 9px; font-weight: 500; }
.comment-composer-plus {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border-radius: 50%;
  background: #f7e7e7;
  color: var(--red);
  font-size: 21px;
  line-height: 1;
}
.comment-composer.expanded {
  display: grid;
  gap: 8px;
}
.comment-composer .comment-editor-content { display: grid; gap: 7px; }
.comment-composer .comment-scope { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.comment-composer .comment-scope b { color: #292d30; font-size: 11px; }
.comment-composer .comment-scope span { color: #73787b; font-size: 9px; text-align: right; }
.comment-composer textarea {
  width: 100%;
  min-height: 86px;
  max-height: 180px;
  padding: 10px 11px;
  border: 1px solid #cfd5d8;
  border-radius: 12px;
  background: #fff;
  color: #292d30;
  font: 500 11px/1.45 Arial, sans-serif;
  resize: vertical;
}
.comment-composer textarea:focus { border-color: var(--red); outline: 3px solid rgba(178, 34, 34, .1); }
.comment-composer-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.comment-submit-state {
  min-height: 14px;
  margin-right: auto;
  color: #6b7073;
  font-size: 9px;
  font-weight: 650;
}
.workspace .rail.right .panel .comment-composer-actions button { min-height: 32px; padding: 6px 12px; font-size: 9px; }
.workspace .rail.right .panel .comment-composer-actions .secondary {
  border-color: #ccd1d4;
  background: #fff;
  color: #555b5e;
}
.workspace .rail.right .panel .comment-composer-actions .secondary:not(:disabled):hover {
  border-color: #8e969a;
  background: #fff;
  color: #2d3032;
}
.comment-composer .composer-quote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  margin: 0;
  padding: 8px 10px;
  border-left: 3px solid var(--red);
  border-radius: 8px;
  background: #fff;
  color: #5a3333;
}
.comment-composer .composer-quote b { font-size: 9px; }
.comment-composer .composer-quote span { grid-column: 1; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.workspace .rail.right .panel .comment-composer .composer-quote button {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 0;
  align-self: center;
  padding: 4px 6px;
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 8px;
}
.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;
}

/* Yanıt yazıcı ayrı bir gri kart değil, açık olan konuşma balonunun parçasıdır. */
.activity-comment .inline-reply {
  display: grid;
  gap: 7px;
  margin: 9px 0 0;
  padding: 9px 0 0;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--bubble-accent) 30%, transparent);
  border-radius: 0;
  background: transparent;
}
.activity-comment .inline-reply label {
  color: var(--bubble-heading);
  font-size: 10px;
  font-weight: 800;
}
.activity-comment .inline-reply textarea {
  width: 100%;
  min-height: 68px;
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--bubble-accent) 55%, white);
  border-radius: 10px;
  background: rgba(255, 255, 255, .66);
  color: #302d1e;
  font: 500 11px/1.45 Arial, sans-serif;
  resize: vertical;
}
.activity-comment .inline-reply textarea:focus {
  border-color: var(--bubble-accent);
  outline: 3px solid color-mix(in srgb, var(--bubble-accent) 15%, transparent);
}
.activity-comment .inline-reply > div {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.workspace .rail.right .panel .activity-comment .inline-reply button {
  min-height: 30px;
  padding: 6px 11px;
  font-size: 9px;
}
.workspace .rail.right .panel .activity-comment .inline-reply .secondary {
  border-color: transparent;
  background: transparent;
  color: var(--bubble-heading);
}
.workspace .rail.right .panel .activity-comment .inline-reply .secondary:not(:disabled):hover {
  border-color: color-mix(in srgb, var(--bubble-accent) 40%, transparent);
  background: rgba(255, 255, 255, .52);
  color: #3f350d;
}

@media (max-height: 780px) and (min-width: 901px) {
  .login { min-height: 660px; margin: 16px auto; }
  .brand-panel,
  .login-card,
  .login-card-inner { min-height: 660px; }
  .brand-panel { padding: 38px 44px; }
  .auth-wordmark { margin-bottom: 38px; }
  .contract-illustration { width: 330px; height: 218px; right: 40px; bottom: 82px; }
  .login-card-inner { padding-top: 28px; padding-bottom: 24px; }
}

/* Giriş görseli: tek odaklı, metinsiz sözleşme ve mutabakat kompozisyonu. */
.agreement-visual {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}
.agreement-visual::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 190px;
  height: 190px;
  left: 52%;
  top: 48%;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .13) 0 48%, rgba(255, 255, 255, .035) 49% 68%, transparent 69%);
  box-shadow: 0 0 0 18px rgba(255, 255, 255, .025);
  transform: translate(-50%, -50%);
}
.contract-sheet {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 190px;
  height: 136px;
  align-content: end;
  gap: 10px;
  padding: 25px 24px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .025));
  box-shadow: 0 18px 38px rgba(77, 8, 8, .12);
}
.contract-sheet i {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .24);
}
.contract-sheet i:nth-child(2) { width: 78%; }
.contract-sheet i:nth-child(3) { width: 54%; }
.contract-sheet-back {
  left: 31px;
  top: 62px;
  transform: rotate(-8deg);
}
.contract-sheet-front {
  right: 26px;
  top: 43px;
  transform: rotate(8deg);
}
.agreement-orbit {
  position: absolute;
  z-index: 3;
  left: 52%;
  top: 48%;
  width: 164px;
  height: 164px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .065));
  box-shadow: 0 22px 45px rgba(77, 8, 8, .22), inset 0 1px 0 rgba(255, 255, 255, .18);
  transform: translate(-50%, -50%);
}
.agreement-handshake {
  position: absolute;
  inset: 0;
  display: grid;
  width: auto;
  height: auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  box-shadow: none;
  transform: none;
}
.contract-illustration .agreement-handshake img {
  width: 116px;
  height: 116px;
  object-fit: contain;
  opacity: .93;
  filter: brightness(0) invert(1);
  animation: none;
}
.agreement-seal {
  position: absolute;
  right: -3px;
  bottom: 4px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 4px solid #b22222;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 18px rgba(77, 8, 8, .24);
  color: #b22222;
  font-size: 19px;
  font-weight: 900;
}

@media (max-height: 780px) and (min-width: 901px) {
  .agreement-visual::after { width: 168px; height: 168px; }
  .agreement-orbit { width: 144px; height: 144px; }
  .contract-illustration .agreement-handshake img { width: 102px; height: 102px; }
  .contract-sheet { width: 170px; height: 122px; }
  .contract-sheet-back { left: 28px; top: 54px; }
  .contract-sheet-front { right: 23px; top: 38px; }
}

@media (max-width: 520px) {
  .agreement-visual { border-radius: 0; }
  .agreement-visual::after { width: 150px; height: 150px; }
  .agreement-orbit { width: 130px; height: 130px; }
  .contract-illustration .agreement-handshake img { width: 92px; height: 92px; }
  .agreement-seal { width: 34px; height: 34px; font-size: 16px; }
  .contract-sheet { width: 156px; height: 112px; padding: 21px; }
  .contract-sheet-back { left: 8%; top: 49px; }
  .contract-sheet-front { right: 7%; top: 32px; }
}

/* Minimal mutabakat işareti: iki tarafı tek onay çizgisi birleştirir. */
.contract-illustration {
  right: 58px;
  bottom: 112px;
  width: 340px;
  height: 208px;
}
.agreement-visual {
  display: grid;
  place-items: center;
  overflow: visible;
}
.agreement-visual::after { display: none; }
.agreement-mark {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.agreement-page {
  stroke: rgba(255, 255, 255, .28);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.agreement-detail {
  stroke: rgba(255, 255, 255, .24);
  stroke-width: 2;
  stroke-linecap: round;
}
@media (max-height: 780px) and (min-width: 901px) {
  .contract-illustration { right: 48px; bottom: 94px; width: 310px; height: 190px; }
}

@media (max-width: 900px) {
  .contract-illustration {
    width: min(340px, 92%);
    height: 198px;
    margin-top: 22px;
  }
}

@media (max-width: 520px) {
  .contract-illustration { width: 92%; height: 170px; }
}
