/* [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;
}

.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 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;
}

.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;
}

.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-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-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;
  }
}

.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;
}

@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;
  }

  .improve-prompt {
    padding-inline: 10px;
  }

  .composer-feedback {
    align-items: flex-start;
    line-height: 1.4;
  }

  .composer-note {
    max-width: 34rem;
  }
}

@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;
  }

  .improve-prompt-label {
    display: none;
  }

  .improve-prompt {
    width: 44px;
    padding: 0;
  }
}

.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;
  }
}

:root {
  --canvas: #fff;
  --sidebar: #f4f7fc;
  --text: #17324d;
  --muted: #62738b;
  --action: #2457d6;
  --action-hover: #1945b8;
  --selection: #e4eeff;
  --soft: #eff5ff;
  --border: #d8e3f2;
  --cyan: #20b8d5;
  --radius-control: 11px;
  --radius-panel: 16px;
  --space: 8px;
  --shadow: 0 4px 16px #17324d0d;
}

body {
  color: var(--text);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
}

.oggi-app {
  background: var(--canvas);
}

.oggi-sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  width: 280px;
  padding: 28px 18px 20px;
}

.oggi-content {
  background: var(--canvas);
  margin-left: 280px;
}

.bando-brand {
  color: var(--text);
  letter-spacing: -.02em;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  display: inline-flex;
}

.bando-brand-symbol {
  width: 32px;
  height: 32px;
  color: var(--action);
  place-items: center;
  display: inline-grid;
}

.bando-brand-symbol svg {
  width: 100%;
  height: 100%;
}

.bando-brand-compact {
  gap: 7px;
  font-size: 14px;
}

.bando-brand-compact .bando-brand-symbol {
  width: 25px;
  height: 25px;
}

.oggi-brand {
  padding: 0 12px 26px;
}

.municipality {
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  color: var(--text);
  background: #fff;
  align-self: flex-start;
  margin: 0 2px 22px;
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.municipality > span:nth-child(2) {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.municipality-dot {
  background: var(--action);
  width: 7px;
  height: 7px;
  animation: 2.6s ease-in-out infinite municipality-status-pulse;
  box-shadow: 0 0 0 3px #2457d62e;
}

@keyframes municipality-status-pulse {
  0%, 100% {
    box-shadow: 0 0 0 3px #2457d62e;
  }

  50% {
    box-shadow: 0 0 0 5px #2457d612;
  }
}

@media (prefers-reduced-motion: reduce) {
  .municipality-dot {
    animation: none;
  }
}

.municipality-chevron {
  color: var(--muted);
  margin-left: auto;
  font-size: 16px;
}

.oggi-nav {
  gap: 3px;
}

.nav-item {
  border-radius: var(--radius-control);
  min-height: 44px;
  color: var(--muted);
  padding: 10px 12px;
  font-size: 13px;
  text-decoration: none;
}

.nav-item:hover {
  color: var(--action-hover);
  background: #eaf1fc;
}

.nav-item span {
  width: 21px;
  color: var(--muted);
  font-size: 16px;
}

.nav-item span svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 20px;
  height: 20px;
  display: block;
}

.nav-item.active {
  color: var(--action);
  background: var(--selection);
  font-weight: 600;
}

.nav-item.active span {
  color: var(--action);
}

.nav-item b {
  color: var(--action);
  border: 1px solid var(--border);
  background: #fff;
}

.sidebar-bottom {
  margin-top: auto;
}

.profile {
  border-color: var(--border);
  color: var(--text);
  margin-top: 10px;
  padding: 14px 10px 0;
}

.profile-button {
  color: var(--text);
}

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

.avatar {
  color: var(--action);
  background: var(--soft);
  border: 1px solid var(--border);
}

.profile small, .more {
  color: var(--muted);
}

.oggi-topbar {
  border-color: var(--border);
  min-height: 64px;
  color: var(--muted);
  padding: 0 48px;
}

.conversation {
  width: min(100% - 96px, 960px);
  padding: 54px 0 38px;
}

.date-label {
  color: var(--muted);
}

.welcome h1, .opportunita-heading h1, .detail-panel h2 {
  color: var(--text);
  letter-spacing: -.04em;
  font-family: inherit;
  font-weight: 700;
}

.welcome-copy, .opportunita-heading p:not(.date-label) {
  color: var(--muted);
}

.messages {
  gap: 25px;
}

.message, .assistant-message {
  color: var(--text);
}

.message-mark {
  color: var(--action);
  background: var(--soft);
  border: 1px solid var(--border);
  place-items: center;
  display: grid;
}

.message-mark svg {
  width: 19px;
  height: 19px;
}

.user-message {
  color: var(--text);
  background: var(--selection);
  border-radius: 14px;
}

.opportunity-card {
  border-color: var(--border);
  border-radius: var(--radius-panel);
  box-shadow: none;
  gap: 16px;
  margin-top: 18px;
  padding: 24px;
}

.opportunity-icon {
  width: 36px;
  height: 36px;
  color: var(--action);
  background: var(--soft);
}

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

.opportunity-copy > span, .opportunity-meta {
  color: var(--muted);
}

.examine-link {
  color: var(--action);
  font-size: 12px;
}

.examine-link:hover {
  color: var(--action-hover);
}

.composer-wrap {
  width: min(100% - 96px, 960px);
  margin-bottom: 28px;
}

.composer {
  border-color: var(--border);
  min-height: 122px;
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 16px 16px 12px 20px;
}

.composer textarea {
  min-height: 56px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.composer textarea::placeholder {
  color: var(--muted);
}

.context-chip {
  max-width: calc(100% - 100px);
  color: var(--action);
  background: var(--soft);
  border-radius: 8px;
  padding: 5px 8px;
}

.context-chip-link, .context-chip-remove {
  color: inherit;
}

.composer-actions button {
  border-radius: 12px;
  min-width: 44px;
  min-height: 44px;
}

.improve-prompt {
  border: 1px solid var(--border);
  color: var(--action);
  background: var(--soft);
  cursor: pointer;
  font: inherit;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
}

.improve-prompt:hover:not(:disabled) {
  border-color: var(--action);
  background: var(--selection);
}

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

.improve-prompt-label {
  white-space: nowrap;
}

.composer-feedback {
  min-height: 20px;
  color: var(--muted);
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 11px;
  display: flex;
}

.composer-feedback.is-error {
  color: #a2574f;
}

.composer-feedback button {
  color: var(--action);
  cursor: pointer;
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  font-weight: 700;
  text-decoration: underline;
}

.attach {
  color: var(--action);
  background: none !important;
}

.send {
  color: #fff;
  background: var(--action);
  border-color: var(--action);
}

.send:hover {
  background: var(--action-hover);
}

.send:disabled {
  opacity: .45;
}

.composer-note {
  color: var(--muted);
}

.sidebar-toggle, .sidebar-overlay {
  display: none;
}

.chat-recents {
  border-top: 1px solid var(--border);
  min-height: 0;
  margin: 20px 2px 16px;
  padding-top: 17px;
}

.chat-recents-heading {
  color: var(--muted);
  letter-spacing: .1em;
  justify-content: space-between;
  align-items: center;
  margin: 0 10px 10px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
}

.chat-recents-heading button {
  min-width: 28px;
  min-height: 28px;
  color: var(--action);
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 0;
  font-size: 22px;
}

.chat-recents-heading button:hover {
  background: var(--selection);
}

.chat-search {
  border: 1px solid var(--border);
  min-height: 34px;
  color: var(--muted);
  background: #fff;
  border-radius: 9px;
  align-items: center;
  gap: 6px;
  margin: 0 4px 7px;
  padding: 0 9px;
  display: flex;
}

.chat-search input {
  width: 100%;
  min-height: 30px;
  color: var(--text);
  background: none;
  border: 0;
  outline: 0;
  padding: 0;
  font-size: 11px;
}

.chat-list {
  gap: 2px;
  max-height: 145px;
  display: grid;
  overflow-y: auto;
}

.chat-row {
  border-radius: 9px;
  align-items: center;
  min-width: 0;
  display: flex;
  position: relative;
}

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

.chat-open {
  min-width: 0;
  color: var(--text);
  text-align: left;
  background: none;
  border: 0;
  flex: 1;
  align-items: center;
  gap: 8px;
  padding: 8px 5px 8px 9px;
  font-size: 11px;
  display: flex;
}

.chat-open > span:last-child {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.chat-icon {
  color: var(--action);
  font-size: 16px;
}

.chat-menu-button {
  min-width: 30px;
  min-height: 32px;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0;
}

.chat-menu {
  z-index: 4;
  border: 1px solid var(--border);
  min-width: 120px;
  box-shadow: var(--shadow);
  background: #fff;
  border-radius: 9px;
  padding: 4px;
  display: grid;
  position: absolute;
  top: 32px;
  right: 4px;
}

.chat-menu button {
  min-height: 32px;
  color: var(--text);
  background: none;
  border: 0;
  justify-content: flex-start;
  padding: 6px 9px;
  font-size: 11px;
}

.chat-menu button:hover {
  background: var(--selection);
}

.chat-notice {
  color: var(--muted);
  margin: 8px 6px 0;
  font-size: 10px;
}

.chat-notice button {
  color: var(--action);
  font-size: inherit;
  background: none;
  border: 0;
  margin-left: 5px;
  padding: 0;
}

@media (max-width: 700px) {
  .sidebar-toggle {
    z-index: 12;
    border: 1px solid var(--border);
    width: 42px;
    height: 42px;
    color: var(--action);
    background: #fff;
    border-radius: 10px;
    gap: 4px;
    padding: 11px;
    display: grid;
    position: fixed;
    top: 14px;
    left: 14px;
  }

  .sidebar-toggle span {
    background: currentColor;
    height: 2px;
    display: block;
  }

  .sidebar-overlay {
    z-index: 10;
    background: #17324d40;
    border: 0;
    display: block;
    position: fixed;
    inset: 0;
  }

  .oggi-app:has(.sidebar-toggle) .oggi-sidebar {
    z-index: 11;
    width: min(86vw, 280px);
    transition: transform .2s;
    position: fixed;
    inset: 0 auto 0 0;
    transform: translateX(-105%);
    box-shadow: 8px 0 24px #17324d1a;
  }

  .oggi-app:has(.sidebar-toggle) .oggi-sidebar.sidebar-open {
    transform: translateX(0);
  }

  .oggi-content {
    width: 100%;
    margin-left: 0;
  }

  .oggi-topbar {
    min-height: 64px;
    padding: 0 16px 0 70px;
  }

  .mobile-brand {
    display: flex;
  }

  .conversation, .composer-wrap {
    width: min(100% - 32px, 960px);
  }

  .conversation {
    padding-top: 38px;
  }

  .composer {
    min-height: 116px;
  }

  .improve-prompt {
    padding-inline: 10px;
  }

  .composer-feedback {
    align-items: flex-start;
    line-height: 1.4;
  }
}

@media (max-width: 430px) {
  .conversation, .composer-wrap {
    width: calc(100% - 32px);
  }

  .opportunity-card {
    padding: 18px;
  }

  .improve-prompt-label {
    display: none;
  }

  .improve-prompt {
    width: 44px;
    padding: 0;
  }
}

.archived-chats {
  margin-top: 24px;
}

.archived-chats .section-copy {
  color: var(--muted);
  font-size: 13px;
}

.archived-chats .search-field {
  margin: 14px 0;
}

.archived-empty {
  color: var(--muted);
  font-size: 13px;
}

.archived-list {
  border-top: 1px solid var(--border);
  display: grid;
}

.archived-row {
  border-bottom: 1px solid var(--border);
  color: var(--text);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  font-size: 13px;
  display: flex;
}

.archived-row > span:first-child {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.archived-row button {
  min-height: 32px;
  color: var(--action);
  background: none;
  border: 0;
  padding: 5px 8px;
  font-size: 11px;
}

.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;
}

.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;
  }

  .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;
}

.library-app > .oggi-sidebar, .ente-profile-app > .oggi-sidebar {
  background: var(--sidebar);
  border-color: var(--border);
}

.library-app .opportunita-content, .ente-profile-content, .library-app .oggi-brand, .ente-profile-app .oggi-brand {
  color: var(--text);
}

.library-app .oggi-brand .brand-mark, .ente-profile-app .oggi-brand .brand-mark {
  color: var(--action);
  background: var(--soft);
  border: 1px solid var(--border);
}

.library-app .nav-item, .ente-profile-app .nav-item {
  color: var(--muted);
}

.library-app .nav-item:hover, .ente-profile-app .nav-item:hover {
  color: var(--action-hover);
  background: #eaf1fc;
}

.library-app .nav-item.active, .ente-profile-app .nav-item.active {
  color: var(--action);
  background: var(--selection);
}

.library-app .nav-item span, .ente-profile-app .nav-item span {
  color: inherit;
}

.library-app .profile-button, .ente-profile-app .profile-button {
  color: var(--text);
}

.library-app .profile-button:hover, .ente-profile-app .profile-button:hover {
  background: var(--selection);
}

.library-app .opportunita-heading h1, .ente-profile-content .opportunita-heading h1, .library-app .source-form h2, .library-app .confirm-dialog h2 {
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
}

.library-app .opportunita-heading p:not(.date-label), .ente-profile-content .opportunita-heading p:not(.date-label) {
  color: var(--muted);
}

.library-app .search-field, .ente-profile-content .search-field, .library-app .ambito-field {
  border-color: var(--border);
  border-radius: var(--radius-control);
  color: var(--muted);
  background: #fff;
}

.library-app .search-field:focus-within, .ente-profile-content .search-field:focus-within, .library-app .ambito-field:focus-within {
  border-color: var(--action);
  box-shadow: 0 0 0 3px #2457d61f;
}

.library-app .search-field input, .library-app .ambito-field select, .ente-profile-content .search-field input {
  color: var(--text);
  font-family: inherit;
}

.library-app .opportunita-list {
  border-color: var(--border);
}

.library-app .opportunita-row {
  border-color: var(--border);
  color: var(--text);
  border-radius: var(--radius-control);
}

.library-app .opportunita-row:hover, .library-app .opportunita-row:focus-visible {
  background: var(--soft);
}

.library-app .row-icon, .library-app .deadline-icon, .library-app .file-icon, .library-app .source-row .file-icon, .library-app .project-row .file-icon {
  color: var(--action);
  background: var(--soft);
  border: 1px solid var(--border);
}

.library-app .row-meta, .library-app .row-side span, .library-app .document-count, .library-app .opportunita-count, .library-app .row-main p, .library-app .opportunita-state, .library-app .opportunita-empty, .library-app .profile-muted {
  color: var(--muted);
}

.library-app .row-side em, .library-app .scadenza-row .row-side em {
  color: #365b8e;
  background: #e8f1ff;
}

.library-app .document-status.status-ok {
  color: #13795b;
  background: #e4f6ef;
}

.library-app .document-status.status-review {
  color: #8a5a11;
  background: #fff2d9;
}

.library-app .opportunita-empty {
  border-color: var(--border);
  border-radius: var(--radius-panel);
}

.library-app .inline-action, .library-app .detail-link, .library-app .associated-list a, .library-app .profile-settings-link, .library-app .archived-row button {
  color: var(--action);
}

.library-app .document-notice {
  color: #176b50;
  border-radius: var(--radius-control);
  background: #effaf5;
  border-color: #bde5d6;
}

.library-app .opportunita-heading > button {
  border-color: var(--action);
  color: #fff;
  background: var(--action);
  border-radius: var(--radius-control);
}

.library-app .opportunita-heading > button:hover {
  background: var(--action-hover);
}

.library-app .document-upload-button, .library-app .talk-button, .ente-profile-content .talk-button {
  border-color: var(--action);
  color: #fff;
  background: var(--action);
  border-radius: var(--radius-control);
}

.library-app .document-upload-button:hover, .library-app .talk-button:hover, .ente-profile-content .talk-button:hover {
  background: var(--action-hover);
}

.library-app .secondary-detail-button, .library-app .cancel-button, .ente-profile-content .secondary-detail-button {
  border-color: var(--border);
  color: var(--action);
  border-radius: var(--radius-control);
  background: #fff;
}

.library-app .secondary-detail-button:hover, .library-app .cancel-button:hover {
  background: var(--soft);
}

.library-app .detail-panel, .library-app .source-form, .library-app .confirm-dialog {
  color: var(--text);
  border-color: var(--border);
  border-radius: var(--radius-panel);
  background: #fff;
  box-shadow: 0 16px 45px #17324d24;
}

.library-app .detail-panel h2, .library-app .confirm-dialog h2 {
  color: var(--text);
}

.library-app .detail-panel h3, .library-app .detail-facts, .library-app .profile-card, .library-app .settings-section, .ente-profile-content .profile-card, .ente-profile-content .ente-profile-intro, .ente-profile-content .ente-operation-note, .ente-profile-content .ente-info-section dl, .ente-profile-content .ente-info-section dl div {
  border-color: var(--border);
}

.library-app .detail-panel p:not(.date-label):not(.detail-ente), .library-app .detail-panel ul, .library-app .detail-ente, .ente-profile-content .ente-profile-intro p:not(.date-label), .ente-profile-content .ente-info-section dd {
  color: var(--muted);
}

.library-app .detail-close {
  color: var(--muted);
  min-width: 44px;
  min-height: 44px;
}

.library-app .source-form label, .library-app .document-edit-form label, .library-app .settings-section > label:not(.settings-toggle), .ente-profile-content .profile-field dt, .ente-profile-content .ente-info-section dt {
  color: var(--muted);
}

.library-app .source-form input, .library-app .source-form textarea, .library-app .document-edit-form input, .library-app .document-edit-form textarea, .library-app .settings-section select, .ente-profile-content .profile-field input {
  border-color: var(--border);
  border-radius: var(--radius-control);
  color: var(--text);
  font-family: inherit;
}

.library-app .source-form input:focus, .library-app .source-form textarea:focus, .library-app .document-edit-form input:focus, .library-app .document-edit-form textarea:focus, .library-app .settings-section select:focus, .ente-profile-content .profile-field input:focus {
  border-color: var(--action);
  outline: 0;
  box-shadow: 0 0 0 3px #2457d61f;
}

.library-app .updates-list article, .library-app .durc-read-card, .library-app .fill-preview {
  background: var(--soft);
  color: var(--text);
  border-color: #a8c7f5;
}

.ente-profile-content .ente-seal {
  color: var(--action);
  border-color: var(--border);
  background: var(--soft);
  font-family: inherit;
}

.ente-profile-content .compliance-status, .ente-profile-content .durc-status-scaduto .durc-status-copy strong {
  color: #b54708;
}

.ente-profile-content .durc-status-in-scadenza .durc-status-copy strong {
  color: #8a5a11;
}

.ente-profile-content .durc-status-icon {
  border-color: var(--border);
  color: var(--action);
}

.ente-profile-content .durc-action-primary {
  background: var(--action);
}

.ente-profile-content .durc-action-secondary {
  border-color: var(--border);
  color: var(--action);
  background: #fff;
}

.ente-profile-content .durc-declaration-checkbox input, .library-app .settings-toggle input {
  accent-color: var(--action);
}

.library-app .settings-section h2 {
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
}

.library-app .settings-toggle {
  border-color: var(--border);
  color: var(--text);
}

.library-app .settings-toggle small, .library-app .section-copy {
  color: var(--muted);
}

.library-app .confirm-delete-button {
  border-radius: var(--radius-control);
  background: #c43d3d;
  border-color: #c43d3d;
}

:focus-visible {
  outline-offset: 2px;
  outline: 3px solid #2457d66b;
}

@media (max-width: 700px) {
  .library-app .opportunita-content, .ente-profile-content {
    width: min(100% - 32px, 980px);
    padding-top: 38px;
  }

  .library-app .opportunita-heading {
    gap: 18px;
  }

  .library-app .opportunita-heading h1, .ente-profile-content .opportunita-heading h1 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .library-app .opportunita-heading > button {
    width: 100%;
  }

  .library-app .detail-panel {
    padding: 62px 24px 32px;
  }

  .library-app .source-form {
    width: min(100% - 24px, 480px);
    padding: 28px 22px;
  }

  .ente-profile-content .profile-actions {
    width: 100%;
  }

  .ente-profile-content .profile-actions button {
    flex: 1;
  }
}

.documenti-app .opportunita-content, .scadenze-app .opportunita-content {
  color: var(--text);
}

.documenti-app .documenti-view-switch {
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--soft);
  gap: 4px;
  margin: -12px 0 24px;
  padding: 4px;
  display: inline-flex;
}

.documenti-app .documenti-view-switch button {
  border-radius: calc(var(--radius-control) - 3px);
  min-height: 44px;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
}

.documenti-app .documenti-view-switch button span {
  color: inherit;
  margin-left: 4px;
  font-size: 11px;
  font-weight: 500;
}

.documenti-app .documenti-view-switch button:hover, .documenti-app .documenti-view-switch button:focus-visible {
  color: var(--action);
  background: #fff;
}

.documenti-app .documenti-view-switch button.active {
  color: #fff;
  background: var(--action);
  box-shadow: 0 2px 5px #17324d24;
}

.documenti-app .documenti-view-switch button:focus-visible {
  outline-offset: 2px;
  outline: 3px solid #2457d66b;
}

.scadenze-app .pratiche-view-switch {
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--soft);
  gap: 4px;
  margin: -12px 0 24px;
  padding: 4px;
  display: inline-flex;
}

.scadenze-app .pratiche-view-switch button {
  border-radius: calc(var(--radius-control) - 3px);
  min-height: 44px;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
}

.scadenze-app .pratiche-view-switch button span {
  color: inherit;
  margin-left: 4px;
  font-size: 11px;
  font-weight: 500;
}

.scadenze-app .pratiche-view-switch button:hover, .scadenze-app .pratiche-view-switch button:focus-visible {
  color: var(--action);
  background: #fff;
}

.scadenze-app .pratiche-view-switch button.active {
  color: #fff;
  background: var(--action);
  box-shadow: 0 2px 5px #17324d24;
}

.scadenze-app .pratiche-view-switch button:focus-visible {
  outline-offset: 2px;
  outline: 3px solid #2457d66b;
}

.opportunita-app .opportunita-view-switch {
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--soft);
  gap: 4px;
  margin: -12px 0 24px;
  padding: 4px;
  display: inline-flex;
}

.opportunita-app .opportunita-view-switch button {
  border-radius: calc(var(--radius-control) - 3px);
  min-height: 44px;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
}

.opportunita-app .opportunita-view-switch button span {
  color: inherit;
  margin-left: 4px;
  font-size: 11px;
  font-weight: 500;
}

.opportunita-app .opportunita-view-switch button:hover, .opportunita-app .opportunita-view-switch button:focus-visible {
  color: var(--action);
  background: #fff;
}

.opportunita-app .opportunita-view-switch button.active {
  color: #fff;
  background: var(--action);
  box-shadow: 0 2px 5px #17324d24;
}

.opportunita-app .opportunita-view-switch button:focus-visible {
  outline-offset: 2px;
  outline: 3px solid #2457d66b;
}

.documenti-app .opportunita-heading h1, .scadenze-app .opportunita-heading h1 {
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
}

.documenti-app .opportunita-heading p:not(.date-label), .scadenze-app .opportunita-heading p:not(.date-label) {
  color: var(--muted);
}

.documenti-app .search-field, .documenti-app .ambito-field, .scadenze-app .search-field, .scadenze-app .ambito-field {
  border-color: var(--border);
  border-radius: var(--radius-control);
}

.documenti-app .search-field input, .documenti-app .ambito-field select, .scadenze-app .search-field input, .scadenze-app .ambito-field select {
  color: var(--text);
  font-family: inherit;
}

.documenti-app .opportunita-row, .scadenze-app .opportunita-row {
  border-color: var(--border);
  color: var(--text);
  border-radius: var(--radius-control);
}

.documenti-app .opportunita-row:hover, .documenti-app .opportunita-row:focus-visible, .scadenze-app .opportunita-row:hover, .scadenze-app .opportunita-row:focus-visible {
  background: var(--soft);
}

.documenti-app .file-icon, .scadenze-app .deadline-icon {
  color: var(--action);
  background: var(--soft);
  border: 1px solid var(--border);
}

.documenti-app .row-meta, .documenti-app .row-side span, .scadenze-app .row-meta, .scadenze-app .row-side span, .documenti-app .row-main p, .scadenze-app .row-main p, .documenti-app .opportunita-state, .scadenze-app .opportunita-state {
  color: var(--muted);
}

.documenti-app .document-upload-button, .documenti-app .talk-button, .scadenze-app .talk-button {
  border-color: var(--action);
  color: #fff;
  background: var(--action);
  border-radius: var(--radius-control);
}

.pratica-detail-actions {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
  display: grid;
}

.pratica-detail-actions button {
  min-height: 44px;
}

.scadenze-app .delete-pratica-button {
  border-radius: var(--radius-control);
  color: #b42318;
  background: #fff;
  border: 1px solid #e0b9b9;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
}

.scadenze-app .delete-pratica-button:hover {
  background: #fff5f5;
}

.scadenze-app .pratica-detail-actions button:disabled, .scadenze-app .confirm-actions button:disabled {
  cursor: wait;
  opacity: .65;
}

.scadenze-app .talk-button:focus-visible, .scadenze-app .detail-close:focus-visible, .scadenze-app .pratica-detail-actions button:focus-visible, .scadenze-app .confirm-actions button:focus-visible {
  outline-offset: 2px;
  outline: 3px solid #2457d66b;
}

.documenti-app .document-notice, .scadenze-app .document-notice {
  color: #176b50;
  border-radius: var(--radius-control);
  background: #effaf5;
  border-color: #bde5d6;
}

.documenti-app .detail-panel, .scadenze-app .detail-panel, .documenti-app .confirm-dialog, .scadenze-app .confirm-dialog {
  border-color: var(--border);
  border-radius: var(--radius-panel);
  background: #fff;
}

.documenti-app .document-edit-form input, .documenti-app .document-edit-form textarea, .documenti-app .document-edit-form select {
  border-color: var(--border);
  border-radius: var(--radius-control);
  color: var(--text);
  font-family: inherit;
}

.documenti-app .secondary-detail-button, .documenti-app .cancel-button, .scadenze-app .secondary-detail-button, .scadenze-app .cancel-button {
  border-color: var(--border);
  color: var(--action);
  border-radius: var(--radius-control);
  background: #fff;
}

@media (max-width: 700px) {
  .documenti-app .opportunita-content, .scadenze-app .opportunita-content {
    width: min(100% - 32px, 980px);
    padding-top: 38px;
  }

  .scadenze-app .pratiche-view-switch {
    width: 100%;
    margin-top: -4px;
    display: flex;
  }

  .scadenze-app .pratiche-view-switch button {
    flex: 1;
  }

  .opportunita-app .opportunita-view-switch {
    width: 100%;
    margin-top: -4px;
    display: flex;
  }

  .opportunita-app .opportunita-view-switch button {
    flex: 1;
  }

  .documenti-app .opportunita-heading > button {
    width: 100%;
  }

  .documenti-app .documenti-view-switch {
    width: 100%;
    margin-top: -4px;
    display: flex;
  }

  .documenti-app .documenti-view-switch button {
    flex: 1;
  }

  .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%;
  }
}

.opportunita-app .oggi-topbar {
  border-color: var(--border);
  color: var(--muted);
}

.opportunita-app .notification {
  color: var(--muted);
}

.opportunita-app .opportunita-content {
  width: min(100% - 112px, 980px);
  color: var(--text);
}

.opportunita-app .opportunita-heading h1 {
  color: var(--text);
  letter-spacing: -.04em;
  font-family: inherit;
  font-weight: 700;
}

.opportunita-app .opportunita-heading p:not(.date-label), .opportunita-app .opportunita-count {
  color: var(--muted);
}

.opportunita-app .date-label {
  color: var(--action);
}

.opportunita-app .search-field, .opportunita-app .ambito-field {
  border-color: var(--border);
  border-radius: var(--radius-control);
  color: var(--muted);
  box-shadow: var(--shadow);
}

.opportunita-app .search-field:focus-within, .opportunita-app .ambito-field:focus-within {
  border-color: var(--action);
  box-shadow: 0 0 0 3px #2457d61f;
}

.opportunita-app .search-field input, .opportunita-app .ambito-field select {
  color: var(--text);
  font-family: inherit;
}

.opportunita-app .opportunita-list {
  border-color: var(--border);
}

.opportunita-app .opportunita-row {
  border-color: var(--border);
  border-radius: var(--radius-control);
  min-height: 96px;
  color: var(--text);
}

.opportunita-app .opportunita-row:hover, .opportunita-app .opportunita-row:focus-visible {
  background: var(--soft);
}

.opportunita-app .row-icon {
  color: var(--action);
  background: var(--soft);
  border: 1px solid var(--border);
}

.opportunita-app .row-meta, .opportunita-app .row-side span, .opportunita-app .opportunita-state, .opportunita-app .row-main p {
  color: var(--muted);
}

.opportunita-app .row-side em {
  color: #365b8e;
  background: #e8f1ff;
}

.opportunita-app .row-arrow, .opportunita-app .inline-action, .opportunita-app .detail-link {
  color: var(--action);
}

.opportunita-app .opportunita-empty {
  border-color: var(--border);
  border-radius: var(--radius-panel);
  color: var(--muted);
  background: var(--soft);
}

.opportunita-app .opportunita-empty strong {
  color: var(--text);
}

.opportunita-app .detail-backdrop {
  background: #17324d3d;
}

.opportunita-app .detail-panel {
  color: var(--text);
  border-left: 1px solid var(--border);
  background: #fff;
  box-shadow: -16px 0 45px #17324d24;
}

.opportunita-app .detail-close {
  color: var(--muted);
  min-width: 44px;
  min-height: 44px;
}

.opportunita-app .detail-panel h2 {
  color: var(--text);
  letter-spacing: -.04em;
  font-family: inherit;
  font-weight: 700;
}

.opportunita-app .detail-ente, .opportunita-app .detail-panel p:not(.date-label):not(.detail-ente), .opportunita-app .detail-panel ul {
  color: var(--muted);
}

.opportunita-app .detail-facts, .opportunita-app .detail-panel h3 {
  border-color: var(--border);
}

.opportunita-app .detail-facts span {
  color: var(--muted);
}

.opportunita-app .talk-button {
  border-color: var(--action);
  border-radius: var(--radius-control);
  background: var(--action);
}

.opportunita-app .talk-button:hover {
  background: var(--action-hover);
}

.opportunita-detail-actions {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
  display: grid;
}

.opportunita-detail-actions button {
  min-height: 44px;
}

.opportunita-app .delete-opportunita-button {
  border-radius: var(--radius-control);
  color: #b42318;
  background: #fff;
  border: 1px solid #e0b9b9;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
}

.opportunita-app .delete-opportunita-button:hover {
  background: #fff5f5;
}

.opportunita-app .opportunita-detail-actions button:disabled, .opportunita-app .confirm-actions button:disabled {
  cursor: wait;
  opacity: .65;
}

.opportunita-app .talk-button:focus-visible, .opportunita-app .detail-close:focus-visible, .opportunita-app .opportunita-detail-actions button:focus-visible, .opportunita-app .confirm-actions button:focus-visible, .opportunita-app .inline-action:focus-visible {
  outline-offset: 2px;
  outline: 3px solid #2457d66b;
}

.progetto-detail-actions {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
  display: grid;
}

.progetto-detail-actions button {
  min-height: 44px;
}

.library-app .delete-progetto-button {
  border-radius: var(--radius-control);
  color: #b42318;
  background: #fff;
  border: 1px solid #e0b9b9;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
}

.library-app .delete-progetto-button:hover {
  background: #fff5f5;
}

.library-app .progetto-detail-actions button:disabled {
  cursor: wait;
  opacity: .65;
}

@media (max-width: 700px) {
  .opportunita-app .opportunita-content {
    width: min(100% - 32px, 980px);
    padding-top: 38px;
  }

  .opportunita-app .opportunita-heading {
    gap: 18px;
  }

  .opportunita-app .opportunita-heading h1 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .opportunita-app .opportunita-filters {
    gap: 10px;
  }

  .opportunita-app .opportunita-row {
    min-height: 0;
  }

  .opportunita-app .detail-panel {
    padding: 62px 24px 32px;
  }

  .opportunita-detail-actions {
    grid-template-columns: 1fr;
  }

  .scadenze-app .detail-panel {
    padding: 62px 24px 32px;
  }

  .pratica-detail-actions, .progetto-detail-actions {
    grid-template-columns: 1fr;
  }
}

.profile-panel {
  color: var(--text);
  border-left: 1px solid var(--border);
  background: #fff;
  box-shadow: -16px 0 45px #17324d24;
}

.profile-panel-brand {
  margin-bottom: 26px;
}

.profile-panel-brand .bando-brand {
  color: var(--text);
}

.profile-panel-brand .bando-brand-symbol {
  color: var(--action);
}

.profile-panel > .date-label {
  color: var(--action);
  letter-spacing: .12em;
  font-weight: 700;
}

.profile-panel .detail-close {
  color: var(--muted);
  min-width: 44px;
  min-height: 44px;
}

.profile-panel h2 {
  color: var(--text);
  letter-spacing: -.04em;
  font-family: inherit;
  font-size: 31px;
  font-weight: 700;
}

.profile-panel .detail-ente {
  color: var(--muted);
}

.profile-panel .profile-avatar-large {
  color: var(--action);
  background: var(--soft);
  border: 1px solid var(--border);
}

.profile-panel .profile-facts {
  border-color: var(--border);
}

.profile-panel .profile-facts span {
  color: var(--muted);
}

.profile-panel .profile-facts strong, .profile-panel h3 {
  color: var(--text);
}

.profile-panel .profile-edit-form label {
  color: var(--muted);
}

.profile-panel .profile-edit-form input {
  border-color: var(--border);
  border-radius: var(--radius-control);
  color: var(--text);
  background: #fff;
  font-family: inherit;
}

.profile-panel .profile-edit-form input[readonly] {
  color: var(--text);
  background: var(--soft);
}

.profile-panel .profile-edit-form input:focus {
  border-color: var(--action);
  outline: 0;
  box-shadow: 0 0 0 3px #2457d61f;
}

.profile-panel .talk-button {
  border-color: var(--action);
  border-radius: var(--radius-control);
  background: var(--action);
}

.profile-panel .talk-button:hover {
  background: var(--action-hover);
}

.profile-panel .secondary-detail-button {
  border-color: var(--border);
  border-radius: var(--radius-control);
  color: var(--action);
  background: #fff;
}

.profile-panel .secondary-detail-button:hover {
  background: var(--soft);
}

.profile-settings-link {
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  min-height: 62px;
  color: var(--action);
  background: var(--soft);
  align-items: center;
  margin-top: 30px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 8px #17324d0d;
}

.profile-settings-link:hover {
  background: var(--selection);
  border-color: #b8ccef;
}

.profile-settings-link > span:first-child {
  gap: 3px;
  display: grid;
}

.profile-settings-link strong {
  font-size: 14px;
}

.profile-settings-link small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.profile-settings-link > span:last-child {
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 700px) {
  .profile-panel {
    border-left: 0;
    width: 100%;
    padding: 58px 24px 32px;
  }

  .profile-panel-brand {
    margin-bottom: 22px;
  }

  .profile-panel h2 {
    font-size: 29px;
  }

  .profile-settings-link {
    min-height: 64px;
  }
}

/*# sourceMappingURL=src_app_globals_162hn9o.css.map*/