/* [project]/src/app/globals.css [app-client] (css) */
:root {
  --ink: #17212b;
  --muted: #5b6875;
  --line: #d9e0e6;
  --surface: #f7fafc;
  --accent: #0f766e;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--surface);
  flex-direction: column;
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
}

a {
  color: var(--accent);
}

h1 {
  margin: 0 0 12px;
  font-size: 2rem;
}

p {
  line-height: 1.55;
}

.centered {
  flex: 1 0 auto;
  place-items: center;
  padding: 24px;
  display: grid;
}

.hero, .card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  width: min(100%, 480px);
  padding: 36px;
}

.hero {
  width: min(100%, 640px);
}

.eyebrow {
  color: var(--accent);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .8rem;
  font-weight: 700;
}

.actions {
  flex-wrap: wrap;
  gap: 12px;
  display: flex;
}

.button, button {
  border: 1px solid var(--accent);
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  min-height: 42px;
  font: inherit;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  padding: 10px 16px;
  text-decoration: none;
  display: inline-flex;
}

.button.secondary {
  color: var(--accent);
  background: #fff;
}

.card, .form-stack {
  gap: 16px;
  display: grid;
}

label {
  gap: 6px;
  font-size: .9rem;
  font-weight: 600;
  display: grid;
}

input {
  border: 1px solid var(--line);
  min-height: 42px;
  font: inherit;
  border-radius: 5px;
  padding: 8px 10px;
}

.field-link {
  font-size: .9rem;
}

.error {
  color: #b42318;
}

.success {
  color: #087443;
}

.page {
  flex: 1 0 auto;
  width: min(100% - 40px, 900px);
  margin: 60px auto;
}

:root {
  --lw-ink: #25232d;
  --lw-muted: #746f78;
  --lw-line: #e8e2dc;
  --lw-warm: #f6f2ed;
  --lw-card: #fff;
  --lw-accent: #72574b;
  --lw-green: #47756b;
}

button, input, textarea, select {
  font: inherit;
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline-offset: 2px;
  outline: 3px solid #b59a72;
}

.legal-app {
  min-height: 100vh;
  display: flex;
}

.legal-sidebar {
  border-right: 1px solid var(--lw-line);
  background: #f0eae4;
  flex-direction: column;
  flex: 0 0 240px;
  width: 240px;
  padding: 26px 16px 18px;
  display: flex;
}

.legal-brand {
  color: var(--lw-ink);
  align-items: center;
  gap: 10px;
  margin: 0 10px 25px;
  font: 600 17px Georgia, serif;
  text-decoration: none;
  display: flex;
}

.brand-mark {
  color: #fff;
  background: var(--lw-accent);
  border-radius: 8px;
  place-items: center;
  width: 28px;
  height: 28px;
  font: italic 700 19px Georgia, serif;
  display: grid;
}

.legal-brand-logo {
  object-fit: contain;
  object-position: left center;
  width: 188px;
  height: 52px;
  display: block;
}

.legal-nav {
  gap: 4px;
  margin-top: 0;
  display: grid;
}

.legal-nav a, .legal-sidebar-bottom > a {
  color: #665f60;
  border-radius: 8px;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 13px;
  text-decoration: none;
  display: flex;
}

.legal-nav a span {
  text-align: center;
  width: 18px;
  font-size: 18px;
}

.legal-nav a.active, .legal-nav a:hover, .legal-sidebar-bottom > a.active {
  color: var(--lw-ink);
  background: #fff;
  font-weight: 700;
  box-shadow: 0 1px 2px #ddd4cc;
}

.legal-sidebar-bottom {
  border-top: 1px solid #ddd4cc;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  display: grid;
}

.legal-profile {
  text-align: left;
  width: 100%;
  min-height: 48px;
  color: var(--lw-ink);
  background: none;
  border: 0;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px 5px;
  display: grid;
}

.avatar {
  color: #593e32;
  background: #d7b9a1;
  border-radius: 50%;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 11px;
  font-weight: 700;
  display: grid;
}

.legal-profile strong, .legal-profile small, .member strong, .member small {
  display: block;
}

.legal-profile-copy {
  min-width: 0;
}

.legal-profile strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  overflow: hidden;
}

.legal-profile small, .member small {
  color: var(--lw-muted);
  margin-top: 3px;
  font-size: 10px;
}

.legal-main {
  flex: 1;
  min-width: 0;
}

.legal-topbar {
  height: 58px;
  color: var(--lw-muted);
  border-bottom: 1px solid var(--lw-line);
  align-items: center;
  gap: 22px;
  padding: 0 34px;
  font-size: 12px;
  display: flex;
}

.demo-notice {
  color: #97745b;
  margin-left: auto;
}

.mobile-legal-brand {
  display: none;
}

.today-layout, .library-page {
  width: min(100% - 68px, 1160px);
  margin: 0 auto;
  padding: 52px 0 70px;
}

.today-conversation {
  width: min(100%, 820px);
  margin: auto;
}

.legal-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 34px;
  display: flex;
}

.legal-eyebrow {
  color: #a07258;
  letter-spacing: .12em;
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 700;
}

h1 {
  letter-spacing: -.03em;
  margin: 0;
  font: 400 clamp(30px, 4vw, 46px) / 1.1 Georgia, serif;
}

.legal-heading > div > p:last-child {
  max-width: 640px;
  color: var(--lw-muted);
  margin: 12px 0 0;
  font-size: 14px;
}

.proactive-message {
  gap: 14px;
  margin: 20px 0 28px;
  display: flex;
}

.assistant-mark {
  color: #fff;
  background: var(--lw-accent);
  border-radius: 9px;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  font: italic bold 17px Georgia, serif;
  display: grid;
}

.proactive-message p {
  margin: 2px 0 16px;
  font-size: 15px;
  line-height: 1.55;
}

.alfa-card {
  border: 1px solid var(--lw-line);
  background: #fff;
  border-radius: 12px;
  padding: 19px;
  box-shadow: 0 3px 15px #e7ded7;
}

.alfa-card-top {
  align-items: center;
  gap: 12px;
  display: flex;
}

.file-icon, .doc-icon {
  color: #8b5f4c;
  background: #f1e7df;
  border-radius: 8px;
  place-items: center;
  width: 37px;
  height: 37px;
  font-size: 9px;
  font-weight: bold;
  display: grid;
}

.alfa-card strong {
  font-size: 14px;
  display: block;
}

.alfa-card small {
  color: var(--lw-muted);
  margin-top: 4px;
  font-size: 11px;
  display: block;
}

.status {
  color: #566b66;
  white-space: nowrap;
  background: #eaf1ef;
  border-radius: 99px;
  align-items: center;
  padding: 5px 8px;
  font-size: 10px;
  display: inline-flex;
}

.alfa-card-top .status {
  margin-left: auto;
}

.alfa-card ul {
  color: #5e5960;
  gap: 7px;
  margin: 18px 0;
  padding-left: 19px;
  font-size: 12px;
  display: grid;
}

.primary-button, .secondary-button {
  cursor: pointer;
  border-radius: 7px;
  min-height: 44px;
  padding: 10px 15px;
  font-size: 12px;
}

.primary-button {
  color: #fff;
  background: var(--lw-accent);
  border: 1px solid var(--lw-accent);
}

.secondary-button {
  color: var(--lw-accent);
  background: #fff;
  border: 1px solid #cdbdb3;
}

.alfa-card .primary-button {
  justify-content: space-between;
  width: 100%;
}

.suggestions {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px 44px;
  display: flex;
}

.suggestions span {
  color: var(--lw-muted);
  font-size: 11px;
}

.suggestions button {
  color: #75635b;
  border: 1px solid var(--lw-line);
  background: #fff;
  border-radius: 99px;
  min-height: 34px;
  padding: 6px 10px;
  font-size: 11px;
}

.legal-composer {
  background: #fff;
  border: 1px solid #d9cec5;
  border-radius: 12px;
  padding: 9px 12px 8px;
}

.legal-composer textarea {
  resize: vertical;
  width: 100%;
  min-height: 48px;
  max-height: 120px;
  color: var(--lw-ink);
  border: 0;
  outline: 0;
  font-size: 13px;
  line-height: 1.5;
  display: block;
}

