/* Shared service navigation and three-space welcome, using appyJunto design tokens. */
.service-shell-hub .main-shell {
    margin-left: 0;
}
.service-shell-hub .content {
    max-width: 1420px;
    margin: 0 auto;
    padding: 48px 36px 28px;
}
.service-shell-hub {
    background: radial-gradient(ellipse at 50% 15%, #fff 15%, #f4f8ff 85%);
}
.service-shell-hub .topbar {
    background: #fff;
}
.spaces-topbar-start {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.spaces-topbar .brand {
    font-size: 26px;
}
.spaces-company-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 650;
}
.spaces-topbar .topbar-right {
    gap: 20px;
}
.spaces-welcome {
    text-align: center;
    margin: 0 auto 34px;
    max-width: 900px;
}
.spaces-welcome .eyebrow {
    color: #63799d;
    margin-bottom: 16px;
}
.spaces-welcome h1 {
    font-size: clamp(27px, 3.1vw, 42px);
    letter-spacing: -1.4px;
    margin-bottom: 12px;
    line-height: 1.16;
}
.spaces-lead {
    font-size: clamp(18px, 1.8vw, 23px);
    color: #3b5279;
    line-height: 1.4;
    margin-bottom: 9px;
}
.spaces-intro {
    color: #607598;
    font-size: 15px;
    margin: 0;
}
.spaces-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}
.spaces-card {
    --space-accent: #0866ff;
    --space-pale: #eaf3ff;
    --space-dark: #084bba;
    min-width: 0;
    background: #fff;
    border: 1px solid #e6eef9;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 8px 30px #173c6f05;
    display: flex;
    flex-direction: column;
    transition: box-shadow .18s ease, border-color .18s ease;
}
.spaces-card:hover {
    border-color: #d3e2f6;
    box-shadow: 0 12px 32px #173c6f0c;
}
.spaces-card-survey {
    --space-accent: #008565;
    --space-pale: #e4f8f1;
    --space-dark: #006b52;
}
.spaces-card-points {
    --space-accent: #7041d9;
    --space-pale: #f0eaff;
    --space-dark: #5a30b6;
}
.spaces-art {
    overflow: hidden;
    border-radius: 13px;
    aspect-ratio: 2 / 1;
}
.spaces-art img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.spaces-card-body {
    padding: 18px 8px 4px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.spaces-card-title {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 12px;
}
.spaces-card-title h2 {
    font-size: clamp(20px, 1.8vw, 25px);
    line-height: 1.2;
    margin: 0;
    letter-spacing: -.7px;
}
.spaces-card-icon {
    width: 45px;
    height: 45px;
    border-radius: 13px;
    background: var(--space-pale);
    color: var(--space-accent);
}
.spaces-card-icon svg {
    width: 27px;
    height: 27px;
}
.spaces-card-description {
    color: #425b80;
    font-size: 15px;
    line-height: 1.65;
    min-height: 50px;
    margin-bottom: 16px;
}
.spaces-benefits {
    list-style: none;
    padding: 18px 0;
    margin: 0;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 12px;
    color: #36517b;
    font-size: 13px;
}
.spaces-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.spaces-benefits li > span {
    width: 23px;
    height: 23px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--space-pale);
    color: var(--space-accent);
    font-weight: 750;
}
.spaces-card-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 5px;
}
.spaces-commercial {
    font-size: 11px;
    color: #63799b;
    min-height: 26px;
    display: flex;
    align-items: center;
}
.spaces-availability {
    background: #f0eaff;
    color: #6439bf;
    border-radius: 20px;
    padding: 4px 11px;
    font-size: 11px;
    font-weight: 700;
    align-self: flex-start;
    display: inline-flex;
}
.spaces-card-button {
    background: var(--space-accent);
    border: 1px solid var(--space-accent);
    color: #fff;
    min-height: 48px;
    border-radius: 11px;
    padding: 12px 10px;
    line-height: 1.4;
}
.spaces-card-button:hover {
    background: var(--space-dark);
    color: #fff;
}
.spaces-card-button:disabled {
    background: #eff3f8;
    color: #647797;
    border-color: #e5ebf4;
    opacity: 1;
    cursor: not-allowed;
}
.spaces-button-soft {
    color: var(--space-dark);
    background: var(--space-pale);
    border-color: #e7ddfb;
}
.spaces-shared-strip {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 26px;
    background: #ffffffb3;
    border: 1px solid #e6eef9;
    border-radius: 18px;
}
.spaces-shared-strip > div {
    flex: 1;
}
.spaces-shared-strip strong {
    font-size: 14px;
}
.spaces-shared-strip p {
    margin: 4px 0 0;
    color: #657a9b;
    font-size: 12px;
}
.spaces-shared-icon, .spaces-common-icon {
    width: 43px;
    height: 43px;
    background: #eef4ff;
    border-radius: 12px;
    color: #4776c7;
}
.spaces-signature {
    text-align: center;
    color: #6e819f;
    font-size: 12px;
    margin: 28px 0 0;
}
.spaces-menu {
    position: relative;
}
.spaces-menu > summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 650;
    color: var(--ink);
    background: #fff;
}
.spaces-menu > summary::-webkit-details-marker {
    display: none;
}
.spaces-menu-panel {
    position: absolute;
    z-index: 45;
    top: calc(100% + 9px);
    left: 0;
    width: 295px;
    padding: 9px;
    border: 1px solid #e5edf8;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 14px 48px #16346322;
}
.spaces-menu-panel p {
    padding: 8px 11px;
    font-size: 11px;
    color: #6e819f;
    margin: 0;
    overflow-wrap: anywhere;
}
.spaces-menu-panel a, .spaces-menu-panel button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    width: 100%;
    text-align: left;
    border: 0;
    background: #fff;
    border-radius: 9px;
    color: var(--ink);
    font-size: 12px;
}
.spaces-menu-panel a:hover, .spaces-menu-panel button:hover {
    background: #f1f6ff;
}
.spaces-menu-panel small {
    font-size: 9px;
    margin-left: auto;
    color: #7041d9;
}
.spaces-menu-panel form {
    margin: 0;
}
.spaces-account > summary {
    border: 0;
    padding: 0;
    background: transparent;
}
.spaces-account .spaces-menu-panel {
    left: auto;
    right: 0;
    width: 255px;
}
.spaces-account-name {
    max-width: 175px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.spaces-context-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0866ff;
    flex-shrink: 0;
}
.spaces-dot-survey {
    background: #008565;
}
.spaces-dot-points {
    background: #7041d9;
}
.spaces-dot-company {
    background: #69819f;
}
.spaces-soon-small {
    color: #7041d9;
    font-size: 9px;
    margin-left: auto;
}
.spaces-back {
    background: #f4f8ff;
    font-weight: 650;
}
.spaces-common-grid, .spaces-draft-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.spaces-common-card, .spaces-draft {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e4ecf8;
    border-radius: 16px;
    color: var(--ink);
    min-width: 0;
}
.spaces-common-card > strong, .spaces-draft > span:nth-child(2) {
    flex: 1;
    min-width: 0;
}
.spaces-common-card:hover, .spaces-draft:hover {
    border-color: #a9caff;
    box-shadow: 0 6px 20px #0866ff09;
}
.spaces-common-card strong {
    font-size: 13px;
}
.spaces-resume, .spaces-operator-tools {
    margin-top: 30px;
}
.spaces-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.spaces-section-heading h2 {
    font-size: 19px;
    margin: 0;
}
.spaces-section-heading a {
    font-size: 12px;
}
.spaces-draft {
    padding: 18px;
}
.spaces-draft strong, .spaces-draft small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.spaces-draft strong {
    font-size: 13px;
    margin: 5px 0;
}
.spaces-draft small {
    font-size: 10px;
    color: #6e819f;
}
.spaces-future {
    max-width: 1000px;
    margin: 24px auto;
    overflow: hidden;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    padding: 0;
}
.spaces-future-visual {
    background: #f0eaff;
    display: flex;
    align-items: center;
}
.spaces-future-visual img {
    width: 100%;
    height: auto;
}
.spaces-future-content {
    padding: 40px;
}
.spaces-future-content h1 {
    margin: 20px 0 16px;
}
.spaces-future-content > p:not(.spaces-lead) {
    color: #607598;
}
.spaces-future-note {
    background: #f7f4ff;
    border-radius: 12px;
    padding: 16px;
    font-size: 13px;
}
.spaces-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.service-shell a:focus-visible, .service-shell summary:focus-visible, .service-shell button:focus-visible {
    outline: 3px solid #73a7ff;
    outline-offset: 3px;
}
@media (min-width: 981px) {
    .spaces-topbar .menu-toggle {
        display: none;
    }
}
@media (max-width: 1100px) {
    .spaces-cards {
        gap: 14px;
    }
    .spaces-card {
        padding: 13px;
    }
    .spaces-card-body {
        padding: 16px 3px 3px;
    }
    .spaces-card-title {
        gap: 10px;
    }
    .spaces-card-title h2 {
        font-size: 20px;
    }
    .spaces-topbar .topbar-right {
        gap: 14px;
    }
    .spaces-common-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .service-shell-hub .content {
        padding: 32px 18px 20px;
    }
    .spaces-cards, .spaces-draft-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 470px;
        margin: 0 auto;
    }
    .spaces-card {
        padding: 16px;
    }
    .spaces-card-body {
        padding: 18px 6px 5px;
    }
    .spaces-card-description {
        min-height: 0;
    }
    .spaces-card-title h2 {
        font-size: 24px;
    }
    .spaces-welcome {
        margin-bottom: 25px;
    }
    .spaces-welcome h1 {
        letter-spacing: -.8px;
    }
    .spaces-intro {
        font-size: 13px;
    }
    .spaces-topbar {
        padding: 14px 18px;
        min-height: 76px;
        height: auto;
        flex-wrap: wrap;
        gap: 12px;
    }
    .spaces-topbar .brand {
        font-size: 21px;
    }
    .spaces-topbar .brand svg {
        width: 29px;
        height: 33px;
    }
    .spaces-company-link > span:last-child, .spaces-account-name {
        display: none;
    }
    .spaces-company-link {
        padding: 8px;
    }
    .spaces-menu > summary {
        font-size: 12px;
        padding: 10px;
    }
    .spaces-account > summary {
        padding: 0;
    }
    .spaces-topbar .topbar-right {
        gap: 10px;
        margin-left: auto;
    }
    .spaces-company-switch {
        max-width: 140px;
    }
    .spaces-shared-strip {
        padding: 20px;
        flex-wrap: wrap;
    }
    .spaces-shared-strip > div {
        flex-basis: calc(100% - 60px);
    }
    .spaces-shared-strip > .btn {
        width: 100%;
    }
    .spaces-common-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .spaces-future {
        grid-template-columns: minmax(0, 1fr);
        margin: 0;
    }
    .spaces-future-content {
        padding: 26px;
    }
    .spaces-future-visual img {
        max-height: 210px;
        object-fit: cover;
    }
    .spaces-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .spaces-menu-panel {
        width: min(295px, calc(100vw - 36px));
    }
    .service-shell-hub .app-footer {
        margin-bottom: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .spaces-card {
        transition: none;
    }
}

/* Keep selected-company operator tools together without mixing them with platform settings. */
.spaces-tenant-nav {
    margin-top: 16px;
    padding: 10px 5px;
    background: #f4f8ff;
    border-radius: 12px;
}
.spaces-tenant-nav > summary {
    padding: 6px 8px;
    color: #486489;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
