@import url("/giro-quartiere/sheet-context.css");
:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #1a2c35;
  background: #f7f9fa;
  font-synthesis: none;
  --accent: #087965;
  --line: #e0e7ea;
  --muted: #61737e;
  --red: #a33438;
}
* {
  box-sizing: border-box;
  letter-spacing: 0;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
}
button img,
a img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #6eadd3;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.32;
}
h2 {
  font-size: 20px;
  font-weight: 600;
}
h3 {
  font-size: 22px;
  font-weight: 600;
}
input {
  border: 1px solid #cbd6dc;
  background: #fff;
  padding: 11px 12px;
  border-radius: 6px;
  min-width: 0;
  color: #1a2c35;
  max-width: 100%;
}
label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
button {
  border: 0;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.subheading {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}
.sidebar {
  width: 236px;
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 650;
  flex-wrap: wrap;
}
.brand-mark {
  background: #e8f2ee;
  border-radius: 6px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
}
.brand-edition {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 43px;
  margin-top: -8px;
}
.sidebar-team {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 27px;
  padding: 24px 0;
}
.team-avatar {
  width: 34px;
  height: 34px;
  border: 1px solid #d9e4e9;
  background: #f0f4f7;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 650;
}
.sidebar-team strong {
  display: block;
  font-size: 13px;
}
.sidebar-team div > span {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  font-size: 13px;
  color: #546873;
  border-radius: 6px;
}
.sidebar nav a.active,
.sidebar nav a:hover {
  background: #eaf3ef;
  color: #076b59;
}
.nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 20px;
  display: grid;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.sidebar-bottom a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.manager-main {
  margin-left: 236px;
  max-width: 1516px;
  padding: 44px 48px 24px;
}
.manager-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.mobile-break {
  display: none;
}
.icon-button {
  background: #fff;
  border: 1px solid var(--line);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 24px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 30px 0 36px;
  padding: 22px 0;
  gap: 24px;
}
.metrics > div + div {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.metrics span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.metrics strong {
  display: block;
  font-size: 30px;
  font-weight: 550;
  margin-top: 5px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-heading > span {
  font-size: 12px;
  color: var(--muted);
}
.workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.workspace {
  background: #fff;
  border: 1px solid #dce5e8;
  border-radius: 8px;
  overflow: hidden;
}
.workspace-top {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.workspace-kicker {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
.workspace-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.workspace-title > img {
  width: 24px;
  height: 24px;
}
.workspace-code {
  font-size: 11px;
  display: inline-flex;
  padding: 5px 8px;
  background: #eef4f8;
  color: #3d637d;
  border-radius: 4px;
  align-self: flex-start;
}
.workspace-note {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.workspace-actions {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 14px 20px;
  gap: 9px;
  flex-wrap: wrap;
}
.workspace-actions a,
.workspace-actions button {
  font-size: 12px;
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff;
}
.workspace-actions a:first-child {
  color: var(--accent);
  font-weight: 650;
}
.workspace-actions button {
  margin-left: auto;
  color: var(--muted);
}
.primary-button,
.secondary-button {
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  min-height: 42px;
}
.primary-button {
  background: var(--accent);
  color: #fff;
}
.primary-button img {
  filter: brightness(0) invert(1);
}
.primary-button:hover {
  background: #056653;
}
.secondary-button {
  background: #fff;
  border: 1px solid var(--line);
  color: #334f5d;
}
.text-button {
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  padding: 10px;
}
.team-section {
  margin-top: 42px;
}
.team-toolbar {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.segmented {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 18px;
}
.segmented button {
  background: none;
  color: var(--muted);
  font-size: 12px;
  padding: 12px 2px;
  border-radius: 0;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.segmented button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 650;
}
.search-label input {
  width: 220px;
  font-weight: 400;
  background: #fff;
}
.table-wrap {
  width: 100%;
  overflow: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.members-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
.members-table th {
  padding: 12px 12px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 600;
  background: #f0f4f6;
}
.members-table td {
  padding: 18px 12px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.member-identity {
  display: flex;
  gap: 12px;
  align-items: center;
}
.member-identity strong,
.member-identity small {
  display: block;
  max-width: 270px;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.member-identity small {
  color: var(--muted);
  font-size: 11px;
}
.member-identity .team-avatar {
  flex-shrink: 0;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  padding: 5px 7px;
  background: #edf2f4;
  border-radius: 4px;
  color: #546b78;
  font-size: 10px;
}
.status-pill.active {
  background: #e1f3e9;
  color: #26734c;
}
.status-pill.pending {
  background: #fff1d7;
  color: #8a5c13;
}
.status-pill.revoked,
.status-pill.rejected {
  background: #fae9e8;
  color: #a33438;
}
.member-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.member-actions button {
  font-size: 11px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #d6e0e5;
  color: #245b4a;
}
.member-actions .danger {
  color: var(--red);
}
.section-footnote {
  font-size: 11px;
  color: var(--muted);
  margin-top: 13px;
  line-height: 1.65;
}
.activity-section {
  margin-top: 40px;
}
.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.activity-list li {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  line-height: 1.6;
}
.activity-list small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.activity-list span {
  overflow-wrap: anywhere;
}
.manager-footer {
  margin-top: 45px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  gap: 12px;
}
.notice {
  margin-top: 22px;
  padding: 13px;
  border-left: 3px solid #ad4147;
  background: #fbebeb;
  font-size: 13px;
  line-height: 1.6;
}
.notice.success {
  border-color: var(--accent);
  background: #e8f3ed;
}
.mail-notice {
  margin-top: 15px;
  background: #fff2d9;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  line-height: 1.6;
}
.team-dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  width: min(480px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 28px;
  color: #1a2c35;
  box-shadow: 0 20px 70px #11252d24;
}
.team-dialog::backdrop {
  background: #132c3b66;
  backdrop-filter: blur(3px);
}
.team-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.dialog-symbol {
  padding: 12px;
  background: #edf6f0;
  border-radius: 6px;
}
.dialog-symbol img {
  width: 24px;
  height: 24px;
}
.team-dialog p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 12px 0 22px;
}
.team-dialog label {
  margin: 22px 0;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.team-dialog .form-error {
  color: var(--red) !important;
  margin: 12px 0 !important;
}
.jobs-dialog {
  width: min(640px, calc(100% - 32px));
}
.job-form {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.job-form label {
  margin: 0;
  flex: 1;
}
.job-list {
  margin-top: 16px;
}
.job-row {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  display: grid;
  gap: 7px;
}
.job-row > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.job-row p {
  margin: 0 !important;
  color: var(--red) !important;
  overflow-wrap: anywhere;
}
.job-row small {
  color: var(--muted);
}
.job-tools {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.job-tools details {
  min-width: 0;
  flex: 1;
}
.job-tools summary {
  cursor: pointer;
  color: var(--accent);
  padding: 10px 0;
}
.job-tools pre {
  font:
    11px/1.7 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 240px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  background: #f3f6f8;
}
.job-tools .stop-job {
  color: var(--red);
}
form[aria-busy="true"] .primary-button::after {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid #ffffff66;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.workspace-skeleton {
  height: 190px;
}
.skeleton {
  background: #e8eef1;
  border-radius: 8px;
  animation: skeleton 1.6s ease-in-out infinite alternate;
}
.loading-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: skeleton 0.8s infinite alternate;
}
@keyframes skeleton {
  to {
    opacity: 0.45;
  }
}
/* Authentication shares the same quiet application shell. */
.login-page {
  min-height: 100dvh;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(380px, 1fr) minmax(380px, 0.9fr);
}
.login-main {
  min-height: 100dvh;
  padding: 38px 8%;
  display: flex;
  flex-direction: column;
}
.login-brand {
  font-size: 21px;
}
.login-form {
  width: 100%;
  max-width: 370px;
  margin: auto;
  padding: 65px 0;
}
.login-form .eyebrow {
  color: var(--accent);
  margin-bottom: 14px;
}
.login-form h1 {
  font-size: 34px;
}
.login-description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin: 18px 0 30px;
}
.login-form #googleButton {
  min-height: 44px;
}
.login-privacy {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 22px;
}
.login-footer {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.login-map-panel {
  position: relative;
  min-height: 100dvh;
  background: #e8eceb;
  overflow: hidden;
}
.login-map {
  position: absolute;
  inset: 0;
}
.login-map-caption {
  position: absolute;
  z-index: 500;
  bottom: 55px;
  left: 36px;
  right: 36px;
  padding: 23px 0;
  border-top: 1px solid #778d8e;
  background: #fffffff0;
  border: 1px solid #fff;
  padding: 24px;
  border-radius: 6px;
}
.login-map-caption > span {
  font-size: 10px;
  text-transform: uppercase;
  color: #61737e;
}
.login-map-caption h2 {
  font-size: 26px;
  margin: 8px 0;
}
.login-map-caption p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.login-map-caption .team-avatar {
  position: absolute;
  right: 24px;
  top: 24px;
  background: #fff;
}
.login-notice {
  font-size: 12px;
  line-height: 1.6;
  color: var(--red);
  margin-top: 16px;
}
.pending-symbol {
  width: 52px;
  height: 52px;
  background: #edf5ef;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
}
.pending-symbol img {
  width: 26px;
  height: 26px;
}
.pending-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.login-account {
  font-size: 12px;
  background: #f1f5f7;
  border-left: 3px solid var(--accent);
  padding: 14px;
  overflow-wrap: anywhere;
}
.login-error {
  border-left: 3px solid var(--red);
  padding: 10px;
  background: #fff2ef;
}
.spin img {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::after,
  *::before {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 1500px) {
  .manager-main {
    padding-left: 64px;
    padding-right: 64px;
  }
}
@media (max-width: 1050px) {
  .sidebar {
    width: 205px;
    padding: 24px 16px;
  }
  .manager-main {
    margin-left: 205px;
    padding: 32px 28px;
  }
  .workspace-actions {
    padding: 12px;
  }
  .workspace-top {
    padding: 20px;
  }
  .workspace-note {
    padding-left: 20px;
    padding-right: 20px;
  }
  .workspace-actions button {
    margin-left: 0;
  }
  .section-heading > span {
    display: none;
  }
  .login-page {
    grid-template-columns: 1fr 0.8fr;
  }
  .login-main {
    padding: 30px 7%;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: relative;
    width: auto;
    inset: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 20px;
  }
  .sidebar .brand {
    font-size: 18px;
  }
  .brand-edition {
    margin-left: 0;
    margin-top: 0;
  }
  .sidebar-team {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 5px;
    margin-top: 18px;
    overflow-x: auto;
  }
  .sidebar nav a {
    font-size: 12px;
    padding: 9px 12px;
    white-space: nowrap;
  }
  .sidebar nav a img {
    width: 16px;
    height: 16px;
  }
  .sidebar-bottom {
    position: absolute;
    right: 20px;
    top: 23px;
    padding: 0;
    margin: 0;
  }
  .sidebar-bottom > span {
    display: none;
  }
  .sidebar-bottom a {
    font-size: 11px;
  }
  .manager-main {
    margin: 0;
    padding: 28px 20px;
  }
  .manager-header h1 {
    font-size: 25px;
  }
  .mobile-break {
    display: block;
  }
  .metrics {
    gap: 14px;
    margin: 25px 0 28px;
    padding: 18px 0;
  }
  .metrics > div + div {
    padding-left: 14px;
  }
  .metrics span {
    font-size: 10px;
    min-height: 30px;
  }
  .metrics strong {
    font-size: 26px;
  }
  .section-heading h2 {
    font-size: 18px;
  }
  .workspace-grid {
    gap: 14px;
    grid-template-columns: 1fr;
  }
  .workspace-top {
    padding: 20px;
  }
  .workspace-actions {
    padding: 12px 15px;
  }
  .workspace-actions button {
    margin-left: auto;
  }
  .team-section {
    margin-top: 32px;
  }
  .team-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .segmented {
    gap: 22px;
  }
  .search-label input {
    width: 100%;
  }
  .members-table thead {
    display: none;
  }
  .members-table,
  .members-table tbody,
  .members-table tr,
  .members-table td {
    display: block;
  }
  .members-table tr {
    position: relative;
    padding: 17px 0;
    border-top: 1px solid var(--line);
  }
  .members-table tr:first-child {
    border-top: 0;
  }
  .members-table td {
    padding: 0;
    border: 0;
  }
  .members-table td:nth-child(2) {
    margin: 10px 0 10px 46px;
  }
  .members-table td:nth-child(3) {
    display: none;
  }
  .member-identity {
    gap: 12px;
  }
  .member-identity strong,
  .member-identity small {
    max-width: calc(100vw - 100px);
  }
  .member-actions {
    justify-content: flex-start;
    margin-left: 46px;
    margin-top: 10px;
  }
  .section-heading .primary-button {
    font-size: 11px;
    padding: 10px 12px;
    min-height: 40px;
  }
  .activity-list li {
    display: block;
  }
  .activity-list small {
    display: block;
    margin-top: 5px;
  }
  .team-dialog {
    padding: 22px;
  }
  .mail-notice {
    align-items: flex-start;
    flex-direction: column;
  }
  .login-page {
    display: flex;
    flex-direction: column;
  }
  .login-main {
    min-height: 100dvh;
    padding: 26px 24px;
  }
  .login-form {
    padding: 50px 0;
  }
  .login-form h1 {
    font-size: 32px;
  }
  .login-map-panel {
    display: none;
  }
  .login-footer {
    font-size: 10px;
  }
  .manager-footer {
    font-size: 9px;
  }
  .job-form {
    gap: 12px;
  }
  .job-form label {
    flex-basis: 100%;
  }
}