.composer-bar {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.context-pill {
  color: #69564d;
  background: #f5eee9;
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 10px;
}

.context-pill button {
  color: #80685b;
  background: none;
  border: 0;
  min-height: 20px;
  padding: 0 0 0 7px;
}

.icon-button, .send-button {
  border: 0;
  border-radius: 7px;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
}

.icon-button {
  color: var(--lw-accent);
  background: #f6f1ed;
}

.send-button {
  color: #fff;
  background: var(--lw-accent);
  margin-left: 5px;
}

.send-button:disabled {
  opacity: .35;
}

.composer-footnote, .demo-caption {
  color: #968b84;
  margin: 9px 0 0;
  font-size: 10px;
}

.chat-reply {
  background: #f8f4f0;
  border-left: 2px solid #b99783;
  margin: 0 0 22px 44px;
  padding: 12px 14px;
  font-size: 12px;
}

.chat-reply p {
  margin: 5px 0 0;
}

.form-error {
  color: #a44d39;
  font-size: 11px;
}

.library-page {
  padding-top: 46px;
}

.toolbar, .filter-row {
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  display: flex;
}

.toolbar input, .filter-row input, .filter-row select, .research-form input, .research-form select {
  border: 1px solid var(--lw-line);
  min-height: 43px;
  color: var(--lw-ink);
  background: #fff;
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 12px;
}

.toolbar input, .filter-row input {
  flex: 1;
}

.toolbar span {
  color: var(--lw-muted);
  white-space: nowrap;
  font-size: 11px;
}

.practice-table {
  border: 1px solid var(--lw-line);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.table-head, .table-row {
  text-align: left;
  grid-template-columns: 1.6fr 1fr 1.1fr .8fr 1.15fr .8fr;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  display: grid;
}

.table-head {
  color: #8f837c;
  text-transform: uppercase;
  letter-spacing: .07em;
  background: #faf7f4;
  font-size: 10px;
}

.table-row {
  color: #655e60;
  border: 0;
  border-top: 1px solid var(--lw-line);
  cursor: pointer;
  background: #fff;
  width: 100%;
  min-height: 64px;
  font-size: 11px;
}

.table-row:hover {
  background: #fcf9f6;
}

.table-row strong {
  color: var(--lw-ink);
  font-size: 12px;
}

.documents-grid {
  gap: 10px;
  display: grid;
}

.document-card {
  border: 1px solid var(--lw-line);
  background: #fff;
  border-radius: 9px;
  align-items: center;
  gap: 13px;
  padding: 14px;
  display: flex;
}

.document-main {
  flex: 1;
  min-width: 0;
}

.document-main strong, .document-main span, .document-main small {
  overflow-wrap: anywhere;
  display: block;
}

.document-main strong {
  font-size: 13px;
}

.document-main span, .document-main small {
  color: var(--lw-muted);
  margin-top: 4px;
  font-size: 11px;
}

.danger-button {
  color: #b06b5d;
  background: none;
  border: 0;
}

.empty-state, .restricted-note {
  color: var(--lw-muted);
  background: #fff;
  border: 1px dashed #d9cfc7;
  border-radius: 9px;
  margin-top: 20px;
  padding: 28px;
  font-size: 12px;
}

.empty-state strong {
  color: var(--lw-ink);
  font-size: 14px;
}

.empty-state p {
  margin-bottom: 0;
}

.detail-panel, .modal-backdrop {
  z-index: 4;
  background: #261d1b42;
  position: fixed;
  inset: 0;
}

.detail-panel {
  background: #fff;
  width: min(460px, 100%);
  padding: 38px 30px;
  left: auto;
  overflow: auto;
  box-shadow: -10px 0 28px #33251d1c;
}

.panel-close, .modal-close {
  float: right;
  min-height: 30px;
  color: var(--lw-muted);
  background: none;
  border: 0;
  padding: 0 9px;
  font-size: 24px;
}

.detail-panel h2, .modal-card h2, .draft-builder h2, .research-results h2, .settings-card h2 {
  font: 400 27px Georgia, serif;
}

.detail-tabs {
  border-bottom: 1px solid var(--lw-line);
  gap: 3px;
  margin: 25px 0;
  display: flex;
  overflow: auto;
}

.detail-tabs button {
  min-height: 40px;
  color: var(--lw-muted);
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 8px;
  font-size: 11px;
}

.detail-tabs .selected {
  color: var(--lw-accent);
  border-bottom: 2px solid var(--lw-accent);
}

.modal-backdrop {
  place-items: center;
  padding: 20px;
  display: grid;
}

.modal-card {
  background: #fff;
  border-radius: 12px;
  width: min(420px, 100%);
  padding: 29px;
  box-shadow: 0 12px 40px #20130f33;
}

.modal-card label, .research-form label {
  color: #5e5756;
  gap: 7px;
  margin: 18px 0;
  font-size: 11px;
  display: grid;
}

.modal-card input, .research-form textarea {
  border: 1px solid var(--lw-line);
  resize: vertical;
  border-radius: 7px;
  min-height: 43px;
  padding: 10px;
}

.muted {
  color: var(--lw-muted);
  font-size: 11px;
}

.narrow-page {
  max-width: 900px;
}

.form-grid {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  display: grid;
}

.research-form, .draft-builder, .settings-card {
  border: 1px solid var(--lw-line);
  background: #fff;
  border-radius: 10px;
  padding: 22px;
}

.research-form textarea, .draft-builder textarea {
  border: 1px solid var(--lw-line);
  resize: vertical;
  border-radius: 7px;
  width: 100%;
  padding: 11px;
}

.source-pills {
  gap: 8px;
  display: flex;
}

.source-pills span {
  background: #f4ece5;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
}

.research-results {
  margin-top: 30px;
}

.research-results article {
  border: 1px solid var(--lw-line);
  background: #fff;
  border-radius: 9px;
  margin: 12px 0 26px;
  padding: 20px;
  position: relative;
}

.research-results h3 {
  margin: 6px 0;
  font-size: 15px;
}

.research-results article p {
  color: var(--lw-muted);
  font-size: 12px;
  line-height: 1.6;
}

.simulated-badge {
  color: #9a694f;
  letter-spacing: .08em;
  font-size: 9px;
  font-weight: bold;
}

.excerpt {
  color: #665d5a;
  background: #f8f4f0;
  border-left: 3px solid #d4b6a1;
  padding: 15px;
  font: italic 14px Georgia, serif;
}

.excerpt small {
  color: var(--lw-muted);
  margin-top: 10px;
  font: 11px Arial, sans-serif;
  display: block;
}

.workflow-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  display: grid;
}

.workflow-grid button {
  text-align: left;
  min-height: 185px;
  color: var(--lw-ink);
  border: 1px solid var(--lw-line);
  cursor: pointer;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
}

.workflow-grid button:hover {
  border-color: #b99b8b;
  transform: translateY(-2px);
}

.workflow-grid span {
  color: #a07258;
  font: 12px Georgia, serif;
  display: block;
}

.workflow-grid strong {
  margin: 22px 0 8px;
  font: 20px Georgia, serif;
  display: block;
}

.workflow-grid p {
  min-height: 48px;
  color: var(--lw-muted);
  font-size: 11px;
  line-height: 1.5;
}

.draft-builder {
  margin-top: 20px;
}

.draft-warning {
  color: #7c5e42;
  background: #f7eddf;
  border-radius: 6px;
  margin: 15px 0;
  padding: 12px;
  font-size: 11px;
}

.settings-card {
  gap: 4px;
  display: grid;
}

.settings-card h2 {
  margin: 0 0 15px;
}

.member {
  border-top: 1px solid var(--lw-line);
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  display: flex;
}

.member > div {
  flex: 1;
}

.member strong {
  font-size: 12px;
}

.muted-avatar {
  color: #81746c;
  background: #e0d8d2;
}

.settings-card .secondary-button {
  justify-self: start;
  margin-top: 15px;
}

.restricted-note {
  background: #fbf5eb;
  border-color: #decdb5;
}

.restricted-note strong {
  color: #765a3e;
}

.revision-workspace {
  grid-template-columns: 220px minmax(340px, 1fr) minmax(320px, 400px);
  min-height: calc(100vh - 58px);
  display: grid;
}

.revision-files {
  border-right: 1px solid var(--lw-line);
  background: #f1ebe6;
  padding: 26px 15px;
}

.revision-files button {
  text-align: left;
  color: #645b59;
  overflow-wrap: anywhere;
  background: none;
  border: 0;
  border-radius: 6px;
  width: 100%;
  min-height: 44px;
  padding: 9px;
  font-size: 11px;
  display: block;
}

.revision-files .file-selected {
  color: var(--lw-ink);
  background: #fff;
  font-weight: bold;
}

.contract-document {
  min-width: 0;
  padding: 30px;
  overflow: auto;
}

.revision-title {
  border-bottom: 1px solid var(--lw-line);
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  display: flex;
}

.revision-title h1 {
  font-size: 29px;
}

.revision-title p:last-child {
  color: var(--lw-muted);
  font-size: 11px;
}

.contract-page {
  background: #fff;
  width: min(100%, 650px);
  min-height: 600px;
  margin: 30px auto;
  padding: 38px 48px;
  font: 14px / 1.75 Georgia, serif;
  box-shadow: 0 3px 16px #d8cec633;
}

.contract-page h2 {
  text-align: center;
  letter-spacing: .06em;
  font-size: 18px;
}

.contract-page p {
  margin: 25px 0;
}

.highlight-clause {
  background: #fff0ca;
  padding: 5px;
  scroll-margin-top: 20px;
}

.accepted-clause {
  background: #e2f1eb;
  padding: 5px;
  scroll-margin-top: 20px;
}

.assistant-panel {
  border-left: 1px solid var(--lw-line);
  background: #fbf8f5;
  padding: 23px 18px;
  overflow: auto;
}

.assistant-panel-head {
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  display: flex;
}

.assistant-panel-head strong, .assistant-panel-head small {
  display: block;
}

.assistant-panel-head strong {
  font-size: 12px;
}

.assistant-panel-head small {
  color: var(--lw-muted);
  margin-top: 3px;
  font-size: 10px;
}

.finding-accepted {
  opacity: .8;
}

.finding-meta {
  justify-content: space-between;
  gap: 5px;
  display: flex;
}

.finding-meta strong {
  color: #9a694f;
  font-size: 11px;
}

.finding-meta span {
  color: var(--lw-muted);
  font-size: 9px;
}

.finding h3 {
  margin: 8px 0 6px;
  font-size: 13px;
}

.finding p {
  color: var(--lw-muted);
  margin: 5px 0;
  font-size: 11px;
  line-height: 1.5;
}

.finding .proposal {
  color: var(--lw-ink);
  background: #fff;
  border-radius: 5px;
  padding: 9px;
}

.finding a {
  color: #795c4c;
  font-size: 10px;
}

.finding details {
  margin-top: 10px;
  font-size: 10px;
}

.finding details del, .finding details ins {
  background: #f3e5e1;
  margin-top: 6px;
  padding: 6px;
  text-decoration-color: #a66d61;
  display: block;
}

.finding details ins {
  background: #e4f0e9;
  text-decoration: none;
}

.finding-actions button {
  cursor: pointer;
  border-radius: 5px;
  min-height: 34px;
  padding: 7px 12px;
  font-size: 10px;
}

.accept-button {
  color: #fff;
  background: var(--lw-green);
  border: 1px solid var(--lw-green);
}

.reject-button {
  color: #795c4c;
  background: #fff;
  border: 1px solid #cdbdb3;
}

.link-button, .back-practice {
  color: #795c4c;
  cursor: pointer;
  background: none;
  border: 0;
  min-height: 32px;
  padding: 5px 0;
  font-size: 10px;
}

.save-draft {
  width: 100%;
  margin-top: 18px;
}

.success-message {
  color: #426a57;
  background: #e2f1eb;
  border-radius: 5px;
  padding: 10px;
  font-size: 11px;
}

.back-practice {
  margin: 14px auto;
  display: block;
}

.revision-mobile-tabs {
  display: none;
}

@media (max-width: 850px) {
  .legal-sidebar {
    flex-basis: 66px;
    width: 66px;
    padding: 18px 9px;
  }

  .legal-brand {
    width: 42px;
    height: 38px;
    margin: 0 auto 22px;
  }

  .legal-brand-logo {
    object-position: center;
    width: 42px;
    height: 38px;
  }

  .legal-nav a:not(.active):after, .legal-nav a {
    justify-content: center;
    font-size: 0;
  }

  .legal-nav a span {
    font-size: 20px;
  }

  .legal-nav a.active {
    font-size: 0;
  }

  .legal-sidebar-bottom > a {
    justify-content: center;
    font-size: 0;
  }

  .legal-profile {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .legal-profile span:not(.avatar) {
    display: none;
  }

  .legal-main {
    min-width: calc(100% - 66px);
  }

  .legal-topbar {
    padding: 0 18px;
  }

  .mobile-legal-brand {
    align-items: center;
    display: flex;
  }

  .mobile-legal-brand img {
    object-fit: contain;
    object-position: left center;
    width: 132px;
    height: 38px;
    display: block;
  }

  .demo-notice {
    display: none;
  }

  .today-layout, .library-page {
    width: min(100% - 34px, 1160px);
    padding-top: 34px;
  }

  .revision-workspace {
    grid-template-columns: 1fr;
  }

  .revision-files {
    display: none;
  }

  .revision-mobile-tabs {
    background: #f1ebe6;
    gap: 10px;
    padding: 10px 15px;
    display: flex;
  }

  .revision-mobile-tabs button {
    background: none;
    border: 0;
    min-height: 38px;
    font-size: 11px;
  }

  .revision-mobile-tabs .selected {
    border-bottom: 2px solid var(--lw-accent);
  }

  .assistant-panel {
    border-left: 0;
    border-top: 1px solid var(--lw-line);
  }

  .contract-page {
    padding: 25px;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .workflow-grid button {
    min-height: 130px;
  }

  .workflow-grid strong {
    margin: 12px 0 5px;
  }

  .table-head {
    display: none;
  }

  .table-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .table-row span:nth-child(2), .table-row span:nth-child(3), .table-row span:nth-child(5) {
    display: none;
  }

  .table-row .status {
    justify-self: end;
  }

  .detail-panel {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-process-button {
    min-height: 44px;
    padding-inline: 0;
  }

  .sidebar-process-button > span:last-child {
    display: none;
  }

  .sidebar-process-button > span:first-child {
    font-size: 23px;
  }

  .sidebar-process-feedback {
    clip: rect(0 0 0 0);
    white-space: nowrap;
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
  }
}

@media (max-width: 520px) {
  .legal-sidebar {
    flex-basis: 52px;
    width: 52px;
  }

  .legal-main {
    min-width: calc(100% - 52px);
  }

  .legal-topbar {
    height: 52px;
    padding: 0 12px;
    font-size: 10px;
  }

  .mobile-legal-brand img {
    width: 116px;
    height: 36px;
  }

  .today-layout, .library-page {
    width: calc(100% - 24px);
    padding-top: 27px;
  }

  .legal-heading {
    margin-bottom: 25px;
    display: block;
  }

  .legal-heading .primary-button {
    width: 100%;
    margin-top: 15px;
  }

  .alfa-card-top {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .alfa-card-top .status {
    margin-left: 0;
  }

  .proactive-message {
    gap: 9px;
  }

  .suggestions {
    margin-left: 0;
  }

  .suggestions span {
    width: 100%;
  }

  .filter-row {
    flex-wrap: wrap;
  }

  .filter-row input {
    flex-basis: 100%;
  }

  .filter-row select {
    flex: 1;
    min-width: 0;
  }

  .document-card {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .document-card .status {
    margin-left: auto;
  }

  .document-main {
    flex-basis: calc(100% - 55px);
  }

  .document-card .danger-button {
    margin-left: auto;
  }

  .revision-title {
    display: block;
  }

  .revision-title .secondary-button {
    margin-top: 12px;
  }

  .contract-page {
    margin: 18px 0;
    padding: 20px 18px;
    font-size: 13px;
  }

  .assistant-panel {
    padding: 18px 13px;
  }

  .demo-caption {
    line-height: 1.5;
  }
}

.sr-only {
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.aziende-list {
  background: var(--futura-surface, #fff);
  border: 1px solid var(--futura-border, var(--lw-line));
  border-radius: 10px;
  display: grid;
  overflow: hidden;
}

.azienda-row {
  border: 0;
  border-top: 1px solid var(--futura-border, var(--lw-line));
  width: 100%;
  min-height: 82px;
  color: var(--futura-secondary, var(--lw-muted));
  text-align: left;
  cursor: pointer;
  background: none;
  grid-template-columns: 42px minmax(0, 1fr) 120px auto 20px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  display: grid;
}

.azienda-row:first-child {
  border-top: 0;
}

.azienda-row:hover {
  background: var(--futura-selection, #f5f8fb);
}

.azienda-avatar {
  width: 38px;
  height: 38px;
  color: var(--futura-primary, var(--lw-accent));
  background: var(--futura-selection, #edf3f8);
  border-radius: 11px;
  place-items: center;
  font: 600 17px Georgia, serif;
  display: grid;
}

.azienda-main {
  min-width: 0;
}

.azienda-main strong, .azienda-main span, .azienda-main small, .azienda-stats strong, .azienda-stats span {
  overflow-wrap: anywhere;
  display: block;
}

.azienda-main strong {
  color: var(--futura-text, var(--lw-ink));
  font-size: 13px;
}

.azienda-main span, .azienda-main small, .azienda-stats span {
  margin-top: 4px;
  font-size: 11px;
}

.azienda-main small {
  color: var(--lw-muted);
}

.azienda-stats strong {
  color: var(--futura-text, var(--lw-ink));
  font-size: 11px;
}

.azienda-arrow {
  color: var(--futura-primary, var(--lw-accent));
  font-size: 18px;
}

.azienda-detail .detail-lead {
  color: var(--lw-muted);
  margin: 0 0 25px;
  font-size: 12px;
}

.azienda-facts {
  border-top: 1px solid var(--lw-line);
  border-bottom: 1px solid var(--lw-line);
  gap: 14px;
  padding: 17px 0;
  display: grid;
}

.azienda-facts div {
  grid-template-columns: 90px 1fr;
  gap: 10px;
  display: grid;
}

.azienda-facts dt {
  color: var(--lw-muted);
  font-size: 10px;
}

.azienda-facts dd {
  margin: 0;
  font-size: 12px;
}

.azienda-detail h3 {
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 27px 0 10px;
  font-size: 11px;
}

.azienda-linked {
  gap: 8px;
  display: grid;
}

.azienda-linked a {
  border: 1px solid var(--lw-line);
  color: var(--lw-ink);
  border-radius: 8px;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  font-size: 11px;
  text-decoration: none;
  display: flex;
}

.azienda-linked a:hover {
  border-color: var(--futura-primary, var(--lw-accent));
}

.azienda-linked span {
  color: var(--lw-muted);
}

.azienda-activity {
  color: var(--lw-muted);
  gap: 5px;
  margin-top: 24px;
  font-size: 11px;
  line-height: 1.5;
  display: grid;
}

.azienda-activity strong {
  color: var(--lw-ink);
}

.detail-note {
  color: var(--lw-muted);
  margin-top: 25px;
  font-size: 10px;
  line-height: 1.5;
}

.azienda-add-button {
  white-space: nowrap;
}

.azienda-feedback {
  min-height: 18px;
  color: var(--futura-success, #087443);
  margin: -17px 0 10px;
  font-size: 11px;
}

.azienda-form-card {
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.azienda-form-card h2 {
  margin-bottom: 8px;
}

.azienda-form-card form {
  gap: 0;
  display: grid;
}

.azienda-form-card label {
  margin: 16px 0 0;
}

.azienda-form-card input {
  width: 100%;
}

.azienda-form-actions {
  justify-content: flex-end;
  gap: 9px;
  margin-top: 23px;
  display: flex;
}

.azienda-form-actions button {
  min-width: 104px;
}

.azienda-form-actions button:disabled {
  cursor: wait;
  opacity: .65;
}

@media (max-width: 850px) {
  .azienda-row {
    grid-template-columns: 42px minmax(0, 1fr) auto 20px;
  }

  .azienda-stats {
    display: none;
  }
}

@media (max-width: 520px) {
  .azienda-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    padding-inline: 12px;
  }

  .azienda-avatar {
    width: 34px;
    height: 34px;
  }

  .azienda-row .status {
    grid-column: 2;
    justify-self: start;
  }

  .azienda-arrow {
    grid-area: 1 / 3 / span 2;
  }

  .azienda-main small {
    display: none;
  }

  .azienda-add-button {
    width: 100%;
  }

  .azienda-feedback {
    margin-top: -12px;
  }

  .azienda-form-actions {
    flex-direction: column-reverse;
  }

  .azienda-form-actions button {
    width: 100%;
  }
}

.processi-notice {
  color: var(--futura-text-muted, var(--futura-secondary));
  background: var(--futura-selection);
  border: 1px solid var(--futura-border);
  border-radius: 12px;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 24px;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.5;
  display: flex;
}

.processi-notice span {
  color: var(--futura-primary);
  font-size: 16px;
}

.processi-notice p {
  margin: 0;
}

.processi-notice strong {
  color: var(--futura-text);
  margin-right: 5px;
}

.processi-add-button {
  white-space: nowrap;
}

.processi-feedback {
  color: var(--futura-success);
  margin: -20px 0 18px;
  font-size: 11px;
}

.processi-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  display: grid;
}

.processo-card {
  text-align: left;
  min-width: 0;
  color: var(--futura-text);
  background: var(--futura-surface);
  border: 1px solid var(--futura-border);
  cursor: pointer;
  border-radius: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 13px;
  padding: 20px;
  display: grid;
  position: relative;
  box-shadow: 0 5px 18px #12385b0d;
}

.processo-card:hover {
  border-color: var(--futura-primary);
  background: #fbfdff;
}

.processo-icon {
  width: 42px;
  height: 42px;
  color: var(--futura-primary);
  background: var(--futura-selection);
  border-radius: 11px;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  display: grid;
}

.processo-card-copy {
  min-width: 0;
}

.processo-card-copy strong, .processo-card-copy span, .processo-card-copy small {
  display: block;
}

.processo-card-copy strong {
  margin: 1px 0 7px;
  font-size: 15px;
}

.processo-card-copy span {
  color: var(--futura-secondary);
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.5;
}

.processo-card-copy small {
  color: var(--futura-secondary);
  margin-top: 11px;
  font-size: 10px;
}

.processo-card > .status {
  grid-column: 2;
  justify-self: start;
  margin-top: 2px;
}

.processo-arrow {
  color: var(--futura-primary);
  align-self: center;
  font-size: 18px;
}

.processi-detail h3 {
  margin: 27px 0 10px;
  font-size: 13px;
}

.processi-detail ol {
  color: var(--futura-secondary);
  gap: 12px;
  margin: 0;
  padding-left: 22px;
  font-size: 12px;
  line-height: 1.5;
  display: grid;
}

.processi-detail-note {
  color: var(--futura-secondary);
  background: var(--futura-background);
  border-radius: 9px;
  margin-top: 28px;
  padding: 12px;
  font-size: 11px;
}

@media (max-width: 520px) {
  .processi-notice {
    display: block;
  }

  .processi-notice span {
    margin-bottom: 5px;
    display: block;
  }

  .processi-grid {
    grid-template-columns: 1fr;
  }

  .processo-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .processo-card > .status {
    grid-column: 2;
  }

  .processo-arrow {
    position: absolute;
    top: 20px;
    right: 17px;
  }

  .processo-card-copy {
    padding-right: 18px;
  }
}

.tasks-notice {
  color: var(--futura-text-muted);
  background: var(--futura-selection);
  border: 1px solid var(--futura-border);
  border-radius: 12px;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 24px;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.5;
  display: flex;
}

.tasks-notice span {
  color: var(--futura-primary);
  font-size: 16px;
}

.tasks-notice p {
  margin: 0;
}

.tasks-notice strong {
  color: var(--futura-text);
  margin-right: 5px;
}

.tasks-list {
  background: var(--futura-surface);
  border: 1px solid var(--futura-border);
  border-radius: 14px;
  overflow: hidden;
}

.tasks-list-heading {
  background: var(--futura-sidebar);
  border-bottom: 1px solid var(--futura-border);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
  display: flex;
}

.tasks-list-heading h2 {
  margin: 0;
  font: 400 20px Georgia, serif;
}

.tasks-list-heading span {
  color: var(--futura-secondary);
  font-size: 11px;
}

.task-row {
  text-align: left;
  width: 100%;
  color: var(--futura-text);
  background: var(--futura-surface);
  border: 0;
  border-bottom: 1px solid var(--futura-border);
  cursor: pointer;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  display: grid;
  position: relative;
}

.task-row:last-child {
  border-bottom: 0;
}

.task-row:hover {
  background: var(--futura-selection);
}

.task-row-icon {
  color: #8a4a14;
  background: #fbe8d6;
  border-radius: 10px;
  place-items: center;
  width: 34px;
  height: 34px;
  font-weight: 700;
  display: grid;
}

.task-row-copy {
  min-width: 0;
}

.task-row-copy strong, .task-row-copy span, .task-row-copy small {
  overflow-wrap: anywhere;
  display: block;
}

.task-row-copy strong {
  font-size: 14px;
}

.task-row-copy span {
  color: var(--futura-secondary);
  margin-top: 5px;
  font-size: 12px;
}

.task-row-copy small {
  color: var(--futura-secondary);
  margin-top: 6px;
  font-size: 10px;
}

.task-row-arrow {
  color: var(--futura-primary);
  font-size: 18px;
}

.status-da-fare {
  color: #8a4a14;
  background: #fbe8d6;
}

.status-completato {
  color: #075e4d;
  background: #ddf3ec;
}

.status-urgent {
  color: #8a4a14;
  background: #fbe8d6;
}

.task-detail {
  padding-top: 38px;
}

.task-origin {
  color: var(--futura-secondary);
  margin: 0 0 20px;
  font-size: 12px;
}

.task-detail-status {
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
  display: flex;
}

.task-facts {
  border-top: 1px solid var(--futura-border);
  border-bottom: 1px solid var(--futura-border);
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0;
  padding: 18px 0;
  display: grid;
}

.task-facts div {
  gap: 5px;
  display: grid;
}

.task-facts dt {
  color: var(--futura-secondary);
  font-size: 10px;
}

.task-facts dd {
  color: var(--futura-text);
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.task-description {
  color: var(--futura-secondary);
  margin: 23px 0;
  font-size: 13px;
  line-height: 1.6;
}

.task-actions {
  gap: 10px;
  display: grid;
}

.task-actions button {
  width: 100%;
  min-height: 44px;
}

.task-feedback {
  color: var(--futura-success);
  background: var(--futura-selection);
  border-radius: 9px;
  margin: 0;
  padding: 11px 12px;
  font-size: 12px;
  line-height: 1.45;
}

.task-detail-note {
  color: var(--futura-secondary);
  background: var(--futura-background);
  border-radius: 9px;
  margin-top: 26px;
  padding: 12px;
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .tasks-notice {
    display: block;
  }

  .tasks-notice span {
    margin-bottom: 5px;
    display: block;
  }

  .task-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .task-row > .status {
    grid-column: 2;
    justify-self: start;
  }

  .task-row-arrow {
    position: absolute;
    right: 17px;
  }

  .task-row-copy {
    padding-right: 18px;
  }

  .task-facts {
    grid-template-columns: 1fr;
    gap: 13px;
  }
}

.workflow-intro {
  color: var(--futura-text-muted);
  background: var(--futura-selection);
  border-left: 3px solid var(--futura-primary);
  border-radius: 8px;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 22px 44px;
  padding: 13px 15px;
  font-size: 12px;
  line-height: 1.5;
  display: flex;
}

.workflow-intro strong {
  color: var(--futura-text);
  white-space: nowrap;
}

.task-workflow-card {
  background: var(--futura-surface);
  border: 1px solid var(--futura-border);
  border-radius: 14px;
  margin: 0 0 24px 44px;
  padding: 20px;
  box-shadow: 0 5px 18px #12385b0f;
}

.task-card-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.task-card-heading h2 {
  color: var(--futura-text);
  margin: 0;
  font-size: 19px;
}

.task-status {
  color: var(--futura-primary);
  text-transform: capitalize;
  white-space: nowrap;
  background: #e7f0f8;
  border-radius: 99px;
  padding: 5px 9px;
  font-size: 11px;
}

.task-request {
  color: var(--futura-text-muted);
  margin: 13px 0 18px;
  font-size: 13px;
}

.task-plan {
  border: 1px solid var(--futura-border);
  background: #f7fafc;
  border-radius: 10px;
  gap: 15px;
  padding: 15px;
  display: grid;
}

.task-plan strong, .task-result strong {
  color: var(--futura-text);
  margin-bottom: 5px;
  font-size: 12px;
  display: block;
}

.task-plan p, .task-result p {
  color: var(--futura-text-muted);
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.task-plan ol {
  color: var(--futura-text-muted);
  margin: 4px 0 0;
  padding-left: 23px;
  font-size: 13px;
  line-height: 1.8;
}

.task-plan input {
  border: 1px solid var(--futura-border);
  width: 100%;
  min-height: 34px;
  color: var(--futura-text);
  background: #fff;
  border-radius: 6px;
  padding: 6px 8px;
}

.task-result {
  background: #edf8f2;
  border-radius: 8px;
  margin-top: 15px;
  padding: 13px;
}

.task-error {
  color: #9b3e32;
  background: #fff1ee;
  border: 1px solid #efc5bd;
  border-radius: 8px;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  padding: 12px;
  font-size: 12px;
  display: flex;
}

.task-error strong {
  margin-right: 3px;
}

.task-error .secondary-button {
  min-height: 30px;
  margin-left: auto;
  padding: 5px 9px;
}

.task-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 17px;
  display: flex;
}

.task-actions .primary-button, .task-actions .secondary-button {
  min-height: 38px;
}

.text-button {
  min-height: 34px;
  color: var(--futura-primary);
  background: none;
  border: 0;
  padding: 5px 8px;
  font-size: 12px;
}

.text-button:hover {
  text-decoration: underline;
}

.task-hint {
  color: var(--futura-text-muted);
  margin: 12px 0 0;
  font-size: 11px;
}

.task-completed {
  border-color: #a8d5bd;
}

@media (max-width: 520px) {
  .workflow-intro, .task-workflow-card {
    margin-left: 0;
  }

  .workflow-intro {
    display: block;
  }

  .workflow-intro strong {
    margin-bottom: 5px;
    display: block;
  }

  .task-card-heading {
    display: block;
  }

  .task-status {
    margin-top: 10px;
    display: inline-block;
  }

  .task-actions {
    align-items: stretch;
  }

  .task-actions .primary-button, .task-actions .secondary-button {
    width: 100%;
  }

  .task-error {
    align-items: flex-start;
  }
}

:root {
  --futura-primary: #12385b;
  --futura-primary-hover: #0c2944;
  --futura-background: #f5f7fa;
  --futura-sidebar: #e8eef4;
  --futura-surface: #fff;
  --futura-selection: #dce8f3;
  --futura-text: #1d2935;
  --futura-secondary: #5e6c7a;
  --futura-border: #d5dee7;
  --futura-accent: #89877e;
  --futura-error: #b42318;
  --futura-warning: #9a6700;
  --futura-success: #087443;
  --lw-ink: var(--futura-text);
  --lw-muted: var(--futura-secondary);
  --lw-line: var(--futura-border);
  --lw-warm: var(--futura-background);
  --lw-card: var(--futura-surface);
  --lw-accent: var(--futura-primary);
}

.legal-app {
  color: var(--futura-text);
  background: var(--futura-background);
  font-family: Arial, sans-serif;
  font-size: 16px;
}

.legal-sidebar {
  background: var(--futura-sidebar);
  border-color: var(--futura-border);
  height: 100vh;
  min-height: 100vh;
  position: sticky;
  top: 0;
  overflow: hidden;
}

.legal-nav {
  scrollbar-width: thin;
  min-height: 0;
  overflow-y: auto;
}

.legal-sidebar-bottom {
  flex: none;
}

.legal-profile {
  min-width: 0;
}

.legal-brand {
  color: var(--futura-text);
  letter-spacing: -.02em;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.legal-profile {
  color: var(--futura-text);
  cursor: pointer;
  border-radius: 12px;
}

.legal-profile:hover {
  background: var(--futura-selection);
}

.legal-profile .avatar {
  color: var(--futura-primary);
  background: var(--futura-selection);
}

.legal-profile strong {
  color: var(--futura-text);
}

.legal-profile small {
  color: var(--futura-secondary);
}

.legal-profile:focus-visible {
  outline: 3px solid var(--futura-focus, #7aa7d4);
  outline-offset: 2px;
}

.legal-profile-backdrop {
  z-index: 10;
  background: #12385b2e;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 18px 18px 18px 258px;
  display: flex;
  position: fixed;
  inset: 0;
}

.legal-profile-dialog {
  width: min(360px, 100vw - 36px);
  color: var(--futura-text);
  background: var(--futura-surface);
  border: 1px solid var(--futura-border);
  border-radius: 16px;
  padding: 25px;
  position: relative;
  box-shadow: 0 18px 45px #12385b2e;
}

.legal-profile-close {
  width: 34px;
  height: 34px;
  color: var(--futura-secondary);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 9px;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  display: grid;
  position: absolute;
  top: 10px;
  right: 11px;
}

.legal-profile-close:hover {
  color: var(--futura-primary);
  background: var(--futura-selection);
}

.legal-profile-close:focus-visible {
  outline: 3px solid var(--futura-focus, #7aa7d4);
  outline-offset: 2px;
}

.legal-profile-heading {
  align-items: center;
  gap: 14px;
  padding-right: 25px;
  display: flex;
}

.legal-profile-avatar-large {
  width: 58px;
  height: 58px;
  color: var(--futura-primary);
  background: var(--futura-selection);
  border-radius: 50%;
  flex: 0 0 58px;
  place-items: center;
  font-size: 17px;
  font-weight: 700;
  display: grid;
}

.legal-profile-eyebrow {
  color: var(--futura-primary);
  letter-spacing: .1em;
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 700;
}

.legal-profile-dialog h2 {
  color: var(--futura-text);
  margin: 0;
  font-size: 19px;
}

.legal-profile-heading p:last-child {
  color: var(--futura-secondary);
  margin: 5px 0 0;
  font-size: 12px;
}

.legal-profile-demo-note {
  color: var(--futura-secondary);
  border-top: 1px solid var(--futura-border);
  margin: 22px 0 0;
  padding-top: 16px;
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 850px) {
  .legal-profile-backdrop {
    align-items: flex-end;
    padding: 18px;
  }

  .legal-profile-dialog {
    width: min(360px, 100%);
  }
}

.alfa-card, .legal-composer, .practice-table, .document-card, .research-form, .draft-builder, .settings-card, .workflow-grid button, .modal-card, .contract-page {
  background: var(--futura-surface);
  border-color: var(--futura-border);
}

.legal-nav a, .legal-sidebar-bottom > a {
  color: var(--futura-secondary);
  border-radius: 12px;
}

.legal-nav a.active, .legal-nav a:hover, .legal-sidebar-bottom > a.active {
  color: var(--futura-primary);
  background: var(--futura-surface);
  box-shadow: 0 1px 3px #12385b1a;
}

.legal-sidebar-bottom {
  border-color: var(--futura-border);
}

.legal-topbar {
  color: var(--futura-secondary);
  border-color: var(--futura-border);
}

.demo-notice {
  color: var(--futura-accent);
}

h1, .detail-panel h2, .modal-card h2, .draft-builder h2, .research-results h2, .settings-card h2, .workflow-grid strong {
  color: var(--futura-text);
  font-family: Georgia, serif;
}

.legal-eyebrow {
  color: var(--futura-primary);
}

.assistant-mark, .brand-mark {
  color: var(--futura-surface);
  background: var(--futura-primary);
}

.primary-button, .send-button {
  color: var(--futura-surface);
  background: var(--futura-primary);
  border-color: var(--futura-primary);
  border-radius: 12px;
}

.primary-button:hover, .send-button:hover {
  background: var(--futura-primary-hover);
  border-color: var(--futura-primary-hover);
}

.secondary-button {
  color: var(--futura-primary);
  border-color: var(--futura-border);
  border-radius: 12px;
}

.settings-demo-page {
  width: min(100% - 48px, 900px);
}

.settings-demo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  display: grid;
}

.settings-demo-card {
  gap: 14px;
}

.settings-demo-card .settings-section-heading {
  align-items: center;
}

.settings-demo-card .settings-section-heading h2 {
  margin: 0;
}

.settings-demo-card .settings-help {
  color: var(--futura-secondary);
}

.settings-demo-card .skills-list li {
  border-color: var(--futura-border);
  background: var(--futura-background);
}

.settings-demo-card .skills-list strong {
  color: var(--futura-text);
}

.settings-demo-card .skills-list span, .settings-demo-card .skills-state {
  color: var(--futura-secondary);
}

.settings-demo-card .skill-form {
  border-color: var(--futura-border);
  background: var(--futura-background);
}

.settings-demo-card .skill-form input, .settings-demo-card .skill-form textarea {
  border-color: var(--futura-border);
  color: var(--futura-text);
}

.company-profile-card {
  gap: 16px;
}

.company-profile-heading {
  align-items: center;
  gap: 12px;
  display: flex;
}

.company-profile-heading h2 {
  margin: 0;
}

.company-profile-mark {
  width: 42px;
  height: 42px;
  color: var(--futura-surface);
  background: var(--futura-primary);
  letter-spacing: .04em;
  border-radius: 12px;
  flex: 0 0 42px;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  display: grid;
}

.company-profile-name {
  border-bottom: 1px solid var(--futura-border);
  gap: 4px;
  padding-bottom: 14px;
  display: grid;
}

.company-profile-name strong {
  color: var(--futura-text);
  font-size: 17px;
}

.company-profile-name span {
  color: var(--futura-primary);
  font-size: 13px;
  font-weight: 700;
}

.company-profile-description, .company-profile-note {
  color: var(--futura-secondary);
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.company-profile-facts {
  gap: 11px;
  margin: 0;
  display: grid;
}

.company-profile-facts div {
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  display: grid;
}

.company-profile-facts dt {
  color: var(--futura-secondary);
  font-size: 10px;
}

.company-profile-facts dd {
  color: var(--futura-text);
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 12px;
}

.company-profile-note {
  border-top: 1px solid var(--futura-border);
  padding-top: 14px;
  font-size: 11px;
}

.suggestions button, .icon-button {
  color: var(--futura-primary);
  background: var(--futura-surface);
  border-color: var(--futura-border);
}

.suggestions button:hover, .workflow-grid button:hover, .table-row:hover {
  background: var(--futura-selection);
}

.today-conversation > .suggestions {
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0 2px;
}

.today-conversation > .suggestions span {
  color: var(--futura-secondary);
  font-size: 13px;
}

.today-conversation > .suggestions button {
  max-width: 100%;
  min-height: 42px;
  color: var(--futura-primary);
  overflow-wrap: anywhere;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 12px;
}

.suggestion-chip {
  border: 1px solid var(--futura-border);
  background: var(--futura-surface);
  border-radius: 999px;
  align-items: stretch;
  max-width: 100%;
  display: inline-flex;
  overflow: hidden;
}

.today-conversation > .suggestions .suggestion-chip > button:first-child {
  border: 0;
  border-radius: 0;
}

.today-conversation > .suggestions .suggestion-dismiss {
  border: 0;
  border-left: 1px solid var(--futura-border);
  width: 34px;
  min-width: 34px;
  min-height: 42px;
  color: var(--futura-secondary);
  opacity: .7;
  background: none;
  border-radius: 0;
  place-items: center;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  display: grid;
}

.today-conversation > .suggestions .suggestion-dismiss:hover {
  color: var(--futura-primary);
  background: var(--futura-selection);
  opacity: 1;
}

.proactive-legal-message {
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.proactive-legal-message p {
  color: var(--futura-text);
  margin: 2px 0 7px;
  font-size: 15px;
  line-height: 1.5;
}

.proactive-legal-message .proactive-legal-detail {
  color: var(--futura-secondary);
  margin: 0 0 15px;
  font-size: 13px;
}

.alfa-context-card {
  background: var(--futura-surface);
  border: 1px solid var(--futura-border);
  border-radius: 14px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  padding: 18px;
  display: grid;
  box-shadow: 0 5px 18px #12385b12;
}

.alfa-context-icon {
  width: 40px;
  height: 40px;
  color: var(--futura-primary);
  background: var(--futura-selection);
  border-radius: 10px;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  display: grid;
}

.alfa-context-copy {
  min-width: 0;
}

.alfa-context-copy strong, .alfa-context-copy span {
  display: block;
}

.alfa-context-copy strong {
  color: var(--futura-text);
  font-size: 14px;
}

.alfa-context-copy > span {
  color: var(--futura-secondary);
  overflow-wrap: anywhere;
  margin-top: 5px;
  font-size: 11px;
}

.alfa-context-meta {
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  display: flex;
}

.alfa-context-meta span {
  color: var(--futura-primary);
  background: var(--futura-selection);
  border-radius: 999px;
  margin: 0;
  padding: 4px 8px;
  font-size: 10px;
  display: inline-block;
}

.alfa-context-actions {
  flex-wrap: wrap;
  grid-column: 2;
  gap: 8px;
  margin-top: 5px;
  display: flex;
}

.alfa-context-actions button {
  min-height: 40px;
}

.proactive-feedback {
  color: var(--futura-success);
  margin: 9px 0 0 52px;
  font-size: 11px;
}

.context-pill, .source-pills span {
  color: var(--futura-primary);
  background: var(--futura-selection);
}

.chat-reply {
  background: var(--futura-selection);
  border-left-color: var(--futura-primary);
}

.proactive-message, .assistant-panel {
  background: none;
}

.assistant-panel {
  border-color: var(--futura-border);
}

.table-head {
  color: var(--futura-secondary);
  background: var(--futura-sidebar);
}

.table-row {
  color: var(--futura-secondary);
  background: var(--futura-surface);
  border-color: var(--futura-border);
}

.table-row strong, .document-main strong, .empty-state strong {
  color: var(--futura-text);
}

input, textarea, select {
  color: var(--futura-text);
  background: var(--futura-surface);
  border-color: var(--futura-border);
  border-radius: 12px;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--futura-primary);
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--futura-accent);
  outline-offset: 3px;
}

.status-da-rivedere {
  color: #7a3b12;
  background: #fbe8d6;
}

.status-in-corso {
  color: #075e4d;
  background: #ddf3ec;
}

.status-in-attesa, .status-restricted {
  color: #795400;
  background: #fff0c2;
}

.status-archiviata {
  color: var(--futura-secondary);
  background: var(--futura-sidebar);
}

.form-error {
  color: var(--futura-error);
}

.draft-warning {
  color: #704b00;
  background: #fff0c2;
}

.highlight-clause {
  background: #fff0c2;
}

.accepted-clause {
  background: #ddf3ec;
}

.legal-composer {
  border-radius: 16px;
  box-shadow: 0 5px 20px #12385b12;
}

.model-selector {
  grid-area: 2 / 1;
  min-width: 0;
  position: relative;
}

.model-selector-trigger {
  max-width: 100%;
  min-height: 44px;
  color: var(--futura-primary);
  background: var(--futura-background);
  border: 1px solid var(--futura-border);
  cursor: pointer;
  text-align: left;
  border-radius: 10px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  display: flex;
}

.model-selector-trigger:disabled {
  cursor: not-allowed;
  opacity: .65;
}

.model-selector-trigger strong {
  max-width: 160px;
  color: var(--futura-text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  overflow: hidden;
}

.model-selector-label {
  color: var(--futura-secondary);
  font-size: 10px;
}

.model-selector-menu {
  z-index: 3;
  background: var(--futura-surface);
  border: 1px solid var(--futura-border);
  border-radius: 12px;
  width: min(310px, 100vw - 48px);
  padding: 6px;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  box-shadow: 0 10px 28px #12385b29;
}

.model-option {
  width: 100%;
  min-height: 52px;
  color: var(--futura-text);
  cursor: pointer;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 8px;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  display: flex;
}

.model-option:hover, .model-option.selected {
  background: var(--futura-selection);
}

.model-option strong {
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  display: flex;
}

.model-option small {
  color: var(--futura-primary);
  background: var(--futura-surface);
  border-radius: 99px;
  padding: 2px 5px;
  font-size: 9px;
}

.model-option em {
  color: var(--futura-secondary);
  margin-top: 4px;
  font-size: 10px;
  font-style: normal;
  line-height: 1.35;
  display: block;
}

.model-state {
  color: var(--futura-secondary);
  grid-column: 1 / -1;
  margin: 2px 0 0;
  font-size: 11px;
}

.model-state button {
  color: var(--futura-primary);
  cursor: pointer;
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
}

.model-used {
  color: var(--futura-secondary);
  margin: 8px 0 0;
  font-size: 11px;
}

.model-used strong {
  color: var(--futura-primary);
}

.prompt-improvement-tools {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0 14px;
  display: flex;
}

.prompt-improvement-button {
  min-height: 44px;
  color: var(--futura-primary);
  background: var(--futura-selection);
  border: 1px solid var(--futura-border);
  cursor: pointer;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
}

.prompt-improvement-button:hover {
  border-color: var(--futura-primary);
  background: #dcecf7;
}

.prompt-improvement-button:disabled {
  cursor: wait;
  opacity: .68;
}

.prompt-improvement-tools span {
  color: var(--futura-secondary);
  font-size: 11px;
}

.prompt-improvement-feedback {
  color: var(--futura-secondary);
  margin: 9px 3px 0;
  font-size: 12px;
  line-height: 1.45;
}

.prompt-proposal {
  color: var(--futura-secondary);
  background: var(--futura-background);
  border: 1px solid var(--futura-border);
  border-radius: 10px;
  gap: 8px;
  margin: 0 0 14px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
  display: grid;
}

.prompt-proposal strong {
  color: var(--futura-text);
  font-size: 12px;
}

.prompt-proposal p {
  margin: 0;
}

.prompt-proposal > div {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.prompt-proposal button {
  cursor: pointer;
  border-radius: 8px;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
}

.contract-page {
  box-shadow: 0 3px 16px #12385b17;
}

.legal-sources-page {
  max-width: 1080px;
}

.legal-sources-notice {
  color: var(--futura-secondary);
  background: var(--futura-selection);
  border: 1px solid var(--futura-border);
  border-radius: 10px;
  align-items: flex-start;
  gap: 10px;
  margin: -10px 0 24px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.5;
  display: flex;
}

.legal-sources-notice span {
  width: 20px;
  height: 20px;
  color: var(--futura-surface);
  background: var(--futura-primary);
  border-radius: 50%;
  flex: 0 0 20px;
  place-items: center;
  font-weight: 700;
  display: grid;
}

.legal-sources-notice p {
  margin: 0;
}

.legal-sources-notice strong {
  color: var(--futura-text);
}

.legal-sources-search {
  max-width: 760px;
  margin-bottom: 32px;
}

.legal-sources-search label {
  color: var(--futura-text);
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  display: block;
}

.legal-sources-search > div {
  gap: 10px;
  display: flex;
}

.legal-sources-search input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 11px 14px;
}

.legal-sources-search .primary-button {
  min-height: 48px;
  padding-inline: 20px;
}

.legal-sources-results-head {
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
  display: flex;
}

.legal-sources-results-head h2 {
  color: var(--futura-text);
  margin: 0;
  font: 400 24px / 1.2 Georgia, serif;
}

.legal-sources-results-head span {
  color: var(--futura-secondary);
  font-size: 11px;
}

.legal-source-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}

.legal-source-card {
  background: var(--futura-surface);
  border: 1px solid var(--futura-border);
  border-radius: 12px;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
  display: flex;
}

.legal-source-card-top {
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  display: flex;
}

.legal-source-category {
  color: var(--futura-primary);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 10px;
  font-weight: 700;
}

.legal-source-date {
  color: var(--futura-secondary);
  text-align: right;
  font-size: 10px;
}

.legal-source-card h3 {
  color: var(--futura-text);
  margin: 18px 0 8px;
  font-size: 16px;
  line-height: 1.3;
}

.legal-source-card p {
  min-height: 60px;
  color: var(--futura-secondary);
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.legal-source-card blockquote {
  color: var(--futura-secondary);
  background: var(--futura-background);
  border-left: 3px solid var(--futura-primary);
  margin: 16px 0;
  padding: 11px 12px;
  font: italic 13px / 1.5 Georgia, serif;
}

.legal-source-action {
  cursor: pointer;
  align-self: flex-start;
  min-height: 42px;
  margin-top: auto;
  padding-inline: 12px;
  font-size: 11px;
}

.revision-mobile-tabs button:last-child, .assistant-panel-head strong {
  font-size: 0;
}

.revision-mobile-tabs button:last-child:after, .assistant-panel-head strong:after {
  content: "Futura AI";
  font-size: 11px;
}

.assistant-panel-head .assistant-mark {
  font-size: 0;
}

.assistant-panel-head .assistant-mark:after {
  content: "AI";
  font-size: 12px;
}

.review-app .legal-sidebar {
  flex-basis: 64px;
  width: 64px;
  padding: 18px 9px;
}

.review-app .legal-brand {
  width: 42px;
  height: 38px;
  margin: 0 auto 12px;
  overflow: hidden;
}

.review-app .legal-brand-logo {
  object-position: center;
  width: 42px;
  height: 38px;
}

.review-app .legal-nav a, .review-app .legal-sidebar-bottom > a {
  justify-content: center;
  font-size: 0;
}

.review-app .legal-nav a span {
  font-size: 20px;
}

.review-app .legal-profile {
  grid-template-columns: 1fr;
  justify-items: center;
}

.review-app .legal-profile span:not(.avatar), .review-app .revision-mobile-tabs {
  display: none;
}

.sidebar-collapse {
  width: 44px;
  height: 44px;
  color: var(--futura-primary);
  border: 1px solid var(--futura-border);
  cursor: pointer;
  background: none;
  border-radius: 10px;
  margin: 0 auto 16px;
}

.operational-page {
  width: min(100% - 68px, 1260px);
  margin: 0 auto;
  padding: 34px 0 70px;
}

.oggi-mode-switcher {
  background: var(--futura-selection);
  border: 1px solid var(--futura-border);
  border-radius: 12px;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  display: flex;
}

.oggi-mode-switcher button {
  min-height: 40px;
  color: var(--futura-secondary);
  cursor: pointer;
  background: none;
  border: 1px solid #0000;
  border-radius: 9px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 700;
}

.oggi-mode-switcher button:hover {
  color: var(--futura-primary);
  background: var(--futura-surface);
}

.oggi-mode-switcher button.is-active {
  color: var(--futura-primary);
  background: var(--futura-surface);
  border-color: var(--futura-border);
  box-shadow: 0 2px 7px #12385b14;
}

.oggi-mode-switcher button:focus-visible {
  outline: 3px solid var(--futura-focus);
  outline-offset: 2px;
}

.operational-page[data-oggi-mode="routine"] .operational-chat {
  display: none;
}

.operational-page[data-oggi-mode="routine"] .operational-grid {
  grid-template-columns: 1fr;
}

.operational-page[data-oggi-mode="routine"] .operational-widgets {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.operational-page[data-oggi-mode="routine"] .operational-widgets > :not(.routine-card) {
  display: none;
}

.operational-page[data-oggi-mode="routine"] .routine-card {
  padding: 24px;
}

.operational-page[data-oggi-mode="routine"] .routine-card strong {
  font-size: 20px;
}

.operational-page[data-oggi-mode="routine"] .routine-card small {
  font-size: 13px;
}

.operational-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  align-items: start;
  gap: 22px;
  display: grid;
}

.operational-chat {
  min-width: 0;
}

.oggi-assistant-message {
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 17px;
  display: flex;
}

.oggi-assistant-message p {
  margin: 2px 0;
  font-size: 15px;
  line-height: 1.55;
}

.operational-chat .alfa-context-card {
  margin-bottom: 18px;
}

.oggi-chat-message {
  border-radius: 12px;
  gap: 10px;
  margin: 13px 0;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
}

.oggi-chat-message p {
  margin: 0;
}

.oggi-chat-message.user {
  color: var(--futura-primary);
  background: var(--futura-selection);
  margin-left: 44px;
}

.oggi-chat-message.assistant {
  color: var(--futura-text);
  background: var(--futura-surface);
  border: 1px solid var(--futura-border);
  margin-left: 44px;
}

.composer-actions {
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  display: flex;
}

.composer-tool, .send {
  border-radius: 10px;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
}

.composer-tool {
  color: var(--futura-primary);
  background: var(--futura-background);
  border: 1px solid var(--futura-border);
}

.send {
  color: #fff;
  background: var(--futura-primary);
  border: 1px solid var(--futura-primary);
}

.send:disabled {
  opacity: .45;
}

.improve-prompt {
  min-height: 42px;
  color: var(--futura-primary);
  background: var(--futura-selection);
  border: 1px solid var(--futura-border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 11px;
}

.improve-prompt:disabled {
  opacity: .5;
}

.chat-context-actions {
  flex-wrap: wrap;
  gap: 8px;
  margin: 13px 0 0 44px;
  display: flex;
}

.chat-context-actions a, .context-link {
  min-height: 34px;
  color: var(--futura-primary);
  background: var(--futura-surface);
  border: 1px solid var(--futura-border);
  border-radius: 8px;
  align-items: center;
  padding: 6px 10px;
  font-size: 11px;
  text-decoration: none;
  display: inline-flex;
}

.chat-context-actions a:hover, .context-link:hover {
  background: var(--futura-selection);
}

.operational-widgets {
  gap: 12px;
  min-width: 0;
  display: grid;
}

.routine-card {
  background: var(--futura-selection);
  border: 1px solid var(--futura-border);
  border-radius: 14px;
  gap: 7px;
  padding: 16px;
  display: grid;
}

.routine-card span {
  color: var(--futura-primary);
  letter-spacing: .08em;
  font-size: 9px;
  font-weight: 700;
}

.routine-card strong {
  font-size: 14px;
}

.routine-card .text-button {
  justify-self: start;
  min-height: 28px;
  padding: 0;
}

.routine-card small {
  color: var(--futura-secondary);
  font-size: 11px;
}

.routine-proposal {
  background: var(--futura-selection);
  border: 1px solid var(--futura-border);
  border-radius: 14px;
  gap: 8px;
  margin: 18px 0;
  padding: 16px;
  display: grid;
}

.routine-proposal h2 {
  color: var(--futura-text);
  margin: 0;
  font: 400 21px / 1.2 Georgia, serif;
}

.routine-proposal p {
  color: var(--futura-secondary);
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.routine-proposal-actions, .routine-actions {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  display: flex;
}

.routine-form {
  gap: 14px;
  margin-top: 18px;
  display: grid;
}

.routine-form label {
  color: var(--futura-text);
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  display: grid;
}

.routine-form input, .routine-form select, .routine-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  color: var(--futura-text);
  background: var(--futura-surface);
  border: 1px solid var(--futura-border);
  font: inherit;
  border-radius: 8px;
  padding: 9px 11px;
  font-weight: 400;
}

.routine-form textarea {
  resize: vertical;
}

.routine-fields {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  display: grid;
}

.routine-toggle {
  background: var(--futura-selection);
  border-radius: 9px;
  align-items: flex-start;
  padding: 11px;
  grid-template-columns: none !important;
  gap: 9px !important;
  display: flex !important;
}

.routine-toggle input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--futura-primary);
  flex: 0 0 20px;
}

.routine-toggle span {
  gap: 4px;
  display: grid;
}

.routine-toggle small {
  color: var(--futura-secondary);
  font-size: 11px;
  font-weight: 400;
}

.form-error {
  color: #a22d38;
  font-size: 11px;
  font-weight: 400;
}

.routine-form input[aria-invalid="true"], .routine-form textarea[aria-invalid="true"] {
  border-color: #a22d38;
}

.routine-actions {
  justify-content: flex-end;
}

.routine-actions button, .routine-proposal-actions button {
  min-height: 42px;
}

.oggi-widget {
  background: var(--futura-surface);
  border: 1px solid var(--futura-border);
  border-radius: 14px;
  min-width: 0;
  padding: 17px;
  box-shadow: 0 5px 18px #12385b0d;
}

.widget-title {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  display: flex;
}

.widget-title h2 {
  margin: 0;
  font-size: 16px;
}

.widget-title span {
  color: var(--futura-secondary);
  font-size: 11px;
}

.widget-list {
  gap: 0;
  display: grid;
}

.widget-list article, .conflict-widget article {
  border-top: 1px solid var(--futura-border);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 0;
  display: flex;
}

.widget-list article > div, .conflict-widget article > div {
  flex: 1;
  min-width: 0;
}

.widget-list strong, .widget-list span, .widget-list small, .conflict-widget strong, .conflict-widget span {
  overflow-wrap: anywhere;
  display: block;
}

.widget-list strong, .conflict-widget strong {
  color: var(--futura-text);
  font-size: 12px;
}

.widget-list span, .conflict-widget span {
  color: var(--futura-secondary);
  margin-top: 4px;
  font-size: 10px;
}

.widget-list small {
  color: var(--futura-secondary);
  margin-top: 5px;
  font-size: 10px;
}

.context-link {
  flex: none;
  min-height: 30px;
  padding: 4px 8px;
  font-size: 10px;
}

.agenda-status {
  color: var(--futura-primary);
  background: var(--futura-selection);
  border-radius: 999px;
  flex: none;
  padding: 5px 7px;
  font-size: 9px !important;
}

.agenda-warning {
  color: #795400;
  background: #fff0c2;
}

.agenda-in-corso {
  color: #075e4d;
  background: #ddf3ec;
}

.calendar-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 16px;
  display: grid;
}

.calendar-event {
  border-top: 1px solid var(--futura-border);
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  display: grid;
}

.event-time {
  color: var(--futura-primary);
}

.event-time strong, .event-time span {
  display: block;
}

.event-time span {
  color: var(--futura-secondary);
  margin-top: 3px;
  font-size: 10px;
}

.calendar-event > div:not(.event-time) {
  min-width: 0;
}

.calendar-event > div strong, .calendar-event > div span, .calendar-event > div small {
  overflow-wrap: anywhere;
  display: block;
}

.calendar-event > div strong {
  font-size: 13px;
}

.calendar-event > div span, .calendar-event > div small {
  color: var(--futura-secondary);
  margin-top: 5px;
  font-size: 11px;
}

.calendar-event > div small {
  font-size: 10px;
}

.role-switcher {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  display: flex;
}

.role-switcher button {
  min-height: 38px;
  color: var(--futura-primary);
  background: var(--futura-surface);
  border: 1px solid var(--futura-border);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 11px;
}

.role-switcher button.selected {
  color: #fff;
  background: var(--futura-primary);
}

.project-cards {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  display: grid;
}

.shared-project-card {
  text-align: left;
  width: 100%;
  color: var(--futura-text);
  background: var(--futura-surface);
  border: 1px solid var(--futura-border);
  cursor: pointer;
  border-radius: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 18px;
  display: grid;
}

.shared-project-card:hover {
  background: var(--futura-selection);
}

.project-icon {
  width: 38px;
  height: 38px;
  color: var(--futura-primary);
  background: var(--futura-selection);
  border-radius: 10px;
  place-items: center;
  display: grid;
}

.shared-project-card strong, .shared-project-card span, .shared-project-card small {
  overflow-wrap: anywhere;
  display: block;
}

.shared-project-card strong {
  font-size: 14px;
}

.shared-project-card span, .shared-project-card small {
  color: var(--futura-secondary);
  margin-top: 6px;
  font-size: 11px;
}

.shared-project-card .agenda-status {
  margin-top: 0;
}

.collaboration-detail h3 {
  margin: 24px 0 9px;
  font-size: 12px;
}

.member-row {
  border-top: 1px solid var(--futura-border);
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  display: flex;
}

.member-row div {
  min-width: 0;
}

.member-row strong, .member-row span {
  overflow-wrap: anywhere;
  display: block;
}

.member-row strong {
  font-size: 12px;
}

.member-row span {
  color: var(--futura-secondary);
  margin-top: 4px;
  font-size: 10px;
}

.member-row > span {
  text-align: right;
  flex: none;
}

.personalization-modal {
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.widget-preferences {
  gap: 8px;
  margin: 18px 0;
  display: grid;
}

.widget-preferences > div {
  background: var(--futura-background);
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px;
  display: flex;
}

.widget-preferences label {
  align-items: center;
  gap: 7px;
  font-size: 11px;
  display: flex;
}

.widget-preferences input {
  min-height: auto;
}

.widget-preferences span {
  gap: 4px;
  display: flex;
}

.widget-preferences button {
  min-width: 30px;
  min-height: 30px;
  color: var(--futura-primary);
  background: var(--futura-surface);
  border: 1px solid var(--futura-border);
  border-radius: 6px;
  padding: 4px;
}

.widget-preferences button:disabled {
  opacity: .35;
}

@media (max-width: 950px) {
  .operational-grid, .calendar-layout {
    grid-template-columns: 1fr;
  }

  .operational-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .routine-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .operational-page {
    width: calc(100% - 24px);
    padding-top: 27px;
  }

  .operational-grid {
    gap: 16px;
  }

  .operational-widgets {
    grid-template-columns: 1fr;
  }

  .calendar-event {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .calendar-event .context-link {
    grid-column: 2;
    justify-self: start;
  }

  .operational-chat .alfa-context-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .chat-context-actions {
    margin-left: 0;
  }

  .composer-actions {
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .improve-prompt {
    flex: 1;
  }

  .context-link {
    white-space: nowrap;
  }

  .shared-project-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .shared-project-card .agenda-status {
    grid-column: 2;
    justify-self: start;
  }

  .member-row {
    display: block;
  }

  .member-row > span {
    text-align: left;
    margin-top: 8px;
  }
}

.review-topbar {
  background: var(--futura-surface);
  border-bottom: 1px solid var(--futura-border);
  height: 58px;
  color: var(--futura-secondary);
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  font-size: 12px;
  display: flex;
}

.review-back {
  min-height: 40px;
  color: var(--futura-primary);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 8px 0;
  font-weight: 700;
}

.review-doc-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
  color: var(--futura-text);
  overflow: hidden;
}

.review-state {
  color: var(--futura-primary);
  background: var(--futura-selection);
  border-radius: 99px;
  padding: 6px 9px;
}

.review-documents {
  min-height: 40px;
  color: var(--futura-secondary);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 8px 10px;
}

.review-save {
  min-height: 40px;
  margin-left: auto;
}

.simplified-review {
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: calc(100vh - 58px);
}

.simplified-review .revision-files {
  display: none;
}

.contract-document {
  background: var(--futura-background);
  padding: 0 28px 50px;
}

.document-toolbar {
  max-width: 760px;
  min-height: 52px;
  color: var(--futura-secondary);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  font-size: 11px;
  display: flex;
}

.document-toolbar > div {
  align-items: center;
  gap: 5px;
  display: flex;
}

.zoom-button, .fit-button {
  min-width: 36px;
  min-height: 36px;
  color: var(--futura-primary);
  background: var(--futura-surface);
  border: 1px solid var(--futura-border);
  cursor: pointer;
  border-radius: 8px;
  padding: 7px;
}

.fit-button {
  padding-inline: 10px;
  font-size: 10px;
}

.compare-banner {
  max-width: 760px;
  color: var(--futura-primary);
  background: var(--futura-selection);
  border: 1px solid var(--futura-border);
  border-radius: 10px;
  justify-content: space-between;
  gap: 10px;
  margin: 8px auto -15px;
  padding: 10px 13px;
  font-size: 11px;
  display: flex;
}

.compare-banner span {
  color: var(--futura-secondary);
}

.simplified-review .contract-page {
  box-sizing: border-box;
  width: min(100%, 680px);
  margin-top: 15px;
}

.clause-marker, .active-clause, .draft-clause {
  cursor: pointer;
  border-left: 3px solid #0000;
  transition: background .15s, border-color .15s;
}

.clause-marker:hover {
  background: #eef4f9;
}

.active-clause {
  background: var(--futura-selection);
  border-left-color: var(--futura-primary);
}

.draft-clause {
  background: #edf4f8;
}

.simplified-assistant {
  background: var(--futura-surface);
  border-left: 1px solid var(--futura-border);
  padding: 18px 20px;
}

.assistant-close {
  min-width: 40px;
  min-height: 40px;
  color: var(--futura-secondary);
  cursor: pointer;
  background: none;
  border: 0;
  margin-left: auto;
  font-size: 22px;
}

.assistant-tabs {
  border-bottom: 1px solid var(--futura-border);
  gap: 4px;
  display: flex;
}

.assistant-tabs button {
  min-height: 44px;
  color: var(--futura-secondary);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 8px 12px;
  font-size: 12px;
}

.assistant-tabs button.selected {
  color: var(--futura-primary);
  border-bottom: 2px solid var(--futura-primary);
  font-weight: 700;
}

.review-progress {
  color: var(--futura-secondary);
  justify-content: space-between;
  padding: 15px 0 8px;
  font-size: 10px;
  display: flex;
}

.finding {
  border-top: 1px solid var(--futura-border);
  padding: 0;
}

.finding-trigger {
  width: 100%;
  min-height: 54px;
  color: var(--futura-text);
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  display: flex;
}

.finding-trigger span:first-child {
  gap: 3px;
  display: grid;
}

.finding-trigger strong {
  color: var(--futura-primary);
  font-size: 11px;
}

.finding-trigger small {
  color: var(--futura-text);
  font-size: 12px;
}

.finding-detail {
  padding: 0 0 14px;
}

.finding-detail p {
  color: var(--futura-secondary);
  font-size: 11px;
  line-height: 1.5;
}

.finding-detail label {
  color: var(--futura-secondary);
  gap: 5px;
  margin-top: 9px;
  font-size: 10px;
  display: grid;
}

.finding-detail textarea {
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid var(--futura-border);
  border-radius: 8px;
  width: 100%;
  min-height: 52px;
  padding: 8px;
  font-size: 11px;
}

.finding-actions {
  gap: 7px;
  margin-top: 12px;
  display: flex;
}

.finding-actions button {
  flex: 1;
  min-height: 44px;
  padding: 7px;
  font-size: 10px;
}

.finding-actions button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.review-footer {
  justify-content: space-between;
  gap: 8px;
  padding-top: 16px;
  display: flex;
}

.review-footer button {
  min-height: 44px;
  font-size: 10px;
}

.next-suggestion {
  color: var(--futura-primary);
  cursor: pointer;
  background: none;
  border: 0;
}

.review-chat {
  grid-template-rows: auto 1fr auto;
  min-height: 500px;
  display: grid;
}

.chat-context {
  color: var(--futura-secondary);
  background: var(--futura-selection);
  border-radius: 8px;
  padding: 10px;
  font-size: 10px;
}

.chat-messages {
  align-content: start;
  gap: 10px;
  padding: 12px 0;
  display: grid;
}

.chat-messages p {
  border-radius: 10px;
  max-width: 88%;
  margin: 0;
  padding: 10px;
  font-size: 11px;
  line-height: 1.45;
}

.ai-message {
  background: var(--futura-background);
}

.user-message {
  color: #fff;
  background: var(--futura-primary);
  justify-self: end;
}

.review-chat form {
  gap: 7px;
  display: flex;
}

.review-chat input {
  flex: 1;
  min-width: 0;
  padding: 9px;
}

.review-chat .primary-button {
  min-height: 44px;
}

.review-chat button:disabled {
  opacity: .5;
}

.review-toast {
  z-index: 10;
  color: var(--futura-primary);
  background: var(--futura-surface);
  border: 1px solid var(--futura-border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12px;
  position: fixed;
  bottom: 24px;
  right: 24px;
  box-shadow: 0 8px 24px #12385b26;
}

@media (max-width: 1000px) {
  .review-topbar {
    gap: 8px;
    padding-inline: 14px;
  }

  .review-doc-name {
    max-width: 150px;
  }

  .review-app .revision-mobile-tabs {
    background: var(--futura-surface);
    border-bottom: 1px solid var(--futura-border);
    gap: 6px;
    padding: 8px 12px;
    display: flex;
  }

  .review-app .revision-mobile-tabs button {
    min-height: 44px;
    color: var(--futura-secondary);
    cursor: pointer;
    background: none;
    border: 0;
    flex: 1;
  }

  .review-app .revision-mobile-tabs .selected {
    color: var(--futura-primary);
    border-bottom: 2px solid var(--futura-primary);
    font-weight: 700;
  }

  .simplified-review {
    grid-template-columns: 1fr;
  }

  .simplified-review .simplified-assistant {
    display: none;
  }

  .simplified-review .simplified-assistant:not(.mobile-hidden) {
    display: block;
  }

  .review-topbar .review-documents {
    display: none;
  }
}

@media (max-width: 700px) {
  .review-topbar {
    flex-wrap: wrap;
    height: auto;
    min-height: 58px;
    padding-block: 8px;
  }

  .review-topbar > span:nth-of-type(n+2), .review-topbar .review-state {
    display: none;
  }

  .review-doc-name {
    max-width: 130px;
  }

  .review-save {
    margin-left: auto;
  }

  .review-app .revision-mobile-tabs {
    background: var(--futura-surface);
    border-bottom: 1px solid var(--futura-border);
    gap: 6px;
    padding: 8px 12px;
    display: flex;
  }

  .revision-mobile-tabs button {
    min-height: 44px;
    color: var(--futura-secondary);
    cursor: pointer;
    background: none;
    border: 0;
    flex: 1;
  }

  .revision-mobile-tabs .selected {
    color: var(--futura-primary);
    border-bottom: 2px solid var(--futura-primary);
    font-weight: 700;
  }

  .contract-document {
    padding-inline: 12px;
  }

  .document-toolbar {
    flex-wrap: wrap;
    padding-block: 7px;
  }

  .document-toolbar > span {
    width: 100%;
  }

  .simplified-review .contract-page {
    padding: 24px 20px;
  }

  .simplified-assistant {
    min-height: calc(100vh - 150px);
  }

  .mobile-hidden {
    display: none !important;
  }

  .compare-banner {
    display: grid;
  }

  .review-toast {
    text-align: center;
    bottom: 12px;
    left: 12px;
    right: 12px;
  }
}

.resume-copy {
  color: var(--futura-secondary);
  font-size: 12px;
  margin: 12px 0 !important;
}

.practice-summary-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0;
  display: grid;
}

.practice-summary-grid > div {
  background: var(--futura-sidebar);
  border-radius: 10px;
  gap: 7px;
  padding: 12px;
  display: grid;
}

.practice-summary-grid span {
  color: var(--futura-secondary);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 10px;
}

.practice-summary-grid strong {
  font-size: 12px;
}

.summary-document {
  border: 1px solid var(--futura-border);
  border-radius: 10px;
  gap: 4px;
  padding: 13px;
  display: grid;
}

.summary-document small, .detail-lead {
  color: var(--futura-secondary);
  font-size: 12px;
}

.finding-active {
  background: #f3f7fb;
  border-radius: 8px;
  padding-inline: 8px;
}

.finding-detail textarea[readonly] {
  color: var(--futura-secondary);
  background: #f6f8fa;
}

.finding-detail ins, .comparison-note ins {
  color: #075e4d;
  background: #d9f2e8;
  padding: 1px 3px;
  text-decoration: none;
}

.finding-detail del, .comparison-note del {
  color: #8b4a4a;
  background: #fbe4e3;
}

.diff-preview {
  overflow-wrap: anywhere;
}

.applied-feedback {
  margin: 12px 0 0;
  font-weight: 700;
  color: #075e4d !important;
}

.applied-feedback button {
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
}

.comparison-note {
  color: var(--futura-secondary);
  border-top: 1px solid var(--futura-border);
  margin-top: 34px;
  padding: 14px;
  font-family: system-ui, sans-serif;
  font-size: 11px;
}

.comparison-note p {
  margin: 8px 0;
}

.review-summary {
  color: var(--futura-primary);
  background: var(--futura-selection);
  border-radius: 10px;
  margin-top: 18px;
  padding: 14px;
  font-size: 12px;
}

.review-summary p {
  color: var(--futura-secondary);
  margin: 6px 0 0;
  line-height: 1.45;
}

.review-topbar .primary-button:disabled {
  color: var(--futura-secondary);
  background: var(--futura-sidebar);
  cursor: default;
}

.exit-dialog {
  max-width: 430px;
}

.exit-dialog .danger-button {
  min-height: 40px;
  color: var(--futura-error);
  cursor: pointer;
  background: none;
  border: 1px solid #e7c5c5;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
}

.review-toast button {
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  margin-left: 10px;
}

@media (max-width: 700px) {
  .practice-summary-grid {
    grid-template-columns: 1fr;
  }

  .review-topbar .secondary-button {
    order: 5;
    width: 100%;
  }

  .review-topbar .review-save {
    text-overflow: ellipsis;
    max-width: 100%;
    overflow: hidden;
  }

  .finding-actions {
    flex-wrap: wrap;
  }

  .finding-actions button {
    flex-basis: calc(50% - 7px);
  }

  .exit-dialog .detail-actions {
    display: grid;
  }

  .exit-dialog .detail-actions button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .proactive-legal {
    margin-left: 0;
  }

  .alfa-context-card {
    padding: 14px;
  }

  .alfa-context-actions {
    grid-column: 1 / -1;
    margin-top: 2px;
  }

  .alfa-context-actions button {
    flex: 150px;
  }

  .proactive-feedback {
    margin-left: 0;
  }
}

.oggi-chat-thread {
  gap: 12px;
  margin: 18px 0 14px 44px;
  display: grid;
}

.oggi-chat-message {
  align-items: flex-start;
  gap: 10px;
  max-width: 700px;
  display: flex;
}

.oggi-chat-message.user {
  flex-direction: row-reverse;
  margin-left: auto;
}

.oggi-chat-message p {
  color: var(--futura-text);
  background: var(--futura-surface);
  border: 1px solid var(--futura-border);
  overflow-wrap: anywhere;
  border-radius: 13px;
  margin: 3px 0;
  padding: 10px 13px;
  font-size: 13px;
  line-height: 1.55;
}

.oggi-chat-message.user p {
  background: var(--futura-selection);
}

.chat-operation-error {
  color: var(--futura-danger);
  background: #fff4f2;
  border: 1px solid #e6b8b0;
  border-radius: 10px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 10px 0 12px 44px;
  padding: 10px 12px;
  font-size: 12px;
  display: flex;
}

.chat-operation-error button, .stop-button {
  min-height: 36px;
  color: var(--futura-primary);
  background: var(--futura-surface);
  border: 1px solid var(--futura-border);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
}

.conversation-stop {
  margin: 8px 0 0 44px;
}

.local-attachment {
  color: var(--futura-secondary);
  background: var(--futura-selection);
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 5px 0 8px;
  padding: 7px 9px;
  font-size: 11px;
  display: flex;
}

.local-attachment button {
  min-width: 28px;
  color: var(--futura-primary);
  background: none;
  border: 0;
  font-size: 18px;
}

@media (max-width: 520px) {
  .oggi-chat-thread, .chat-operation-error {
    margin-left: 0;
  }

  .oggi-chat-message {
    max-width: 100%;
  }

  .conversation-stop {
    margin-left: 0;
  }
}

.page-heading {
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  display: flex;
}

.document-list {
  gap: 10px;
  display: grid;
}

.document {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  display: flex;
}

.document small {
  color: var(--muted);
  margin-top: 5px;
  display: block;
}

.link-button {
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
}

.danger {
  color: #b42318;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.preferences-card, .cookie-explainer {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  margin-top: 24px;
  padding: 24px;
}

.preferences-card {
  gap: 18px;
  display: grid;
}

.preference-row {
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  display: flex;
}

.preference-row p, .cookie-explainer p {
  color: var(--muted);
  margin: 5px 0 0;
  font-size: .92rem;
}

.preferences-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  display: flex;
}

.switch {
  flex: none;
  width: 46px;
  height: 25px;
  display: inline-block;
  position: relative;
}

.switch input {
  opacity: 0;
  width: 1px;
  height: 1px;
  position: absolute;
}

.switch span {
  cursor: pointer;
  background: #a7b2bd;
  border-radius: 999px;
  transition: background .2s;
  position: absolute;
  inset: 0;
}

.switch span:before {
  content: "";
  background: #fff;
  border-radius: 50%;
  width: 19px;
  height: 19px;
  transition: transform .2s;
  position: absolute;
  top: 3px;
  left: 3px;
}

.switch input:checked + span {
  background: var(--accent);
}

.switch input:checked + span:before {
  transform: translateX(21px);
}

.switch input:disabled + span {
  cursor: not-allowed;
  opacity: .65;
}

.cookie-banner {
  z-index: 100;
  color: #fff;
  background: var(--ink);
  border: 1px solid #34414c;
  border-radius: 8px;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  max-width: 1050px;
  margin: auto;
  padding: 22px 24px;
  display: grid;
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  box-shadow: 0 20px 60px #17212b4d;
}

.cookie-banner-copy p {
  color: #d7e0e7;
  margin: 5px 0;
  font-size: .9rem;
}

.cookie-banner-copy a {
  color: #9ee7dd;
}

.cookie-banner-toggle {
  color: #fff;
  white-space: nowrap;
  align-items: center;
  gap: 14px;
  display: flex;
}

.cookie-actions {
  flex-wrap: wrap;
  gap: 10px;
  display: flex;
}

.cookie-banner .secondary {
  color: #fff;
  background: none;
  border-color: #92a2af;
}

.site-header {
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
}

.site-header-content {
  align-items: center;
  gap: 24px;
  width: min(100% - 40px, 900px);
  min-height: 64px;
  margin: auto;
  display: flex;
}

.site-brand {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  flex-wrap: wrap;
  gap: 4px 20px;
  display: flex;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--accent);
}

.site-header-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  display: flex;
}

.site-header .button {
  min-height: 36px;
  padding: 6px 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer-content {
  width: min(100% - 40px, 900px);
  color: var(--muted);
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: auto;
  padding: 22px 0;
  font-size: .9rem;
  display: flex;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  flex-wrap: wrap;
  gap: 16px;
  display: flex;
}

.legal-placeholder {
  background: #fff8e8;
  border: 1px solid #e4b96b;
  border-radius: 8px;
  margin: 28px 0;
  padding: 20px 24px;
}

.legal-placeholder h2 {
  margin: 0;
  font-size: 1rem;
}

.legal-placeholder p {
  margin: 8px 0 0;
}

@media (max-width: 560px) {
  .hero, .card {
    padding: 26px;
  }

  .page-heading, .document {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cookie-banner-toggle {
    justify-content: space-between;
  }

  .preference-row {
    align-items: flex-start;
  }

  .site-footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header-content {
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 10px 0;
  }

  .site-nav {
    order: 3;
    width: 100%;
  }
}

:root {
  --oggi-ink: #242321;
  --oggi-muted: #85827d;
  --oggi-line: #e6e3de;
  --oggi-paper: #fbfaf8;
  --oggi-soft: #f3f1ed;
}

body {
  background: var(--oggi-paper);
  color: var(--oggi-ink);
  font-family: Arial, Helvetica, sans-serif;
}

.oggi-app {
  background: var(--oggi-paper);
  min-height: 100vh;
  display: flex;
}

.oggi-sidebar {
  background: #f4f2ee;
  border-right: 1px solid #e2dfd9;
  flex-direction: column;
  width: 248px;
  padding: 27px 16px 18px;
  display: flex;
  position: fixed;
  inset: 0 auto 0 0;
}

.oggi-brand {
  letter-spacing: -.03em;
  align-items: center;
  gap: 9px;
  padding: 0 14px 31px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
}

.brand-mark, .message-mark {
  color: #fff;
  background: #292827;
  border-radius: 50%;
  place-items: center;
  width: 24px;
  height: 24px;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  display: inline-grid;
}

.municipality {
  color: #5c5955;
  border: 1px solid #dedbd5;
  border-radius: 7px;
  align-items: center;
  gap: 8px;
  margin: 0 5px 28px;
  padding: 11px 10px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
}

.municipality-dot {
  background: #8eaa8b;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 3px #e2eddf;
}

.oggi-nav {
  gap: 4px;
  display: grid;
}

.nav-item {
  color: #77736e;
  cursor: pointer;
  width: 100%;
  font: inherit;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 6px;
  align-items: center;
  gap: 13px;
  padding: 11px 13px;
  font-size: 13px;
  display: flex;
}

.nav-item span {
  color: #96918a;
  text-align: center;
  width: 16px;
  font-size: 17px;
}

.nav-item.active {
  color: #292827;
  background: #e7e4de;
  font-weight: 700;
}

.nav-item.active span {
  color: #292827;
}

.nav-item b {
  color: #fff;
  text-align: center;
  background: #4d4a46;
  border-radius: 10px;
  min-width: 20px;
  margin-left: auto;
  padding: 2px 5px;
  font-size: 10px;
}

.oggi-nav .nav-item[href="/impostazioni"], .sidebar-bottom > button.nav-item, .settings-app .sidebar-bottom > a.nav-item.active:not(.profile-settings-nav) {
  display: none;
}

.sidebar-bottom {
  margin-top: auto;
}

.profile {
  border-top: 1px solid #e1ded8;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 17px 10px 0;
  font-size: 11px;
  display: flex;
}

.avatar {
  color: #6b6762;
  background: #ddd9d1;
  border-radius: 50%;
  flex: 0 0 29px;
  place-items: center;
  width: 29px;
  height: 29px;
  font-size: 9px;
  font-weight: 700;
  display: grid;
}

.profile strong, .profile small {
  line-height: 1.4;
  display: block;
}

.profile strong {
  font-size: 11px;
}

.profile small {
  color: #96918b;
}

.more {
  color: #aaa6a0;
  letter-spacing: 2px;
  margin-left: auto;
}

.profile-button {
  width: 100%;
  min-height: auto;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid #e1ded8;
  border-radius: 0;
  margin-top: 18px;
  padding: 17px 10px 0;
}

.profile-button:hover {
  background: #ebe8e2;
}

.profile-panel h2 {
  margin-bottom: 4px;
}

.profile-heading {
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  display: flex;
}

.profile-avatar-large {
  color: #6b6762;
  background: #ddd9d1;
  border-radius: 50%;
  place-items: center;
  width: 54px;
  height: 54px;
  font-size: 18px;
  font-weight: 700;
  display: grid;
}

.profile-heading .detail-ente {
  margin: 0;
}

.profile-facts {
  border-top: 1px solid #e2ded7;
  border-bottom: 1px solid #e2ded7;
  gap: 16px;
  padding: 17px 0;
  display: grid;
}

.profile-facts div {
  justify-content: space-between;
  gap: 18px;
  display: flex;
}

.profile-facts span {
  color: #9a948c;
  font-size: 10px;
}

.profile-facts strong {
  text-align: right;
  max-width: 220px;
  font-size: 12px;
}

.profile-email {
  color: #68625c;
  margin: 0;
  font-size: 13px;
}

.oggi-content {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  margin-left: 248px;
  display: flex;
}

.oggi-topbar {
  color: #a09c96;
  border-bottom: 1px solid #ebe8e3;
  align-items: center;
  min-height: 70px;
  padding: 0 56px;
  font-size: 11px;
  display: flex;
}

.mobile-brand {
  display: none;
}

.topbar-date {
  letter-spacing: .02em;
  margin: auto;
}

.notification {
  color: #8c8882;
  cursor: pointer;
  background: none;
  border: 0;
  font-size: 22px;
  position: relative;
}

.notification i {
  background: #b56e5e;
  border-radius: 50%;
  width: 5px;
  height: 5px;
  position: absolute;
  top: 2px;
  right: 0;
}

.conversation {
  width: min(100% - 64px, 730px);
  margin: 0 auto;
  padding: 62px 0 38px;
}

.welcome {
  margin-bottom: 44px;
}

.date-label {
  color: #a29e98;
  letter-spacing: .14em;
  margin: 0 0 14px;
  font-size: 10px;
  font-weight: 700;
}

.welcome h1 {
  letter-spacing: -.05em;
  margin: 0 0 12px;
  font-family: Georgia, serif;
  font-size: clamp(32px, 5vw, 45px);
  font-weight: 400;
}

.welcome-copy {
  color: #918d87;
  margin: 0;
  font-size: 14px;
}

.messages {
  gap: 28px;
  display: grid;
}

.message {
  gap: 13px;
  max-width: 650px;
  font-size: 14px;
  line-height: 1.65;
  display: flex;
}

.message p {
  margin: 0;
}

.message-mark {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  font-size: 16px;
}

.user-message {
  color: #fff;
  background: #3c3936;
  border-radius: 15px 15px 3px;
  justify-content: flex-end;
  margin-left: auto;
  padding: 12px 16px;
}

.assistant-message {
  color: #45423e;
}

.opportunity-card {
  background: #fff;
  border: 1px solid #e4e1dc;
  border-radius: 9px;
  gap: 12px;
  margin-top: 18px;
  padding: 17px 18px;
  display: flex;
}

.opportunity-icon {
  color: #827d76;
  background: #f0ede8;
  border-radius: 7px;
  flex: 0 0 29px;
  place-items: center;
  height: 29px;
  font-size: 18px;
  display: grid;
}

.opportunity-copy {
  gap: 4px;
  display: grid;
}

.opportunity-copy strong {
  font-size: 13px;
  font-weight: 700;
}

.opportunity-copy > span {
  color: #99948d;
  font-size: 11px;
}

.opportunity-meta {
  color: #77716a;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 6px;
  font-size: 10px;
  display: flex;
}

.examine-link {
  color: #44413c;
  cursor: pointer;
  width: fit-content;
  font: inherit;
  background: none;
  border: 0;
  margin-top: 8px;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
}

.examine-link span {
  margin-left: 5px;
  font-size: 15px;
}

.loading-state, .error-state {
  color: #96918a;
  font-size: 13px;
}

.error-state button {
  color: #59554f;
  cursor: pointer;
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
}

.loading-dots {
  color: #9a958d;
  letter-spacing: 3px;
  animation: 1s infinite blink;
}

.typing {
  margin-top: -8px;
}

.composer-wrap {
  width: min(100% - 64px, 730px);
  margin: auto auto 26px;
}

.composer {
  background: #fff;
  border: 1px solid #d9d5cf;
  border-radius: 10px;
  padding: 14px 14px 11px 18px;
  box-shadow: 0 5px 20px #2d29240a;
}

.composer textarea {
  resize: vertical;
  color: #3f3c38;
  width: 100%;
  min-height: 29px;
  max-height: 100px;
  font: inherit;
  background: none;
  border: 0;
  outline: 0;
  padding: 0;
  font-size: 13px;
  display: block;
}

.composer textarea::placeholder {
  color: #aaa59d;
}

.composer-footer {
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  display: flex;
}

.context-chip, .context-removed {
  color: #77726c;
  background: #f2efeb;
  border-radius: 5px;
  padding: 6px 9px;
  font-size: 10px;
}

.context-chip {
  cursor: pointer;
  font: inherit;
  border: 0;
  font-size: 10px;
}

.context-chip span {
  margin-right: 5px;
  font-size: 15px;
}

.context-chip b {
  color: #aaa49c;
  margin-left: 8px;
  font-size: 14px;
}

.context-removed {
  color: #aaa59f;
  background: none;
}

.composer-actions {
  gap: 8px;
  margin-left: auto;
  display: flex;
}

.attach, .send {
  cursor: pointer;
  width: 29px;
  height: 29px;
  font: inherit;
  border: 0;
  border-radius: 6px;
  place-items: center;
  display: grid;
}

.attach {
  color: #8e8982;
  background: none;
  font-size: 21px;
}

.send {
  color: #fff;
  background: #34312e;
  font-size: 18px;
}

.send:disabled {
  color: #aaa6a0;
  cursor: not-allowed;
  background: #e7e4df;
}

.composer-note {
  color: #b1ada7;
  text-align: center;
  margin: 10px 0 0;
  font-size: 10px;
}

@keyframes blink {
  0%, 100% {
    opacity: .35;
  }

  50% {
    opacity: 1;
  }
}

@media (max-width: 700px) {
  .oggi-sidebar {
    width: 63px;
    padding: 19px 9px;
    position: static;
  }

  .oggi-brand span:last-child, .municipality, .nav-item:not(.active) {
    font-size: 0;
  }

  .oggi-brand {
    padding: 0 10px 32px;
  }

  .oggi-brand .brand-mark {
    display: inline-grid;
  }

  .oggi-nav .nav-item {
    justify-content: center;
    padding: 12px 5px;
  }

  .nav-item.active b, .sidebar-bottom .nav-item span, .profile span:not(.avatar) {
    display: none;
  }

  .profile {
    justify-content: center;
    padding: 16px 0 0;
  }

  .oggi-content {
    margin-left: 0;
  }

  .oggi-topbar {
    padding: 0 22px;
  }

  .mobile-brand {
    color: #37332f;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
  }

  .mobile-brand .brand-mark {
    width: 21px;
    height: 21px;
    font-size: 15px;
  }

  .topbar-date {
    display: none;
  }

  .conversation, .composer-wrap {
    width: min(100% - 36px, 730px);
  }

  .conversation {
    padding-top: 44px;
  }

  .welcome {
    margin-bottom: 36px;
  }

  .sidebar-bottom .settings-nav-item {
    justify-content: center;
    padding: 12px 5px;
    font-size: 0;
  }

  .sidebar-bottom .settings-nav-item span {
    font-size: 17px;
    display: block;
  }
}

@media (max-width: 430px) {
  .oggi-sidebar {
    width: 54px;
  }

  .oggi-brand {
    padding-inline: 6px;
  }

  .brand-mark {
    width: 22px;
    height: 22px;
  }

  .conversation, .composer-wrap {
    width: calc(100% - 28px);
  }

  .opportunity-card {
    padding: 13px;
  }

  .opportunity-meta {
    gap: 8px;
  }

  .composer {
    padding-left: 13px;
  }
}

@media (max-width: 700px) {
  .oggi-app {
    min-width: 0;
  }

  .oggi-sidebar {
    flex: 0 0 60px;
    min-height: 100dvh;
  }

  .oggi-content {
    width: calc(100% - 60px);
    min-width: 0;
  }

  .oggi-topbar {
    min-height: 58px;
    padding: 0 16px;
  }

  .conversation, .composer-wrap {
    width: calc(100% - 32px);
  }

  .conversation {
    padding: 30px 0 26px;
  }

  .welcome {
    margin-bottom: 30px;
  }

  .date-label {
    margin-bottom: 10px;
    font-size: 9px;
  }

  .welcome h1 {
    margin-bottom: 10px;
    font-size: clamp(29px, 8vw, 38px);
    line-height: 1.08;
  }

  .welcome-copy {
    max-width: 32rem;
    font-size: 13px;
    line-height: 1.5;
  }

  .messages {
    gap: 22px;
  }

  .message {
    gap: 10px;
    max-width: 100%;
    font-size: 13px;
    line-height: 1.55;
  }

  .assistant-message > div {
    min-width: 0;
  }

  .opportunity-card {
    align-items: flex-start;
    margin-top: 14px;
    padding: 14px;
  }

  .opportunity-copy {
    min-width: 0;
  }

  .opportunity-copy strong {
    font-size: 13px;
    line-height: 1.4;
  }

  .opportunity-meta {
    gap: 7px 12px;
    line-height: 1.4;
  }

  .examine-link {
    min-height: 40px;
    margin-top: 5px;
  }

  .composer-wrap {
    margin-bottom: 14px;
  }

  .composer {
    border-radius: 9px;
    padding: 13px 12px 10px;
  }

  .composer textarea {
    min-height: 34px;
    font-size: 13px;
  }

  .context-chip {
    min-width: 0;
    max-width: calc(100% - 94px);
  }

  .context-chip-link {
    text-overflow: ellipsis;
    white-space: nowrap;
    min-height: 40px;
    overflow: hidden;
  }

  .composer-actions button {
    min-width: 40px;
    min-height: 40px;
  }

  .composer-note {
    text-align: center;
    margin: 9px 4px 0;
    font-size: 10px;
    line-height: 1.45;
  }
}

@media (max-width: 430px) {
  .oggi-sidebar {
    flex-basis: 54px;
    width: 54px;
  }

  .oggi-content {
    width: calc(100% - 54px);
  }

  .oggi-topbar {
    padding: 0 13px;
  }

  .conversation, .composer-wrap {
    width: calc(100% - 24px);
  }

  .conversation {
    padding-top: 26px;
  }

  .welcome h1 {
    font-size: clamp(27px, 8.5vw, 34px);
  }

  .message-mark {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
    font-size: 14px;
  }

  .opportunity-card {
    gap: 9px;
  }
}

.today-layout {
  width: min(100% - 72px, 980px);
  padding-top: 0;
}

.today-date-divider {
  border-bottom: 1px solid var(--futura-border);
  min-height: 55px;
  color: var(--futura-secondary);
  justify-content: center;
  align-items: center;
  margin-bottom: 58px;
  font-size: 13px;
  font-weight: 400;
  display: flex;
}

.today-conversation {
  width: min(100%, 820px);
}

.today-conversation .legal-heading {
  margin-bottom: 42px;
}

.today-conversation .legal-heading > div > p:last-child {
  max-width: 690px;
  font-size: 15px;
}

.proactive-legal {
  margin: 0 0 32px;
}

.oggi-message-list {
  gap: 26px;
  display: grid;
}

.oggi-assistant-message {
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  display: grid;
}

.oggi-assistant-message > p, .oggi-assistant-message > div > p {
  color: var(--futura-text);
  margin: 2px 0 0;
  font-size: 15px;
  line-height: 1.55;
}

.oggi-assistant-message .assistant-mark {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 16px;
}

.oggi-assistant-message .alfa-context-card {
  margin-top: 17px;
}

.alfa-context-card {
  box-shadow: 0 6px 20px #12385b12;
}

.alfa-context-actions {
  align-items: stretch;
}

.alfa-context-actions .secondary-button, .alfa-context-actions .primary-button {
  flex: 150px;
}

.proactive-feedback {
  margin-left: 46px;
}

.today-conversation > .legal-composer {
  margin-top: 38px;
}

.today-conversation > .suggestions {
  margin-top: 17px;
}

@media (max-width: 850px) {
  .today-layout {
    width: min(100% - 36px, 820px);
    padding-top: 0;
  }

  .today-date-divider {
    margin-bottom: 38px;
  }
}

@media (max-width: 520px) {
  .today-layout {
    width: calc(100% - 24px);
    padding-top: 0;
  }

  .today-date-divider {
    min-height: 48px;
    margin-bottom: 28px;
    font-size: 12px;
  }

  .today-conversation .legal-heading {
    margin-bottom: 30px;
  }

  .today-conversation .legal-heading > div > p:last-child {
    font-size: 13px;
  }

  .proactive-legal {
    margin-bottom: 25px;
  }

  .oggi-message-list {
    gap: 22px;
  }

  .oggi-assistant-message {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
  }

  .oggi-assistant-message .assistant-mark {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .oggi-assistant-message > p, .oggi-assistant-message > div > p {
    font-size: 14px;
  }

  .oggi-assistant-message .alfa-context-card {
    margin-top: 14px;
  }

  .alfa-context-actions {
    grid-column: 1 / -1;
    margin-top: 5px;
  }

  .alfa-context-actions .secondary-button, .alfa-context-actions .primary-button {
    flex-basis: 100%;
  }

  .proactive-feedback {
    margin-left: 38px;
  }
}

.detail-panel .detail-section p {
  color: #68625c;
  font-size: 13px;
  line-height: 1.65;
}

.context-chip {
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

.context-chip-link, .context-chip-remove {
  color: inherit;
  cursor: pointer;
  font: inherit;
  background: none;
  border: 0;
}

.context-chip-link {
  text-align: left;
  padding: 0;
}

.context-chip-link:disabled {
  cursor: wait;
}

.context-chip-remove {
  padding: 0 2px;
  font-weight: 700;
}

.prompt-tools {
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 10px 0 12px;
  display: flex;
}

.improve-prompt {
  color: #164e73;
  cursor: pointer;
  background: #f1f7fb;
  border: 1px solid #c9d9e6;
  border-radius: 8px;
  min-height: 36px;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 700;
}

.improve-prompt:hover:not(:disabled) {
  background: #e8f2f8;
  border-color: #4b87ad;
}

.improve-prompt:disabled {
  cursor: wait;
  opacity: .58;
}

.composer-actions {
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  display: flex;
}

.composer-actions .improve-prompt {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: auto;
  min-width: 0;
  min-height: 40px;
  overflow: hidden;
}

.composer-tool {
  color: #164e73;
  cursor: pointer;
  background: #f6fafc;
  border: 1px solid #d8e3eb;
  border-radius: 8px;
  flex: 0 0 40px;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  font-size: 21px;
  line-height: 1;
  display: inline-grid;
}

.composer-tool:hover {
  background: #e8f2f8;
  border-color: #4b87ad;
}

.composer-tool:focus-visible, .improve-prompt:focus-visible, .send:focus-visible {
  outline-offset: 2px;
  outline: 3px solid #4b87ad59;
}

.composer-tool.voice {
  font-size: 20px;
}

.composer-tool.voice svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8px;
  width: 18px;
  height: 18px;
}

.composer-tool.voice.is-listening {
  color: #fff;
  background: #164e73;
  border-color: #164e73;
}

.demo-label {
  color: #8b9aa5;
  font-size: 10px;
}

.prompt-proposal {
  color: #29485c;
  background: #f6fafc;
  border: 1px solid #c9d9e6;
  border-radius: 9px;
  gap: 12px;
  margin: 0 0 12px;
  padding: 12px;
  display: grid;
}

.prompt-proposal strong {
  font-size: 11px;
}

.prompt-proposal p {
  margin: 6px 0;
  font-size: 12px;
  line-height: 1.5;
}

.prompt-proposal small {
  color: #718795;
  font-size: 10px;
}

.prompt-proposal-actions {
  gap: 8px;
  display: flex;
}

.prompt-proposal-actions button {
  cursor: pointer;
  border-radius: 7px;
  min-height: 38px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 700;
}

.proposal-apply {
  color: #fff;
  background: #164e73;
  border: 1px solid #164e73;
}

.proposal-cancel {
  color: #315166;
  background: #fff;
  border: 1px solid #b9c9d3;
}

.prompt-feedback {
  color: #315166;
  margin: 9px 3px 0;
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 700px) {
  body:has(.oggi-app) {
    overflow-x: hidden;
  }

  .oggi-app {
    align-items: stretch;
    min-width: 0;
    display: flex;
    overflow-x: clip;
  }

  .oggi-sidebar {
    z-index: 1;
    flex: 0 0 64px;
    width: 64px;
    min-height: 100dvh;
    padding: 18px 8px 14px;
    position: relative;
  }

  .oggi-brand {
    justify-content: center;
    padding: 0 0 30px;
  }

  .oggi-brand .brand-mark {
    width: 28px;
    height: 28px;
  }

  .oggi-nav {
    gap: 8px;
  }

  .oggi-nav .nav-item {
    justify-content: center;
    width: 48px;
    min-height: 48px;
    padding: 8px;
  }

  .oggi-nav .nav-item span {
    width: auto;
    font-size: 19px;
  }

  .oggi-content {
    flex: auto;
    width: auto;
    min-width: 0;
    margin-left: 0;
  }

  .oggi-topbar {
    min-height: 60px;
    padding: 0 16px;
  }

  .conversation, .composer-wrap {
    width: 100%;
    max-width: none;
    padding-inline: 16px;
  }

  .conversation {
    padding-top: 30px;
    padding-bottom: 28px;
  }

  .welcome {
    margin-bottom: 32px;
  }

  .welcome h1 {
    max-width: 100%;
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.08;
  }

  .welcome-copy {
    max-width: 34rem;
  }

  .message, .message > div {
    min-width: 0;
  }

  .opportunity-card {
    width: 100%;
  }

  .composer-wrap {
    margin-top: auto;
    margin-bottom: 16px;
  }

  .composer-footer {
    align-items: center;
    gap: 8px;
    min-width: 0;
    display: flex;
  }

  .context-chip {
    flex: auto;
    min-width: 0;
    max-width: none;
  }

  .context-chip-link {
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    min-height: 44px;
    overflow: hidden;
  }

  .context-chip-remove {
    flex: 0 0 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .composer-actions {
    flex: none;
  }

  .composer-actions button {
    min-width: 44px;
    min-height: 44px;
  }

  .composer-note {
    max-width: 34rem;
  }

  .prompt-improvement-tools {
    align-items: stretch;
  }

  .prompt-improvement-button {
    text-align: left;
    flex: auto;
  }

  .prompt-improvement-tools span {
    align-self: center;
  }
}

@media (max-width: 520px) {
  .composer-footer {
    flex-wrap: wrap;
  }

  .composer-footer .context-chip {
    flex-basis: 100%;
    max-width: none;
  }

  .composer-footer .composer-actions {
    margin-left: auto;
  }
}

.legal-composer {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  display: grid;
}

.legal-composer > textarea, .legal-composer > .prompt-proposal {
  grid-column: 1 / -1;
}

.legal-composer > .prompt-improvement-tools {
  grid-area: 3 / 1;
  min-width: 0;
  margin: 0;
}

.legal-composer > .composer-footer {
  grid-area: 3 / 1 / auto / -1;
  min-width: 0;
}

.legal-composer .prompt-improvement-button {
  max-width: 100%;
}

.legal-composer > .composer-footer {
  justify-content: flex-end;
  width: 100%;
  display: flex;
}

.legal-composer > .prompt-feedback {
  grid-area: 4 / 1 / auto / -1;
}

.legal-composer .composer-actions {
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  display: flex;
}

.legal-composer .model-selector {
  flex: 0 auto;
  min-width: 0;
  margin-right: auto;
}

.legal-composer .model-selector-trigger {
  min-height: 40px;
}

.legal-composer .composer-tool, .legal-composer .send {
  flex: 0 0 40px;
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
}

.legal-composer .composer-tool {
  border: 1px solid var(--futura-border);
  color: var(--futura-primary);
  background: var(--futura-background);
  cursor: pointer;
  border-radius: 10px;
  place-items: center;
  font-size: 21px;
  line-height: 1;
  display: inline-grid;
}

.legal-composer .composer-tool:hover {
  border-color: var(--futura-primary);
  background: var(--futura-selection);
}

.legal-composer .composer-tool.voice svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8px;
  width: 18px;
  height: 18px;
}

.legal-composer .composer-tool.voice.is-listening {
  color: var(--futura-surface);
  border-color: var(--futura-primary);
  background: var(--futura-primary);
}

.legal-composer .improve-prompt {
  flex: 0 0 40px;
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  font-size: 0;
}

.legal-composer .improve-prompt:before {
  content: "✦";
  font-size: 16px;
}

.legal-composer .composer-tool:focus-visible, .legal-composer .send:focus-visible, .legal-composer .prompt-improvement-button:focus-visible {
  outline: 3px solid var(--futura-accent);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .legal-composer {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .legal-composer .model-selector-trigger strong {
    max-width: clamp(40px, 15vw, 120px);
  }

  .legal-composer .prompt-improvement-button {
    width: 100%;
    min-height: 44px;
    padding-inline: 10px;
    font-size: 11px;
  }

  .legal-composer .improve-prompt {
    flex-basis: 44px;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .legal-composer > .composer-footer {
    align-self: stretch;
  }

  .legal-composer > .composer-footer, .legal-composer .composer-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 430px) {
  .oggi-sidebar {
    flex-basis: 56px;
    width: 56px;
    padding-inline: 4px;
  }

  .oggi-nav .nav-item {
    width: 48px;
  }

  .oggi-topbar, .conversation, .composer-wrap {
    padding-inline: 12px;
  }

  .conversation {
    padding-top: 24px;
  }

  .messages {
    gap: 24px;
  }

  .message {
    gap: 8px;
    font-size: 13px;
  }

  .opportunity-card {
    gap: 9px;
    padding: 14px;
  }

  .opportunity-meta {
    gap: 7px 10px;
  }

  .composer {
    padding-inline: 12px;
  }
}

.opportunita-content {
  width: min(100% - 112px, 980px);
  margin: 0 auto;
  padding: 58px 0 70px;
}

.opportunita-heading {
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 37px;
  display: flex;
}

.opportunita-heading h1 {
  letter-spacing: -.05em;
  margin: 0 0 10px;
  font-family: Georgia, serif;
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 400;
}

.opportunita-heading p:not(.date-label) {
  color: #918d87;
  margin: 0;
  font-size: 14px;
}

.opportunita-count {
  color: #9a958d;
  padding-bottom: 7px;
  font-size: 11px;
}

.opportunita-filters {
  gap: 12px;
  margin-bottom: 18px;
  display: flex;
}

.search-field {
  color: #918c85;
  background: #fff;
  border: 1px solid #dedad4;
  border-radius: 7px;
  flex: 1;
  align-items: center;
  gap: 9px;
  min-height: 43px;
  padding: 0 13px;
  display: flex;
}

.search-field input {
  color: #45413d;
  background: none;
  border: 0;
  outline: 0;
  width: 100%;
  min-height: 40px;
  padding: 0;
  font-size: 13px;
}

.ambito-field {
  color: #8b867f;
  background: #fff;
  border: 1px solid #dedad4;
  border-radius: 7px;
  align-items: center;
  gap: 12px;
  min-height: 43px;
  padding-left: 14px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
}

.ambito-field select {
  color: #45413d;
  min-height: 41px;
  font: inherit;
  background: none;
  border: 0;
  outline: 0;
  padding: 0 30px 0 0;
  font-weight: 400;
}

.opportunita-list {
  border-top: 1px solid #e4e0da;
  display: grid;
}

.opportunita-row {
  color: #45413d;
  cursor: pointer;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid #e4e0da;
  grid-template-columns: 34px minmax(0, 1fr) 190px 20px;
  align-items: center;
  gap: 17px;
  width: 100%;
  padding: 22px 4px;
  display: grid;
}

.opportunita-row:hover {
  background: #f6f3ee;
}

.row-icon {
  color: #817b73;
  background: #eeeae4;
  border-radius: 8px;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 18px;
  display: grid;
}

.row-main, .row-side {
  min-width: 0;
}

.row-meta {
  color: #9b958d;
  text-transform: uppercase;
  letter-spacing: .08em;
  flex-wrap: wrap;
  gap: 11px;
  margin-bottom: 7px;
  font-size: 10px;
  display: flex;
}

.row-meta span:first-child {
  color: #77716a;
  font-weight: 700;
}

.row-main > strong {
  margin-bottom: 7px;
  font-size: 14px;
  display: block;
}

.row-main p {
  color: #918c85;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  overflow: hidden;
}

.row-side {
  text-align: right;
  gap: 5px;
  display: grid;
}

.row-side strong {
  font-size: 12px;
}

.row-side span {
  color: #97918a;
  font-size: 10px;
}

.row-side em {
  color: #83705d;
  background: #f2e9dc;
  border-radius: 4px;
  justify-self: end;
  padding: 4px 7px;
  font-size: 9px;
  font-style: normal;
}

.row-arrow {
  color: #9c968f;
  font-size: 18px;
}

.opportunita-state {
  color: #948f88;
  padding: 28px 0;
  font-size: 13px;
}

.inline-action {
  color: #4e4943;
  min-height: auto;
  font-size: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
}

.opportunita-empty {
  color: #928c84;
  text-align: center;
  border: 1px dashed #d9d4cc;
  border-radius: 9px;
  justify-items: center;
  gap: 8px;
  padding: 75px 20px;
  display: grid;
}

.opportunita-empty span {
  font-size: 28px;
}

.opportunita-empty strong {
  color: #4c4842;
  font-size: 14px;
}

.opportunita-empty p {
  margin: 0;
  font-size: 12px;
}

.detail-backdrop {
  z-index: 20;
  background: #2423213d;
  justify-content: flex-end;
  display: flex;
  position: fixed;
  inset: 0;
}

.detail-panel {
  background: #fbfaf8;
  width: min(100%, 470px);
  padding: 62px 46px 40px;
  position: relative;
  overflow-y: auto;
  box-shadow: -12px 0 35px #2423211a;
}

.detail-close {
  color: #817b73;
  background: none;
  border: 0;
  min-height: auto;
  padding: 0;
  font-size: 27px;
  font-weight: 300;
  position: absolute;
  top: 22px;
  right: 26px;
}

.detail-panel h2 {
  letter-spacing: -.04em;
  max-width: 350px;
  margin: 0 0 9px;
  font-family: Georgia, serif;
  font-size: 31px;
  font-weight: 400;
  line-height: 1.08;
}

.detail-ente {
  color: #8e8880;
  margin: 0 0 32px;
  font-size: 12px;
}

.detail-facts {
  border-top: 1px solid #e2ded7;
  border-bottom: 1px solid #e2ded7;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 17px 0;
  display: grid;
}

.detail-facts div {
  gap: 6px;
  display: grid;
}

.detail-facts span {
  color: #9a948c;
  font-size: 10px;
}

.detail-facts strong {
  font-size: 11px;
  line-height: 1.3;
}

.detail-panel h3 {
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 29px 0 9px;
  font-size: 11px;
}

.detail-panel > p:not(.date-label):not(.detail-ente) {
  color: #68625c;
  font-size: 13px;
  line-height: 1.65;
}

.detail-panel ul {
  color: #68625c;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
  display: grid;
}

.talk-button {
  color: #fff;
  background: #37332f;
  border: 1px solid #37332f;
  border-radius: 7px;
  justify-content: space-between;
  align-items: center;
  margin-top: 35px;
  padding: 13px 15px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
}

.talk-button span {
  font-size: 18px;
}

@media (max-width: 700px) {
  .opportunita-content {
    width: min(100% - 36px, 980px);
    padding-top: 43px;
  }

  .opportunita-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 28px;
  }

  .opportunita-count {
    padding: 0;
  }

  .opportunita-filters {
    flex-direction: column;
  }

  .opportunita-row {
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    align-items: start;
    gap: 11px;
  }

  .row-side {
    text-align: left;
    flex-wrap: wrap;
    grid-column: 2 / 3;
    align-items: center;
    gap: 8px 12px;
    display: flex;
  }

  .row-side em {
    justify-self: auto;
  }

  .row-arrow {
    grid-area: 1 / 3;
  }

  .detail-panel {
    width: 100%;
    padding: 59px 28px 32px;
  }
}

.document-upload-button {
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  background: #37332f;
  border: 1px solid #37332f;
  border-radius: 7px;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
}

.document-count {
  color: #9a958d;
  margin: 0 0 12px;
  font-size: 11px;
}

.document-notice {
  color: #4e674e;
  background: #f1f7ef;
  border: 1px solid #cbdaca;
  border-radius: 7px;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  padding: 11px 13px;
  font-size: 12px;
  display: flex;
}

.document-notice button {
  min-height: auto;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  font-size: 18px;
}

.document-row {
  grid-template-columns: 42px minmax(0, 1fr) 160px 20px;
}

.file-icon {
  color: #766e62;
  letter-spacing: .04em;
  background: #eeeae4;
  border-radius: 8px;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 9px;
  font-weight: 700;
  display: grid;
}

.file-pdf {
  color: #936653;
  background: #f3e5de;
}

.file-xlsx {
  color: #687d69;
  background: #e7efe5;
}

.file-docx {
  color: #65768a;
  background: #e5ebf1;
}

.file-jpg {
  color: #87734e;
  background: #f2ebdc;
}

.document-status {
  justify-self: end;
}

.document-status.status-ok {
  color: #647763;
  background: #e7efe5;
}

.document-status.status-review {
  color: #8a6b49;
  background: #f3eadc;
}

.document-detail-actions {
  gap: 10px;
  margin-top: 35px;
  display: grid;
}

.document-detail-actions .talk-button {
  margin-top: 0;
}

.delete-document-button {
  color: #945c4f;
  background: none;
  border: 1px solid #d9bdb5;
  border-radius: 7px;
  min-height: 38px;
  padding: 9px 15px;
  font-size: 12px;
  font-weight: 700;
}

.confirm-backdrop {
  z-index: 30;
  background: #24232152;
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
}

.confirm-dialog {
  background: #fbfaf8;
  border-radius: 10px;
  width: min(100%, 410px);
  padding: 32px;
  box-shadow: 0 16px 45px #2423212e;
}

.confirm-dialog h2 {
  letter-spacing: -.04em;
  margin: 0 0 12px;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 400;
}

.confirm-dialog > p:not(.date-label) {
  color: #68625c;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.confirm-actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
  display: flex;
}

.cancel-button, .confirm-delete-button {
  border-radius: 6px;
  min-height: 38px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
}

.cancel-button {
  color: #625d56;
  background: none;
  border: 1px solid #d9d5cf;
}

.confirm-delete-button {
  color: #fff;
  background: #9a6255;
  border: 1px solid #9a6255;
}

@media (max-width: 700px) {
  .document-upload-button {
    justify-content: center;
    align-self: stretch;
  }

  .document-row {
    grid-template-columns: 38px minmax(0, 1fr) 18px;
  }

  .document-row .row-side {
    grid-column: 2 / 3;
  }

  .document-status {
    justify-self: auto;
  }
}

.deadline-icon {
  color: #817b73;
  background: #eeeae4;
  border-radius: 8px;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 16px;
  font-weight: 700;
  display: grid;
}

.deadline-icon.urgent {
  color: #8f604e;
  background: #f1e3dc;
}

.scadenza-row .row-side {
  gap: 7px;
}

.scadenza-row .row-side span {
  text-transform: uppercase;
  letter-spacing: .06em;
}

.scadenza-row .row-side em {
  color: #756c61;
  background: #eeeae4;
}

.scadenza-row .row-side em.status-in-lavorazione {
  color: #756145;
  background: #f2e9dc;
}

.scadenza-row .row-side em.status-in-attesa {
  color: #64716e;
  background: #e6eeeb;
}

.ente-profile-content {
  max-width: 980px;
}

.ente-profile-content .opportunita-heading {
  align-items: flex-end;
}

.profile-actions, .profile-section-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  display: flex;
}

.profile-section-actions {
  justify-content: flex-start;
  margin-top: -18px;
}

.profile-card {
  border-top: 1px solid #e4e0da;
  padding-top: 22px;
}

.profile-field {
  border-bottom: 1px solid #e4e0da;
  grid-template-columns: minmax(120px, .65fr) minmax(0, 1.35fr);
  align-items: center;
  gap: 18px;
  padding: 13px 0;
  display: grid;
}

.profile-field dt {
  color: #9a948c;
  font-size: 11px;
}

.profile-field dd {
  overflow-wrap: anywhere;
  color: #4d4944;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  display: flex;
}

.profile-field input {
  color: #37332f;
  width: 100%;
  min-height: 38px;
  font: inherit;
  background: #fff;
  border: 1px solid #d9d4cc;
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 12px;
}

.copy-field {
  color: #56786b;
  cursor: pointer;
  background: none;
  border: 0;
  flex: none;
  padding: 3px 0;
  font-size: 10px;
}

.is-empty, .profile-muted {
  color: #9a948c;
  font-style: italic;
}

.compliance-status {
  color: #9a5548;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 0 5px;
  font-size: 12px;
  display: flex;
}

.compliance-status span, .profile-muted {
  color: #817a72;
  font-size: 11px;
}

.profile-muted {
  margin: 4px 0 0;
  line-height: 1.5;
}

.durc-section {
  gap: 18px;
  display: grid;
}

.durc-section select {
  color: #4d4944;
  min-height: 38px;
  font: inherit;
  background: #fff;
  border: 1px solid #d9d4cc;
  border-radius: 6px;
  padding: 8px 28px 8px 10px;
  font-size: 12px;
}

.durc-controls {
  border-top: 1px solid #e4e0da;
  border-bottom: 1px solid #e4e0da;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  display: flex;
}

.durc-controls fieldset {
  color: #4d4944;
  border: 0;
  align-items: center;
  gap: 13px;
  margin: 0;
  padding: 0;
  font-size: 12px;
  display: flex;
}

.durc-controls legend {
  color: #9a948c;
  margin-right: 4px;
  font-size: 11px;
}

.durc-controls label {
  cursor: pointer;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 400;
  display: flex;
}

.durc-controls input {
  accent-color: #56786b;
  min-height: auto;
}

.durc-no {
  color: #4d4944;
  font-size: 12px;
}

.durc-warning {
  color: #8a6b49;
  flex: 180px;
  margin: 0;
  font-size: 12px;
}

.durc-warning-danger {
  color: #a04e45;
  font-weight: 700;
}

.durc-upload {
  flex: none;
}

.durc-reading {
  color: #68625c;
  background: #f6f5f1;
  margin: 0;
  padding: 12px 14px;
  font-size: 12px;
}

.durc-read-card {
  background: #f6f5f1;
  border-left: 2px solid #b5cbb8;
  gap: 10px;
  padding: 16px;
  display: grid;
}

.durc-read-card > strong {
  color: #37332f;
  font-size: 13px;
}

.durc-read-card label {
  color: #746e67;
  text-transform: uppercase;
  letter-spacing: .07em;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  display: grid;
}

.durc-read-card input {
  color: #37332f;
  text-transform: none;
  letter-spacing: normal;
  background: #fff;
  width: 100%;
  min-height: 38px;
  font-size: 12px;
}

.durc-read-card .talk-button {
  justify-self: start;
  margin-top: 5px;
}

.durc-confirmed {
  border-bottom: 1px solid #e4e0da;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding: 13px 0;
  font-size: 12px;
  display: flex;
}

.durc-confirmed strong {
  overflow-wrap: anywhere;
  color: #4d4944;
}

.durc-confirmed span {
  color: #817a72;
}

.durc-confirmed a {
  color: #56786b;
  text-underline-offset: 3px;
  font-weight: 700;
  text-decoration: underline;
}

.durc-note {
  color: #817a72;
  margin: 0;
  font-size: 11px;
  font-style: italic;
  line-height: 1.5;
}

.durc-row {
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  display: flex;
}

.durc-status-copy {
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
  display: flex;
}

.durc-status-copy > div {
  gap: 5px;
  display: grid;
}

.durc-status-copy strong {
  color: #4d4944;
  font-size: 14px;
}

.durc-status-copy small {
  color: #817a72;
  font-size: 11px;
  line-height: 1.45;
}

.durc-status-icon {
  color: #68625c;
  border: 1px solid #b9b2a9;
  border-radius: 50%;
  flex: 0 0 25px;
  place-items: center;
  width: 25px;
  height: 25px;
  font-size: 13px;
  font-weight: 700;
  display: grid;
}

.durc-status-scaduto .durc-status-copy strong {
  color: #a04e45;
}

.durc-status-scaduto .durc-status-icon {
  color: #a04e45;
  border-color: #c7867d;
}

.durc-status-in-scadenza .durc-status-copy strong {
  color: #9a713f;
}

.durc-status-in-scadenza .durc-status-icon {
  color: #9a713f;
  border-color: #c9a879;
}

.durc-row-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px 12px;
  display: flex;
}

.durc-action {
  min-height: 38px;
  font: inherit;
  cursor: pointer;
  border-radius: 5px;
  justify-content: center;
  align-items: center;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
}

.durc-action-primary {
  color: #fff;
  background: #37332f;
}

.durc-action-secondary {
  color: #4d4944;
  background: #fff;
  border: 1px solid #cfc9c1;
}

.durc-declaration-checkbox {
  color: #56786b;
  min-height: 38px;
  font: inherit;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  display: inline-flex;
}

.durc-declaration-checkbox input {
  accent-color: #56786b;
  cursor: pointer;
  width: 16px;
  height: 16px;
  margin: 0;
}

.section-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  display: flex;
}

.profile-attachments {
  gap: 8px;
  margin-top: 15px;
  display: grid;
}

.profile-attachment {
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  display: flex;
}

.profile-attachment > div {
  flex: 1;
  min-width: 0;
}

.profile-attachment strong {
  overflow-wrap: anywhere;
  color: #4d4944;
  font-size: 12px;
  font-weight: 500;
  display: block;
}

.profile-attachment small {
  color: #9a948c;
  margin-top: 3px;
  font-size: 10px;
  display: block;
}

.profile-attachment .file-icon {
  color: #56786b;
  background: #eeece7;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 9px;
  display: grid;
}

.profile-attachment label {
  cursor: pointer;
}

.practice-fill-button {
  width: 100%;
  margin: 24px 0 9px;
}

.fill-preview {
  color: #625d56;
  background: #f6f5f1;
  border-left: 2px solid #b5cbb8;
  gap: 6px;
  margin: 18px 0;
  padding: 14px;
  font-size: 12px;
  display: grid;
}

.fill-preview strong {
  color: #37332f;
}

.practice-notice {
  z-index: 4;
  width: min(420px, 100% - 32px);
  position: fixed;
  bottom: 24px;
  right: 24px;
}

.ente-profile-details {
  gap: 34px;
  display: grid;
}

.ente-profile-intro {
  border-top: 1px solid #e4e0da;
  border-bottom: 1px solid #e4e0da;
  align-items: flex-start;
  gap: 18px;
  padding: 25px 0 28px;
  display: flex;
}

.ente-seal {
  color: #68625c;
  background: #f0ede8;
  border: 1px solid #d7d2ca;
  border-radius: 50%;
  flex: 0 0 54px;
  place-items: center;
  width: 54px;
  height: 54px;
  font-family: Georgia, serif;
  font-size: 24px;
  display: grid;
}

.ente-profile-intro h2 {
  letter-spacing: -.04em;
  margin: 0 0 9px;
  font-family: Georgia, serif;
  font-size: clamp(25px, 4vw, 34px);
  font-weight: 400;
}

.ente-profile-intro p:not(.date-label) {
  color: #68625c;
  max-width: 620px;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.6;
}

.ente-context {
  color: #9a948c;
  font-size: 11px;
}

.ente-profile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 52px;
  display: grid;
}

.ente-info-section {
  min-width: 0;
}

.ente-info-section dl {
  border-top: 1px solid #e4e0da;
  margin: 0;
}

.ente-info-section dl div {
  border-bottom: 1px solid #e4e0da;
  grid-template-columns: minmax(105px, .65fr) minmax(0, 1.35fr);
  gap: 18px;
  padding: 15px 0;
  display: grid;
}

.ente-info-section dt {
  color: #9a948c;
  font-size: 11px;
}

.ente-info-section dd {
  overflow-wrap: anywhere;
  color: #4d4944;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.ente-operation-note {
  border-top: 1px solid #e4e0da;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding: 24px 0 0;
  display: flex;
}

.ente-operation-note h3 {
  letter-spacing: -.03em;
  margin: 0 0 7px;
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 400;
}

.ente-operation-note p:not(.date-label) {
  color: #68625c;
  max-width: 540px;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.ente-updated {
  color: #9a948c;
  flex: none;
  font-size: 10px;
}

@media (max-width: 700px) {
  .ente-profile-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ente-operation-note {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .ente-profile-intro {
    padding-top: 20px;
  }

  .ente-profile-content .opportunita-heading {
    align-items: stretch;
  }

  .profile-actions {
    justify-content: stretch;
  }

  .profile-actions button {
    flex: 1;
  }

  .profile-field {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .profile-field dd {
    min-height: 28px;
  }

  .profile-attachment {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .profile-attachment .copy-field {
    margin-left: 48px;
  }

  .section-heading {
    flex-direction: column;
    gap: 8px;
  }

  .durc-section .section-heading select {
    width: 100%;
  }

  .durc-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .durc-upload {
    justify-content: center;
    width: 100%;
  }

  .durc-confirmed {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .durc-read-card .talk-button {
    justify-content: center;
    width: 100%;
  }

  .durc-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .durc-row-actions {
    justify-content: flex-start;
  }

  .durc-action {
    flex: 1;
  }
}

.library-app .oggi-nav {
  overflow-y: auto;
}

.library-app .opportunita-heading button {
  flex: none;
}

.standalone-search {
  width: min(100%, 620px);
  margin-bottom: 24px;
}

.monitoring-note {
  color: #4d614f;
  background: #f4f8f2;
  border: 1px solid #d8e4d8;
  border-radius: 7px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 0 0 22px;
  padding: 13px 16px;
  font-size: 12px;
  display: flex;
}

.monitoring-note strong {
  color: #315539;
}

.source-row .file-icon, .project-row .file-icon {
  color: #37332f;
  background: #eeece7;
  place-items: center;
  font-size: 18px;
  display: grid;
}

.detail-link {
  overflow-wrap: anywhere;
  color: #56786b;
  font-size: 13px;
  line-height: 1.5;
  display: block;
}

.opportunity-source .detail-link {
  text-underline-offset: 3px;
  font-weight: 700;
  text-decoration: underline;
}

.opportunity-source .detail-link:focus-visible {
  outline-offset: 4px;
  outline: 2px solid #56786b;
}

.detail-missing {
  color: #817a72;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.detail-actions, .document-detail-actions {
  gap: 9px;
  margin-top: 32px;
  display: grid;
}

.document-opportunity {
  border-top: 1px solid #e2ded7;
  margin-top: 28px;
  padding-top: 22px;
}

.document-opportunity h3 {
  margin-top: 0;
}

.document-opportunity-link {
  color: #56786b;
  text-underline-offset: 3px;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: underline;
  display: flex;
}

.document-opportunity-link span {
  flex: none;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
}

.document-opportunity-link:focus-visible {
  outline-offset: 4px;
  border-radius: 2px;
  outline: 2px solid #56786b;
}

.document-opportunity-empty {
  color: #8e8880;
  margin: 0;
  font-size: 13px;
}

.secondary-detail-button, .delete-document-button {
  color: #37332f;
  background: none;
  border: 1px solid #d9d4cc;
  border-radius: 7px;
  min-height: 40px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
}

.delete-document-button {
  color: #a04e45;
  border-color: #e5c9c5;
}

.source-form {
  background: #fbfaf8;
  border: 1px solid #e2ded7;
  border-radius: 10px;
  gap: 16px;
  width: min(100% - 32px, 480px);
  max-height: calc(100dvh - 32px);
  padding: 38px;
  display: grid;
  position: relative;
  overflow-y: auto;
}

.source-form h2 {
  letter-spacing: -.03em;
  margin: 0;
  font-family: Georgia, serif;
  font-size: 29px;
  font-weight: 400;
}

.source-form label, .document-edit-form label {
  color: #746e67;
  text-transform: uppercase;
  letter-spacing: .07em;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  display: grid;
}

.source-form input, .source-form textarea, .document-edit-form input, .document-edit-form textarea {
  color: #37332f;
  width: 100%;
  min-height: 43px;
  font: inherit;
  text-transform: none;
  letter-spacing: normal;
  background: #fff;
  border: 1px solid #d9d4cc;
  border-radius: 6px;
  padding: 11px;
  font-size: 13px;
}

.source-form textarea, .document-edit-form textarea {
  resize: vertical;
  min-height: 82px;
}

.check-label {
  flex-direction: row;
  align-items: center;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: 13px !important;
  display: flex !important;
}

.check-label input {
  width: 18px;
  min-height: 18px;
}

.associated-list {
  gap: 8px;
  display: grid;
}

.associated-list a {
  color: #4f6e64;
  border-bottom: 1px solid #e6e1da;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  font-size: 12px;
  text-decoration: none;
  display: flex;
}

.updates-list {
  gap: 15px;
  display: grid;
}

.updates-list article {
  background: #f6f5f1;
  border-left: 2px solid #b5cbb8;
  padding: 13px;
}

.updates-list article > div {
  color: #625d56;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  display: flex;
}

.updates-list article em {
  color: #9a5548;
  font-style: normal;
  font-weight: 700;
}

.updates-list p {
  color: #4f4a45;
  margin: 8px 0;
  font-size: 12px;
  line-height: 1.5;
}

.updates-list small {
  color: #817a72;
  margin-top: 4px;
  font-size: 11px;
  display: block;
}

@media (max-width: 700px) {
  .library-app .oggi-sidebar {
    overflow: hidden;
  }

  .library-app .oggi-nav {
    overflow-y: auto;
  }

  .library-app .nav-item {
    font-size: 0;
  }

  .library-app .nav-item > span {
    font-size: 15px;
  }

  .source-form {
    padding: 30px 22px;
  }

  .monitoring-note {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .library-app .opportunita-heading button {
    width: 100%;
  }
}

.profile-edit-form {
  gap: 14px;
  display: grid;
}

.profile-edit-form label {
  color: #746e67;
  text-transform: uppercase;
  letter-spacing: .07em;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  display: grid;
}

.profile-edit-form input {
  color: #37332f;
  width: 100%;
  min-height: 42px;
  font: inherit;
  text-transform: none;
  letter-spacing: normal;
  background: #fff;
  border: 1px solid #d9d4cc;
  border-radius: 6px;
  padding: 10px;
  font-size: 13px;
}

.profile-edit-form input[readonly] {
  color: #68625c;
  background: #f6f3ee;
}

.profile-panel-actions {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  display: flex;
}

.profile-panel-actions .talk-button {
  margin-top: 0;
}

.profile-settings-link {
  color: #56786b;
  border-top: 1px solid #e2ded7;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
}

.settings-content {
  max-width: 760px;
}

.settings-form {
  gap: 34px;
  display: grid;
}

.settings-section {
  border-top: 1px solid #e4e0da;
  padding-top: 22px;
}

.settings-section h2 {
  letter-spacing: -.03em;
  margin: 0 0 22px;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
}

.settings-section > label:not(.settings-toggle) {
  color: #746e67;
  text-transform: uppercase;
  letter-spacing: .07em;
  gap: 7px;
  max-width: 420px;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 700;
  display: grid;
}

.settings-section select {
  color: #68625c;
  min-height: 42px;
  font: inherit;
  background: #f6f3ee;
  border: 1px solid #d9d4cc;
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 13px;
}

.settings-toggle {
  color: #4d4944;
  cursor: pointer;
  border-bottom: 1px solid #e4e0da;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 0;
  display: flex;
}

.settings-toggle input {
  accent-color: #56786b;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}

.settings-toggle span {
  gap: 4px;
  display: grid;
}

.settings-toggle strong {
  font-size: 13px;
}

.settings-toggle small {
  color: #918c85;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
}

.settings-actions {
  justify-content: flex-start;
  display: flex;
}

.settings-actions .talk-button {
  margin-top: 0;
}

.settings-section-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  display: flex;
}

.settings-section-heading h2 {
  margin-bottom: 0;
}

.secondary-action {
  color: #56786b;
  cursor: pointer;
  background: none;
  border: 1px solid #56786b;
  border-radius: 7px;
  min-height: 38px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 700;
}

.secondary-action:hover {
  background: #f1f7ef;
}

.settings-help {
  color: #746e67;
  max-width: 570px;
  margin: -8px 0 18px;
  font-size: 12px;
  line-height: 1.55;
}

.skills-list {
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
}

.skills-list li {
  background: #f9f7f3;
  border: 1px solid #e4e0da;
  border-radius: 7px;
  gap: 4px;
  padding: 13px 15px;
  display: grid;
}

.skills-list strong {
  color: #4d4944;
  font-size: 13px;
}

.skills-list span, .skills-state {
  color: #817b73;
  font-size: 12px;
  line-height: 1.5;
}

.skill-form {
  background: #fbfaf8;
  border: 1px solid #d9d4cc;
  border-radius: 8px;
  gap: 12px;
  padding: 16px;
  display: grid;
}

.skill-form label {
  color: #746e67;
  text-transform: uppercase;
  letter-spacing: .07em;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  display: grid;
}

.skill-form input, .skill-form textarea {
  color: #4d4944;
  width: 100%;
  font: inherit;
  resize: vertical;
  background: #fff;
  border: 1px solid #d9d4cc;
  border-radius: 6px;
  padding: 10px;
  font-size: 13px;
}

.skill-form .talk-button {
  justify-self: start;
  margin-top: 3px;
}

@media (max-width: 900px) {
  .legal-source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .legal-sources-search > div {
    grid-template-columns: 1fr;
    display: grid;
  }

  .legal-sources-search .primary-button {
    width: 100%;
  }

  .legal-source-grid {
    grid-template-columns: 1fr;
  }

  .legal-sources-notice {
    margin-top: 0;
  }

  .legal-source-card p {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  .profile-panel-actions {
    flex-direction: column-reverse;
  }

  .profile-panel-actions button {
    width: 100%;
  }

  .settings-content {
    width: min(100% - 36px, 760px);
  }

  .settings-actions .talk-button {
    width: 100%;
  }

  .settings-section-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .secondary-action, .skill-form .talk-button {
    width: 100%;
  }

  .settings-demo-page {
    width: min(100% - 32px, 900px);
  }

  .settings-demo-card .settings-section-heading {
    align-items: stretch;
  }

  .settings-demo-card .secondary-button {
    width: 100%;
  }

  .settings-demo-grid {
    grid-template-columns: 1fr;
  }
}

.legal-documents-page .legal-heading {
  align-items: flex-end;
}

.legal-demo-note {
  border: 1px solid var(--futura-border);
  color: var(--futura-secondary);
  background: var(--futura-selection);
  border-radius: 10px;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 22px;
  padding: 13px 16px;
  font-size: 12px;
  display: flex;
}

.legal-demo-note strong {
  color: var(--futura-primary);
}

.legal-feedback {
  border-radius: 10px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 14px;
  font-size: 12px;
  display: flex;
}

.legal-feedback button {
  min-height: 24px;
  color: inherit;
  background: none;
  border: 0;
  padding: 0 4px;
  font-size: 18px;
}

.success-feedback {
  color: var(--futura-success);
  background: #e8f5ee;
  border: 1px solid #b8dfc8;
}

.error-feedback {
  color: var(--futura-error);
  background: #fcebea;
  border: 1px solid #efc2bd;
}

.legal-document-filter {
  gap: 7px;
  max-width: 620px;
  margin-bottom: 22px;
  display: grid;
}

.legal-document-filter label {
  color: var(--futura-text);
  font-size: 12px;
  font-weight: 700;
}

.legal-document-filter input {
  width: 100%;
  min-height: 46px;
}

.legal-documents-page .document-card {
  border-radius: 12px;
  min-width: 0;
}

.legal-documents-page .document-card .status {
  margin-left: auto;
}

.legal-modal-backdrop {
  z-index: 30;
  background: #12385b40;
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
}

.legal-document-modal {
  border: 1px solid var(--futura-border);
  background: var(--futura-surface);
  border-radius: 14px;
  width: min(100%, 480px);
  max-height: calc(100dvh - 40px);
  padding: 34px;
  position: relative;
  overflow-y: auto;
  box-shadow: 0 16px 44px #12385b2e;
}

.legal-document-modal h2 {
  color: var(--futura-text);
  margin: 0 0 10px;
  font: 400 28px / 1.15 Georgia, serif;
}

.legal-modal-copy {
  color: var(--futura-secondary);
  margin: 0 0 24px;
  font-size: 13px;
  line-height: 1.55;
}

.legal-document-form {
  gap: 9px;
  display: grid;
}

.legal-document-form label {
  color: var(--futura-text);
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  display: grid;
}

.legal-document-form input[type="file"] {
  border: 1px solid var(--futura-border);
  width: 100%;
  min-height: 48px;
  color: var(--futura-secondary);
  background: var(--futura-background);
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
}

.legal-field-help {
  color: var(--futura-secondary);
  margin: 0 0 10px;
  font-size: 11px;
}

.legal-document-form .primary-button:disabled {
  cursor: wait;
  opacity: .7;
}

@media (max-width: 700px) {
  .legal-documents-page .legal-heading {
    align-items: stretch;
  }

  .legal-document-modal {
    padding: 28px 22px;
  }

  .legal-documents-page .document-card {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .legal-documents-page .document-card .document-main {
    flex-basis: calc(100% - 55px);
  }

  .legal-documents-page .document-card .status {
    margin-left: 0;
  }
}

.operational-page .legal-heading {
  margin-bottom: 28px;
}

.operational-page .legal-heading > div > p:last-child {
  max-width: 680px;
}

@media (max-width: 700px) {
  .operational-page .legal-heading {
    gap: 16px;
  }

  .oggi-mode-switcher {
    width: 100%;
  }

  .oggi-mode-switcher button {
    flex: 1;
    min-width: 0;
  }

  .operational-page[data-oggi-mode="routine"] .operational-widgets {
    grid-template-columns: 1fr;
  }
}

.operational-page .operational-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  gap: 26px;
}

.operational-page .oggi-assistant-message {
  margin-bottom: 14px;
}

.operational-page .oggi-assistant-message p {
  font-size: 16px;
}

.operational-page .alfa-context-card {
  border-color: #a9c4dc;
  box-shadow: 0 10px 26px #12385b1c;
}

.operational-page .alfa-context-card:before {
  content: "PROSSIMA AZIONE CONSIGLIATA";
  color: var(--futura-primary);
  letter-spacing: .1em;
  grid-column: 1 / -1;
  margin-bottom: -4px;
  font-size: 9px;
  font-weight: 700;
}

.operational-page .alfa-context-actions .primary-button {
  box-shadow: 0 4px 10px #12385b29;
}

.operational-page .alfa-context-actions .secondary-button, .operational-page .alfa-context-actions .primary-button {
  min-height: 44px;
}

.operational-page .legal-composer {
  box-shadow: none;
}

.operational-page .legal-composer .send {
  color: var(--futura-primary);
  background: var(--futura-surface);
  border-color: var(--futura-border);
}

.operational-page .legal-composer .send:hover {
  color: var(--futura-primary-hover);
  background: var(--futura-selection);
  border-color: var(--futura-primary);
}

.operational-page .routine-proposal .primary-button {
  color: var(--futura-primary);
  background: var(--futura-surface);
  border-color: var(--futura-border);
}

.operational-page .routine-proposal .primary-button:hover {
  background: var(--futura-selection);
  border-color: var(--futura-primary);
}

.operational-page .automation-widget .primary-button {
  color: var(--futura-primary);
  background: var(--futura-surface);
  border-color: var(--futura-border);
}

.operational-page .automation-widget .primary-button:hover {
  background: var(--futura-selection);
  border-color: var(--futura-primary);
}

.operational-page .operational-widgets {
  gap: 14px;
}

.operational-page .oggi-widget {
  box-shadow: 0 3px 12px #12385b0a;
}

.operational-page .routine-card {
  background: #eef5fb;
}

.operational-page .oggi-widget .context-link {
  background: none;
}

@media (max-width: 950px) {
  .operational-page .operational-grid {
    grid-template-columns: 1fr;
  }

  .operational-page .operational-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .operational-page .operational-widgets {
    grid-template-columns: 1fr;
  }

  .operational-page .alfa-context-card:before {
    grid-column: 1 / -1;
  }

  .operational-page .alfa-context-actions .primary-button, .operational-page .alfa-context-actions .secondary-button {
    flex-basis: 100%;
  }
}

/*# sourceMappingURL=src_app_globals_162hn9o.css.map*/