:root {
    --gos-topbar: #17202a;
    --gos-topbar-2: #111820;
    --gos-sidebar: #f7f8fb;
    --gos-bg: #f4f5f7;
    --gos-surface: #ffffff;
    --gos-line: #d8dde6;
    --gos-line-soft: #e9edf3;
    --gos-text: #202631;
    --gos-muted: #6c7584;
    --gos-purple: #714b67;
    --gos-purple-strong: #875a7b;
    --gos-purple-soft: #f1e9f0;
    --gos-teal: #018b84;
    --gos-green: #1f9d68;
    --gos-orange: #f59f00;
    --gos-red: #d94841;
    --gos-radius: 6px;
    --gos-shadow: 0 12px 32px rgba(23, 32, 42, 0.08);
}

html,
body {
    min-height: 100%;
}

.gos-body {
    margin: 0;
    color: var(--gos-text);
    background: var(--gos-bg);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 0;
}

.gos-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.gos-topbar {
    height: 52px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 18px;
    background: linear-gradient(180deg, var(--gos-topbar), var(--gos-topbar-2));
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.gos-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 650;
}

.gos-brand:hover {
    color: #fff;
}

.gos-brand-mark {
    width: 27px;
    height: 27px;
    display: inline-grid;
    place-items: center;
    border-radius: 7px;
    background: linear-gradient(135deg, #00a09d, #35c48a);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.gos-module-nav {
    display: flex;
    align-self: stretch;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.gos-module-nav::-webkit-scrollbar {
    display: none;
}

.gos-module-link {
    height: 52px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    font-weight: 520;
}

.gos-module-link:hover,
.gos-module-link.is-active {
    color: #fff;
    border-bottom-color: #b88cc5;
    background: rgba(255, 255, 255, 0.05);
}

.gos-top-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.gos-search-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    position: relative;
}

.gos-search-dot::before {
    content: "";
    width: 9px;
    height: 9px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    position: absolute;
    top: 7px;
    left: 7px;
}

.gos-search-dot::after {
    content: "";
    width: 7px;
    height: 2px;
    background: rgba(255, 255, 255, 0.85);
    transform: rotate(45deg);
    position: absolute;
    top: 17px;
    left: 17px;
}

.gos-help-trigger,
.gos-ai-trigger {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.gos-help-trigger {
    width: auto;
    min-width: 34px;
    padding: 0 8px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
}

.gos-help-trigger:hover,
.gos-help-trigger:focus-visible,
.gos-ai-trigger:hover,
.gos-ai-trigger:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.62);
    transform: translateY(-1px);
}

.gos-ai-trigger svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gos-user-pill {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.gos-tenant-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 340px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 4px 9px;
    color: #dff5ee;
    background: rgba(1, 139, 132, 0.22);
    border: 1px solid rgba(184, 231, 226, 0.28);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.gos-tenant-pill:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.gos-tenant-pill span {
    flex: 0 0 auto;
    padding: 1px 6px;
    color: #102026;
    background: #dff6f1;
    border-radius: 999px;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 800;
}

.gos-tenant-pill strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font: inherit;
}

.gos-tenant-pill-schulung span {
    background: #fff2cc;
}

.gos-tenant-pill-demo span {
    background: #e9ddff;
}

.gos-ai-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(17, 24, 32, 0.28);
}

.gos-ai-panel {
    position: fixed;
    top: 52px;
    right: 0;
    bottom: 0;
    z-index: 1050;
    width: min(420px, calc(100vw - 24px));
    display: flex;
    flex-direction: column;
    background: #fff;
    border-left: 1px solid var(--gos-line);
    box-shadow: -18px 0 42px rgba(23, 32, 42, 0.14);
    transform: translateX(100%);
    transition: transform 0.18s ease;
}

.gos-ai-panel.is-open {
    transform: translateX(0);
}

.gos-ai-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px 16px;
    border-bottom: 1px solid var(--gos-line-soft);
}

.gos-ai-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--gos-teal);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.gos-ai-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 750;
}

.gos-ai-close {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    color: var(--gos-muted);
    background: #fff;
    border: 1px solid var(--gos-line);
    border-radius: 6px;
}

.gos-ai-close:hover {
    color: var(--gos-text);
    background: #f7f8fb;
}

.gos-ai-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.gos-ai-body {
    min-height: 0;
    flex: 1;
    overflow: auto;
    padding: 16px 20px 20px;
}

.gos-ai-section {
    padding: 14px 0;
    border-bottom: 1px solid var(--gos-line-soft);
}

.gos-ai-section:first-child {
    padding-top: 0;
}

.gos-ai-section:last-child {
    border-bottom: 0;
}

.gos-ai-section h3 {
    margin: 0 0 8px;
    color: #2a3240;
    font-size: 14px;
    font-weight: 750;
}

.gos-ai-section p,
.gos-ai-section li {
    color: #4f5c6d;
    line-height: 1.48;
}

.gos-ai-section p {
    margin: 0;
}

.gos-ai-section ul,
.gos-ai-section ol {
    margin: 0;
    padding-left: 18px;
}

.gos-ai-section li + li {
    margin-top: 7px;
}

.gos-ai-note {
    padding: 14px;
    margin-top: 14px;
    background: #f7fbfb;
    border: 1px solid #cfe8e5;
    border-radius: 8px;
}

.gos-ai-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid var(--gos-line);
    background: #fff;
}

.gos-ai-foot span {
    color: var(--gos-muted);
    font-size: 12px;
    line-height: 1.35;
}

.gos-workspace {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
}

.gos-sidebar {
    background: var(--gos-sidebar);
    border-right: 1px solid var(--gos-line);
    padding: 14px 10px 18px;
    overflow-y: auto;
}

.gos-side-section {
    margin-bottom: 18px;
}

.gos-side-heading {
    padding: 7px 10px 6px;
    color: var(--gos-teal);
    font-size: 12px;
    font-weight: 760;
    text-transform: uppercase;
}

.gos-side-heading-link {
    display: block;
    border-radius: 6px;
    text-decoration: none;
}

.gos-side-heading-link:hover,
.gos-side-heading-link:focus {
    background: #eef8f6;
    color: var(--gos-teal);
}

.gos-side-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 7px 9px;
    margin: 1px 0;
    color: #323b48;
    text-decoration: none;
    border-radius: var(--gos-radius);
}

.gos-side-link:hover {
    color: var(--gos-purple);
    background: #fff;
}

.gos-side-link.is-active {
    color: var(--gos-purple);
    background: var(--gos-purple-soft);
    font-weight: 650;
}

.gos-side-link.is-active::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 7px;
    bottom: 7px;
    width: 3px;
    border-radius: 3px;
    background: var(--gos-purple);
}

.gos-side-icon {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 5px;
    background: #fff;
    color: var(--gos-muted);
    border: 1px solid var(--gos-line-soft);
    font-size: 11px;
    font-weight: 800;
}

.gos-side-link.is-active .gos-side-icon {
    color: #fff;
    border-color: var(--gos-purple);
    background: var(--gos-purple);
}

.gos-sidebar-footer {
    margin-top: 28px;
    padding: 12px 10px;
    color: var(--gos-muted);
    font-size: 12px;
}

.gos-main {
    min-width: 0;
    padding: 0;
}

.gos-subnav {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 28px;
    background: #fff;
    border-bottom: 1px solid var(--gos-line);
    overflow-x: auto;
}

.gos-subnav-link {
    color: #4d5664;
    text-decoration: none;
    font-size: 13px;
    font-weight: 560;
    padding: 7px 9px;
    border-radius: var(--gos-radius);
    white-space: nowrap;
}

.gos-subnav-link:hover {
    color: var(--gos-purple);
    background: var(--gos-purple-soft);
}

.gos-subnav-link.is-active {
    color: var(--gos-purple);
    background: var(--gos-purple-soft);
    box-shadow: inset 0 -2px 0 var(--gos-purple);
    font-weight: 700;
}

.gos-messages {
    padding: 18px 28px 0;
}

.gos-page {
    padding: 24px 28px 34px;
}

.gos-workspace-auth {
    display: block;
}

.gos-workspace-auth .gos-main {
    min-height: calc(100vh - 52px);
}

.gos-workspace-auth .gos-page {
    min-height: calc(100vh - 52px);
}

.gos-auth-shell {
    min-height: calc(100vh - 130px);
    display: grid;
    align-items: start;
    justify-items: center;
    padding-top: clamp(24px, 8vh, 72px);
}

.gos-auth-panel {
    width: min(440px, 100%);
    padding: 24px;
    background: #fff;
    border: 1px solid var(--gos-line);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(23, 32, 42, 0.08);
}

.gos-auth-head {
    margin-bottom: 18px;
}

.gos-auth-head h1 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 760;
}

.gos-auth-head p {
    margin: 0;
    color: var(--gos-muted);
    line-height: 1.45;
}

.gos-auth-field {
    margin-bottom: 14px;
}

.gos-auth-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--gos-text);
    font-size: 13px;
    font-weight: 700;
}

.gos-auth-form input,
.gos-auth-form .form-control {
    display: block;
    min-height: 2.9rem;
    width: 100% !important;
    max-width: none;
    padding: 9px 11px;
    font-size: 1rem;
    border: 1px solid var(--gos-line);
    border-radius: 6px;
}

.gos-auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.gos-auth-actions a {
    font-size: 14px;
}

.gos-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.gos-page-head h1 {
    margin: 0 0 4px;
    color: #1f2733;
    font-size: 24px;
    font-weight: 680;
}

.gos-page-head p {
    margin: 0;
    color: var(--gos-muted);
}

.gos-page-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.gos-page > .d-flex:first-child h1,
.gos-page h1.h4 {
    color: #1f2733;
    font-size: 24px;
    font-weight: 650;
}

.gos-page .text-muted {
    color: var(--gos-muted) !important;
}

.btn {
    border-radius: 5px;
    font-weight: 560;
    letter-spacing: 0;
}

.btn-primary {
    background: var(--gos-purple);
    border-color: var(--gos-purple);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--gos-purple-strong);
    border-color: var(--gos-purple-strong);
}

.btn-outline-primary {
    color: var(--gos-purple);
    border-color: var(--gos-purple);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--gos-purple);
    border-color: var(--gos-purple);
}

.btn-outline-secondary {
    color: #374151;
    border-color: var(--gos-line);
    background: #fff;
}

.btn-outline-secondary:hover,
.btn-outline-secondary.active {
    color: var(--gos-purple);
    border-color: #cdb8c8;
    background: var(--gos-purple-soft);
}

.form-control,
.form-select {
    border-color: var(--gos-line);
    border-radius: 5px;
    font-size: 14px;
}

.gos-page input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]),
.gos-page select,
.gos-page textarea {
    width: 100%;
    min-height: 36px;
    padding: 7px 10px;
    color: var(--gos-text);
    background: #fff;
    border: 1px solid var(--gos-line);
    border-radius: 5px;
    font: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.gos-page textarea {
    min-height: 84px;
    resize: vertical;
}

.form-control:focus,
.form-select:focus,
.gos-page input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]):focus,
.gos-page select:focus,
.gos-page textarea:focus {
    border-color: var(--gos-purple-strong);
    box-shadow: 0 0 0 0.18rem rgba(113, 75, 103, 0.16);
}

.form-label {
    color: #4b5563;
    font-size: 12px;
    font-weight: 650;
}

.gos-settings-layout {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

.gos-settings-aside {
    display: grid;
    gap: 14px;
}

.gos-settings-card,
.gos-form-panel {
    background: #fff;
    border: 1px solid var(--gos-line);
    border-radius: var(--gos-radius);
    box-shadow: 0 1px 0 rgba(20, 30, 45, 0.03);
}

.gos-settings-card {
    padding: 16px;
}

.gos-card-head,
.gos-form-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.gos-card-head h2,
.gos-form-section-head h2 {
    margin: 0;
    color: #2a3240;
    font-size: 15px;
    font-weight: 700;
}

.gos-card-head span {
    color: var(--gos-muted);
    font-size: 12px;
}

.gos-logo-stage {
    min-height: 182px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    background: linear-gradient(180deg, #fbfcfd, #f5f7fa);
    border: 1px dashed #cfd6e1;
    border-radius: 6px;
}

.gos-logo-stage img {
    max-width: 78%;
    max-height: 152px;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(20, 30, 45, 0.08));
}

.gos-logo-empty {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--gos-purple), var(--gos-teal));
    font-size: 34px;
    font-weight: 800;
}

.gos-logo-form label,
.gos-field label {
    display: block;
    margin-bottom: 5px;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
}

.gos-logo-form input[type="file"] {
    width: 100%;
    margin-bottom: 10px;
    color: #4b5563;
    font-size: 13px;
}

.gos-logo-form input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 6px 10px;
    color: var(--gos-purple);
    background: var(--gos-purple-soft);
    border: 1px solid #d7c1d2;
    border-radius: 5px;
    font-weight: 650;
}

.gos-color-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gos-color-preview span {
    height: 46px;
    border-radius: 6px;
    border: 1px solid rgba(20, 30, 45, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.gos-form-panel {
    padding: 0;
    overflow: hidden;
}

.gos-simple-form {
    max-width: 860px;
    padding: 18px 20px 20px;
    background: #fff;
    border: 1px solid var(--gos-line);
    border-radius: var(--gos-radius);
    box-shadow: 0 1px 0 rgba(20, 30, 45, 0.03);
}

.gos-editor-form {
    width: min(100%, 1180px);
    margin: 0 auto 32px;
    background: var(--gos-surface);
    border: 1px solid var(--gos-line);
    border-radius: var(--gos-radius);
    box-shadow: 0 1px 0 rgba(20, 30, 45, 0.03);
}

.gos-simple-form p {
    margin-bottom: 14px;
}

.gos-simple-form label {
    display: block;
    margin-bottom: 5px;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
}

.gos-simple-form .helptext {
    display: block;
    margin-top: 5px;
    color: var(--gos-muted);
    font-size: 12px;
}

.gos-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--gos-line-soft);
}

.gos-narrow-form {
    max-width: 940px;
}

.gos-form-shell {
    width: 100%;
}

.gos-form-shell fieldset {
    margin: 0 0 16px;
    padding: 18px 20px 4px;
    background: #fff;
    border: 1px solid var(--gos-line);
    border-radius: var(--gos-radius);
    box-shadow: 0 1px 0 rgba(20, 30, 45, 0.03);
}

.gos-form-shell fieldset legend {
    float: none;
    width: auto;
    margin: 0 0 12px;
    padding: 0 6px;
    color: #2a3240;
    font-size: 15px;
    font-weight: 700;
}

.gos-form-shell .row {
    row-gap: 2px;
}

.gos-form-shell .form-group,
.gos-form-shell .mb-3 {
    margin-bottom: 14px !important;
}

.gos-form-shell .form-check {
    margin-bottom: 14px;
}

.gos-form-section {
    padding: 18px 20px 20px;
    border-bottom: 1px solid var(--gos-line-soft);
}

.gos-form-section:focus-within {
    background: #fcfbfd;
}

.gos-form-section:last-child {
    border-bottom: 0;
}

.gos-qr-stage {
    display: grid;
    gap: 12px;
    justify-items: start;
}

.gos-qr-stage img {
    max-width: 220px;
    width: 100%;
    height: auto;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--gos-line);
    border-radius: 8px;
}

.gos-form-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.gos-form-section-head h2 {
    margin: 0;
}

.gos-form-section-head span {
    color: var(--gos-muted);
    font-size: 12px;
    text-align: right;
}

.gos-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.gos-field {
    min-width: 0;
}

.gos-field label {
    display: block;
    margin-bottom: 5px;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
}

.gos-span-2 {
    grid-column: 1 / -1;
}

.gos-field small {
    display: block;
    margin-top: 5px;
    color: var(--gos-muted);
    font-size: 12px;
}

.gos-form-actions-sticky {
    position: sticky;
    bottom: 0;
    margin-top: 0;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--gos-line);
    border-radius: 0 0 var(--gos-radius) var(--gos-radius);
    backdrop-filter: blur(8px);
    z-index: 4;
}

.gos-tenant-choice-list {
    display: grid;
    gap: 10px;
}

.gos-tenant-choice {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--gos-line);
    border-radius: var(--gos-radius);
    background: #fff;
    cursor: pointer;
}

.gos-tenant-choice:has(input:checked) {
    border-color: var(--gos-purple);
    background: var(--gos-purple-soft);
}

.gos-tenant-choice input {
    margin-top: 3px;
}

.gos-tenant-choice strong,
.gos-tenant-choice small {
    display: block;
}

.gos-tenant-choice small {
    margin-top: 3px;
    color: var(--gos-muted);
}

.gos-field ul.errorlist,
.gos-field-error ul.errorlist {
    margin: 6px 0 0;
    padding: 0;
    color: var(--gos-red);
    font-size: 12px;
    list-style: none;
}

.gos-color-field {
    display: grid;
    grid-template-columns: 150px 56px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
}

.gos-color-field label {
    margin: 0;
}

.gos-color-field input[type="color"] {
    width: 54px;
    height: 34px;
    padding: 2px;
    background: #fff;
    border: 1px solid var(--gos-line);
    border-radius: 5px;
}

.gos-color-field small,
.gos-color-field .errorlist {
    grid-column: 3;
    margin-top: 0;
}

.table-responsive,
.gos-panel,
.gos-page > table,
.gos-page > .table {
    background: #fff;
    border: 1px solid var(--gos-line);
    border-radius: var(--gos-radius);
    box-shadow: 0 1px 0 rgba(20, 30, 45, 0.03);
}

.table-responsive {
    overflow: auto;
}

.table {
    margin-bottom: 0;
    color: var(--gos-text);
}

.table > :not(caption) > * > * {
    padding: 10px 12px;
    border-bottom-color: var(--gos-line-soft);
}

.table thead th {
    color: #4a5260;
    background: #fafbfc;
    font-size: 12px;
    font-weight: 760;
    text-transform: none;
    border-bottom: 1px solid var(--gos-line);
}

.gos-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3f4856;
    text-decoration: none;
}

.gos-sort-link:hover,
.gos-sort-link.is-active {
    color: var(--gos-purple);
}

.gos-sort-link::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.36;
}

.gos-sort-link.is-active::after {
    opacity: 0.9;
}

.gos-sort-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: #fbfcfe;
}

.table tbody tr:hover > * {
    background: #f7f0f6;
}

.badge {
    border-radius: 999px;
    padding: 0.38em 0.64em;
    font-weight: 650;
}

.badge.bg-secondary {
    color: #11735f !important;
    background: #dff5ee !important;
}

.badge.bg-danger {
    color: #b42318 !important;
    background: #ffe4df !important;
}

.badge.bg-dark {
    background: #384252 !important;
}

.nav-tabs {
    border-bottom-color: var(--gos-line);
}

.nav-tabs .nav-link {
    color: #566171;
    border-radius: 5px 5px 0 0;
    font-weight: 560;
}

.nav-tabs .nav-link.active {
    color: var(--gos-purple);
    border-color: var(--gos-line) var(--gos-line) #fff;
}

.tab-content {
    background: #fff;
    border-color: var(--gos-line) !important;
    border-radius: 0 0 var(--gos-radius) var(--gos-radius);
}

.card,
.border.rounded-2,
.list-group-item {
    border-color: var(--gos-line) !important;
    border-radius: var(--gos-radius) !important;
}

.pagination .page-link {
    color: var(--gos-purple);
    border-color: var(--gos-line);
}

.pagination .disabled .page-link {
    color: var(--gos-muted);
}

.gos-dashboard-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
}

.gos-simulation-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 16px;
    padding: 12px 16px;
    background: #fff7e0;
    border: 1px solid #efc46c;
    border-radius: 8px;
    color: #44320b;
}

.gos-simulation-banner strong,
.gos-simulation-banner span {
    display: block;
}

.gos-simulation-banner span {
    margin-top: 2px;
    font-size: 12px;
}

.gos-dashboard-head.is-centered {
    align-items: center;
}

.gos-dashboard-title h1 {
    margin: 0 0 4px;
    font-size: 26px;
    font-weight: 680;
}

.gos-dashboard-title p {
    margin: 0;
    color: var(--gos-muted);
}

.gos-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.gos-app-launcher {
    width: min(1040px, 100%);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 auto 22px;
}

.gos-section-label {
    width: min(1040px, 100%);
    margin: 0 auto 10px;
    color: var(--gos-muted);
    font-size: 12px;
    font-weight: 760;
    text-transform: uppercase;
    letter-spacing: 0;
}

.gos-app-tile {
    min-height: 126px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 20px;
    color: #253040;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--gos-line);
    border-radius: var(--gos-radius);
    box-shadow: 0 1px 0 rgba(20, 30, 45, 0.03);
}

.gos-app-tile:hover {
    color: var(--gos-purple);
    border-color: #cdb8c8;
    box-shadow: var(--gos-shadow);
}

.gos-app-tile.is-selected {
    color: var(--gos-purple);
    border-color: var(--gos-purple);
    box-shadow: 0 0 0 3px rgba(124, 75, 110, 0.14);
}

.gos-app-tile-button {
    width: 100%;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.gos-assistant-panel {
    width: min(1040px, 100%);
    margin: 0 auto;
}

.gos-booking-proposal {
    border-color: #cdb8c8;
}

.gos-app-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--gos-purple);
    border-radius: 8px;
    font-size: 20px;
    font-weight: 820;
}

.gos-app-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gos-app-tile:nth-child(2n) .gos-app-icon {
    background: var(--gos-teal);
}

.gos-app-tile:nth-child(3n) .gos-app-icon {
    background: #4f6378;
}

.gos-app-tile strong,
.gos-app-tile small {
    display: block;
}

.gos-app-tile strong {
    color: #202631;
    font-size: 16px;
    font-weight: 760;
}

.gos-app-tile small {
    margin-top: 4px;
    color: var(--gos-muted);
    font-size: 12px;
    line-height: 1.35;
}

.gos-kpi-strip {
    width: min(1040px, 100%);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 auto 18px;
}

.gos-dashboard-tasks {
    width: min(1040px, 100%);
    margin: 0 auto 18px;
}

.gos-year-assistant {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--gos-line);
    border-radius: var(--gos-radius);
}

.gos-year-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.gos-year-step {
    min-height: 128px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 10px;
    padding: 14px;
    color: inherit;
    text-decoration: none;
    background: #fafbfc;
    border: 1px solid var(--gos-line-soft);
    border-radius: 8px;
}

.gos-year-step:hover {
    color: inherit;
    border-color: #cdb8c8;
    box-shadow: 0 8px 22px rgba(20, 30, 45, 0.07);
}

.gos-year-step-number {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--gos-purple);
    border-radius: 999px;
    font-weight: 760;
}

.gos-year-step.is-ok .gos-year-step-number {
    background: var(--gos-teal);
}

.gos-year-step.is-warning .gos-year-step-number {
    background: #b77d22;
}

.gos-year-step.is-danger .gos-year-step-number {
    background: #c43f57;
}

.gos-year-step-body strong,
.gos-year-step-body small {
    display: block;
}

.gos-year-step-body strong {
    color: #202631;
    font-size: 14px;
}

.gos-year-step-body small {
    margin-top: 4px;
    color: var(--gos-muted);
    line-height: 1.35;
}

.gos-year-step-state {
    color: var(--gos-muted);
    font-size: 12px;
    font-weight: 760;
    text-transform: uppercase;
    letter-spacing: 0;
}

.gos-task-row {
    color: inherit;
    text-decoration: none;
}

.gos-task-row:hover {
    color: inherit;
    border-color: #cdb8c8;
    box-shadow: 0 8px 22px rgba(20, 30, 45, 0.07);
}

.gos-task-value {
    min-width: 42px;
    text-align: right;
    color: var(--gos-purple);
    font-size: 19px;
}

.gos-kpi-compact {
    min-height: 84px;
    padding: 14px 16px;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--gos-line);
    border-radius: var(--gos-radius);
}

.gos-kpi-compact:hover {
    color: inherit;
    border-color: #cdb8c8;
}

.gos-kpi-compact span,
.gos-kpi-compact small {
    display: block;
    color: var(--gos-muted);
    font-size: 12px;
    font-weight: 650;
}

.gos-kpi-compact strong {
    display: block;
    margin: 2px 0;
    color: #202631;
    font-size: 23px;
    font-weight: 760;
}

.gos-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.gos-mini-kpi {
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--gos-line);
    border-radius: var(--gos-radius);
    box-shadow: 0 1px 0 rgba(20, 30, 45, 0.03);
}

.gos-mini-kpi span {
    display: block;
    margin-bottom: 4px;
    color: var(--gos-muted);
    font-size: 12px;
    font-weight: 700;
}

.gos-mini-kpi strong {
    color: #202631;
    font-size: 22px;
    font-weight: 720;
}

.gos-process-grid,
.gos-account-grid {
    display: grid;
    gap: 14px;
}

.gos-process-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gos-process-grid div {
    min-height: 96px;
    padding: 14px;
    background: #fafbfc;
    border: 1px solid var(--gos-line-soft);
    border-radius: 6px;
}

.gos-process-grid strong {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    margin-bottom: 10px;
    color: #fff;
    background: var(--gos-teal);
    border-radius: 50%;
}

.gos-process-grid span,
.gos-tag-list span {
    color: #3b4450;
    font-weight: 620;
}

.gos-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gos-tag-list span {
    padding: 7px 10px;
    background: #fafbfc;
    border: 1px solid var(--gos-line-soft);
    border-radius: 999px;
    font-size: 13px;
}

.gos-account-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}

.gos-work-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.gos-work-head h1 {
    margin: 0 0 4px;
    color: #1f2733;
    font-size: 24px;
    font-weight: 680;
}

.gos-work-head p {
    margin: 0;
    color: var(--gos-muted);
}

.gos-work-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 420px;
}

.gos-select-control,
.gos-search-control {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid var(--gos-line);
    border-radius: 5px;
}

.gos-select-control span {
    color: var(--gos-muted);
    font-size: 12px;
    font-weight: 700;
}

.gos-select-control select,
.gos-search-control input {
    width: auto;
    min-height: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.gos-search-control {
    min-width: 260px;
}

.gos-search-control input {
    width: 100%;
}

.gos-inline-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gos-inline-search input {
    min-width: 260px;
}

.gos-work-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--gos-line);
}

.gos-work-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 15px;
    color: #3c4654;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    font-weight: 650;
}

.gos-work-tabs a:hover,
.gos-work-tabs a.is-active {
    color: var(--gos-purple);
    border-bottom-color: var(--gos-teal);
}

.gos-work-tabs span {
    min-width: 22px;
    padding: 2px 7px;
    color: var(--gos-muted);
    background: #eef1f5;
    border-radius: 999px;
    font-size: 11px;
    text-align: center;
}

.gos-master-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}

.gos-list-panel,
.gos-detail-panel {
    background: #fff;
    border: 1px solid var(--gos-line);
    border-radius: var(--gos-radius);
    box-shadow: 0 1px 0 rgba(20, 30, 45, 0.03);
}

.gos-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--gos-line);
}

.gos-list-toolbar strong,
.gos-list-toolbar span {
    display: block;
}

.gos-list-toolbar strong {
    color: #273140;
    font-size: 15px;
    font-weight: 720;
}

.gos-list-toolbar span {
    color: var(--gos-muted);
    font-size: 12px;
}

.gos-data-list {
    overflow-x: auto;
}

.gos-data-head,
.gos-data-row {
    display: grid;
    grid-template-columns: minmax(260px, 1.8fr) minmax(110px, .8fr) minmax(130px, 1fr) minmax(105px, .8fr) minmax(105px, .8fr) minmax(120px, .8fr) 34px;
    gap: 12px;
    align-items: center;
    min-width: 980px;
}

.gos-data-head {
    padding: 10px 14px;
    color: #566171;
    background: #fafbfc;
    border-bottom: 1px solid var(--gos-line);
    font-size: 12px;
    font-weight: 760;
}

.gos-data-row {
    min-height: 54px;
    padding: 10px 14px;
    color: #2b3442;
    text-decoration: none;
    border-bottom: 1px solid var(--gos-line-soft);
}

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

.gos-data-row:hover,
.gos-data-row.is-selected {
    color: #202631;
    background: #eef8f7;
    box-shadow: inset 3px 0 0 var(--gos-teal);
}

.gos-data-title {
    min-width: 0;
}

.gos-data-title strong,
.gos-data-title small,
.gos-money small {
    display: block;
}

.gos-data-title strong {
    color: #243041;
    font-weight: 720;
    overflow-wrap: anywhere;
}

.gos-data-title small,
.gos-money small {
    margin-top: 2px;
    color: var(--gos-muted);
    font-size: 12px;
    line-height: 1.3;
}

.gos-money {
    font-weight: 700;
}

.gos-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-right: 4px;
    padding: 2px 8px;
    color: #596273;
    background: #eef1f5;
    border: 1px solid #dce2ea;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 760;
}

.gos-status-pill.is-success {
    color: #007a67;
    background: #e2f7f2;
    border-color: #9ddcd2;
}

.gos-status-pill.is-warning {
    color: #8a6200;
    background: #fff5d8;
    border-color: #ead58c;
}

.gos-parcel-status {
    color: #1f2933;
    border-color: rgba(32, 38, 49, 0.12);
}

.gos-parcel-status-frei {
    background: var(--gos-parzelle-frei-bg, #e8f7ef);
}

.gos-parcel-status-vergeben {
    background: var(--gos-parzelle-vergeben-bg, #dff6f1);
}

.gos-parcel-status-gekuendigt {
    background: var(--gos-parzelle-gekuendigt-bg, #fde2ea);
}

.gos-parcel-status-im_wechsel {
    background: var(--gos-parzelle-im-wechsel-bg, #fff2cc);
}

.gos-row-more {
    color: var(--gos-muted);
    text-align: right;
    font-weight: 800;
}

.gos-detail-panel {
    position: sticky;
    top: 66px;
    padding: 22px 24px;
}

.gos-detail-head {
    position: relative;
    margin-bottom: 22px;
    padding-right: 30px;
}

.gos-detail-head h2 {
    margin: 0 0 6px;
    color: #1f2733;
    font-size: 18px;
    font-weight: 760;
    line-height: 1.3;
}

.gos-detail-head p {
    margin: 0;
    color: var(--gos-muted);
    font-size: 13px;
}

.gos-panel-close {
    position: absolute;
    top: -4px;
    right: -6px;
    width: 28px;
    height: 28px;
    color: #5c6674;
    background: transparent;
    border: 0;
    font-size: 20px;
    line-height: 1;
}

.gos-detail-facts {
    display: grid;
    gap: 0;
    margin: 0 0 22px;
}

.gos-detail-facts div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gos-line-soft);
}

.gos-detail-facts dt {
    color: var(--gos-muted);
    font-weight: 650;
}

.gos-detail-facts dd {
    margin: 0;
    color: #273140;
    font-weight: 620;
}

.gos-detail-note {
    margin-bottom: 18px;
    padding: 12px 0 0;
}

.gos-detail-note h3 {
    margin: 0 0 7px;
    color: #4b5563;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.gos-detail-note p {
    margin: 0;
    color: #364152;
    line-height: 1.45;
}

.gos-detail-note.is-warning {
    padding: 12px;
    background: #fff8e8;
    border: 1px solid #f1dfb8;
    border-radius: 6px;
}

.gos-detail-actions {
    display: grid;
    gap: 8px;
    padding-top: 22px;
    border-top: 1px solid var(--gos-line);
}

.gos-detail-actions form,
.gos-detail-actions .btn {
    width: 100%;
}

.gos-inline-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
}

.gos-inline-actions form {
    margin: 0;
}

.gos-filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 170px 170px auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 16px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--gos-line);
    border-radius: var(--gos-radius);
    box-shadow: 0 1px 0 rgba(20, 30, 45, 0.03);
}

.gos-filter-bar label {
    display: grid;
    gap: 5px;
    margin: 0;
}

.gos-filter-bar label span {
    color: var(--gos-muted);
    font-size: 12px;
    font-weight: 700;
}

.gos-filter-bar select,
.gos-filter-bar input {
    width: 100%;
    min-height: 36px;
    padding: 7px 10px;
    color: var(--gos-text);
    background: #fff;
    border: 1px solid var(--gos-line);
    border-radius: 5px;
    font: inherit;
}

.gos-filter-bar.gos-filter-bar-wide {
    grid-template-columns: minmax(260px, 1.4fr) 170px 150px auto auto auto auto;
}

.gos-check-control {
    min-height: 36px;
    display: flex !important;
    grid-template-columns: none;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    background: #fafbfc;
    border: 1px solid var(--gos-line);
    border-radius: 5px;
}

.gos-check-control input {
    width: auto;
    min-height: auto;
    margin: 0;
}

.gos-check-control span {
    font-size: 12px;
    font-weight: 700;
}

.gos-field-list {
    display: grid;
    gap: 9px;
}

.gos-field-list div {
    padding: 11px 12px;
    background: #fafbfc;
    border: 1px solid var(--gos-line-soft);
    border-radius: 6px;
}

.gos-field-list span {
    display: block;
    color: var(--gos-muted);
    font-size: 12px;
    font-weight: 700;
}

.gos-field-list strong {
    display: block;
    margin-top: 2px;
    color: #202631;
}

.gos-check-list ul {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gos-check-list label {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    margin: 0;
}

.gos-kpi {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 13px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--gos-line);
    border-radius: var(--gos-radius);
    box-shadow: 0 1px 0 rgba(20, 30, 45, 0.03);
    text-decoration: none;
    color: inherit;
}

.gos-kpi:hover {
    color: inherit;
    border-color: #c6b1c1;
    box-shadow: var(--gos-shadow);
}

.gos-kpi-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--gos-teal);
    background: #dff5ee;
    font-weight: 800;
}

.gos-kpi:nth-child(2) .gos-kpi-icon {
    color: var(--gos-purple);
    background: var(--gos-purple-soft);
}

.gos-kpi:nth-child(3) .gos-kpi-icon {
    color: #a56200;
    background: #fff0d6;
}

.gos-kpi:nth-child(4) .gos-kpi-icon {
    color: #0f766e;
    background: #d8f3f0;
}

.gos-kpi-label {
    color: var(--gos-muted);
    font-size: 12px;
    font-weight: 650;
}

.gos-kpi-value {
    margin-top: 2px;
    font-size: 25px;
    font-weight: 680;
}

.gos-kpi-meta {
    margin-top: 6px;
    color: var(--gos-muted);
    font-size: 12px;
}

.gos-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
}

.gos-record-panel,
.gos-activity-panel {
    background: #fff;
    border: 1px solid var(--gos-line);
    border-radius: var(--gos-radius);
}

.gos-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--gos-line);
}

.gos-panel-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 680;
}

.gos-grid-2 {
    width: min(1040px, 100%);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px auto 0;
}

.gos-action-list {
    display: grid;
}

.gos-action-list a {
    display: grid;
    gap: 3px;
    padding: 14px 16px;
    color: var(--gos-text);
    text-decoration: none;
    border-bottom: 1px solid var(--gos-line-soft);
}

.gos-action-list a:last-child {
    border-bottom: 0;
}

.gos-action-list a:hover {
    background: #fbf7fb;
}

.gos-action-list span,
ul.gos-check-list li,
.gos-process-grid p,
.gos-process-grid small {
    color: var(--gos-muted);
}

ul.gos-check-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 14px 18px 16px 34px;
}

ul.gos-check-list li {
    padding-left: 3px;
}

.gos-quick-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}

.gos-quick-link {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
    color: var(--gos-text);
    text-decoration: none;
    border-right: 1px solid var(--gos-line-soft);
    border-bottom: 1px solid var(--gos-line-soft);
}

.gos-quick-link:hover {
    background: #fbf7fb;
    color: var(--gos-purple);
}

.gos-quick-title {
    font-weight: 650;
}

.gos-quick-meta {
    margin-top: 4px;
    color: var(--gos-muted);
    font-size: 12px;
}

.gos-arrow {
    color: var(--gos-purple);
    font-weight: 800;
}

.gos-activity-list {
    padding: 12px 16px 16px;
}

.gos-activity {
    position: relative;
    padding: 0 0 16px 22px;
    color: #3b4450;
}

.gos-activity::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 4px;
    bottom: -4px;
    width: 1px;
    background: var(--gos-line);
}

.gos-activity::after {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--gos-teal);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--gos-line);
}

.gos-activity:last-child {
    padding-bottom: 0;
}

.gos-activity:last-child::before {
    display: none;
}

.gos-activity-time {
    color: var(--gos-muted);
    font-size: 12px;
}

.gos-activity-title {
    font-weight: 650;
}

.gos-record-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--gos-line);
    border-radius: var(--gos-radius);
    box-shadow: 0 1px 0 rgba(20, 30, 45, 0.03);
}

.gos-record-kicker {
    margin-bottom: 4px;
    color: var(--gos-teal);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.gos-record-title h1 {
    margin: 0;
    color: #1f2733;
    font-size: 28px;
    font-weight: 720;
}

.gos-record-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    color: var(--gos-muted);
    font-size: 13px;
}

.gos-record-meta span + span::before {
    content: "/";
    margin-right: 8px;
    color: #b5bdc9;
}

.gos-record-actions,
.gos-section-actions,
.gos-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gos-smart-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.gos-smart-strip a {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--gos-text);
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--gos-line);
    border-radius: var(--gos-radius);
}

.gos-smart-strip a:hover {
    color: var(--gos-purple);
    border-color: #cdb8c8;
    background: #fbf7fb;
}

.gos-smart-strip strong {
    min-width: 30px;
    font-size: 22px;
    font-weight: 760;
}

.gos-smart-strip span {
    color: var(--gos-muted);
    font-size: 12px;
    font-weight: 650;
}

.gos-file-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.gos-file-main,
.gos-file-side {
    display: grid;
    gap: 14px;
}

.gos-file-section,
.gos-side-card {
    background: #fff;
    border: 1px solid var(--gos-line);
    border-radius: var(--gos-radius);
    box-shadow: 0 1px 0 rgba(20, 30, 45, 0.03);
}

.gos-file-section {
    padding: 18px 20px;
}

.gos-side-card {
    padding: 16px;
}

.gos-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.gos-section-head.compact {
    margin-bottom: 10px;
}

.gos-section-head h2,
.gos-side-card > h2 {
    margin: 0;
    color: #2a3240;
    font-size: 16px;
    font-weight: 720;
}

.gos-file-section h3 {
    margin: 0 0 10px;
    color: #3a4350;
    font-size: 13px;
    font-weight: 780;
    text-transform: uppercase;
}

.gos-facts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.gos-facts-grid div {
    padding: 12px;
    background: #fafbfc;
    border: 1px solid var(--gos-line-soft);
    border-radius: 6px;
}

.gos-facts-grid span,
.gos-mini-label {
    display: block;
    margin-bottom: 4px;
    color: var(--gos-muted);
    font-size: 11px;
    font-weight: 760;
    text-transform: uppercase;
}

.gos-facts-grid strong {
    color: #202631;
    font-size: 15px;
}

.gos-note-block {
    margin-top: 12px;
    padding: 12px;
    color: #3f4855;
    background: #fff8e8;
    border: 1px solid #f1dfb8;
    border-radius: 6px;
}

.gos-person-grid,
.gos-two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.gos-person-card {
    padding: 14px;
    background: #fafbfc;
    border: 1px solid var(--gos-line-soft);
    border-radius: 6px;
}

.gos-person-card h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 720;
    text-transform: none;
}

.gos-person-card dl,
.gos-compact-dl {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 5px 10px;
    margin: 0 0 12px;
    font-size: 13px;
}

.gos-person-card dt,
.gos-compact-dl dt {
    color: var(--gos-muted);
    font-weight: 650;
}

.gos-person-card dd,
.gos-compact-dl dd {
    margin: 0;
    min-width: 0;
}

.gos-subsection {
    margin-top: 18px;
}

.gos-list-stack {
    display: grid;
    gap: 8px;
}

.gos-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 10px 12px;
    background: #fafbfc;
    border: 1px solid var(--gos-line-soft);
    border-radius: 6px;
}

.gos-list-row.is-selected {
    background: #eef8f7;
    border-color: #9ddcd2;
    box-shadow: inset 3px 0 0 var(--gos-teal);
}

.gos-list-row > div:first-child {
    min-width: 0;
}

.gos-list-row a:not(.btn),
.gos-list-row strong {
    color: #243041;
    font-weight: 700;
    text-decoration: none;
}

.gos-list-row a:not(.btn):hover {
    color: var(--gos-purple);
}

.gos-list-row span {
    display: block;
    margin-top: 2px;
    color: var(--gos-muted);
    font-size: 12px;
}

.gos-permission-group {
    border: 1px solid var(--gos-border);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.gos-permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.gos-permission-group h3 {
    margin: 0;
    padding: 10px 12px;
    background: #f8fafc;
    border-bottom: 1px solid var(--gos-border);
    font-size: .86rem;
    font-weight: 700;
}

.gos-permission-row {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    padding: 9px 12px;
    border-bottom: 1px solid #eef2f7;
}

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

.gos-permission-row input {
    margin-top: 3px;
}

.gos-permission-row strong,
.gos-permission-row small {
    display: block;
}

.gos-permission-row strong {
    font-size: .9rem;
}

.gos-permission-row small {
    color: var(--gos-muted);
    line-height: 1.35;
}

.gos-empty {
    padding: 13px 14px;
    color: var(--gos-muted);
    background: #fafbfc;
    border: 1px dashed #cfd6e1;
    border-radius: 6px;
}

.gos-process-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.gos-process-main,
.gos-process-side {
    background: #fff;
    border: 1px solid var(--gos-line);
    border-radius: var(--gos-radius);
    box-shadow: 0 1px 0 rgba(20, 30, 45, 0.03);
}

.gos-process-side {
    position: sticky;
    top: 66px;
}

.gos-panel-head span {
    display: block;
    margin-top: 3px;
    color: var(--gos-muted);
    font-size: 12px;
}

.gos-process-list {
    display: grid;
    gap: 10px;
    padding: 14px 16px 16px;
}

.gos-process-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 70px;
    padding: 12px 14px;
    background: #fafbfc;
    border: 1px solid var(--gos-line-soft);
    border-radius: 6px;
}

.gos-process-title {
    color: #243041;
    font-size: 15px;
    font-weight: 720;
    text-decoration: none;
}

.gos-process-title:hover {
    color: var(--gos-purple);
}

.gos-process-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin-top: 5px;
    color: var(--gos-muted);
    font-size: 12px;
}

.gos-process-empty {
    min-height: 116px;
    display: grid;
    align-items: center;
}

.gos-inline-form {
    margin: 0;
}

.gos-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.gos-check-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--gos-line);
    border-radius: 8px;
}

.gos-check-card.is-ok {
    border-color: #b9ead8;
    background: #f7fffb;
}

.gos-check-card.is-warning {
    border-color: #f2d58c;
    background: #fffaf0;
}

.gos-check-card.is-danger {
    border-color: #f3b4c1;
    background: #fff7f9;
}

.gos-check-status {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    font-weight: 800;
    border-radius: 999px;
    color: #006a5b;
    background: #dff6f1;
}

.gos-check-card.is-warning .gos-check-status {
    color: #7a4d00;
    background: #ffe7a3;
}

.gos-check-card.is-danger .gos-check-status {
    color: #9f1239;
    background: #ffd6df;
}

.gos-check-body {
    min-width: 0;
}

.gos-check-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.gos-check-title strong {
    font-size: 14px;
}

.gos-check-title span {
    color: var(--gos-text);
    font-size: 22px;
    font-weight: 800;
}

.gos-check-body p {
    margin: 0 0 10px;
    color: var(--gos-muted);
    font-size: 13px;
    line-height: 1.4;
}

.gos-process-hint {
    margin-top: 16px;
    padding: 14px;
    background: #f7fbfb;
    border: 1px solid #cfe8e5;
    border-radius: 8px;
}

.gos-process-hint strong {
    display: block;
    margin-bottom: 6px;
}

.gos-process-hint p {
    margin: 0;
    color: var(--gos-muted);
    font-size: 13px;
    line-height: 1.45;
}

.gos-status-pill.is-danger {
    color: #9f1239;
    background: #ffe2e8;
    border-color: #f3b4c1;
}

.gos-kanban-board {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
}

.gos-kanban-column {
    flex: 0 0 280px;
    background: #fff;
    border: 1px solid var(--gos-line);
    border-radius: var(--gos-radius);
    box-shadow: 0 1px 0 rgba(20, 30, 45, 0.03);
}

.gos-kanban-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--gos-line-soft);
}

.gos-kanban-head strong {
    color: var(--gos-ink);
    font-size: 13px;
    font-weight: 760;
}

.gos-kanban-count {
    min-width: 26px;
    height: 24px;
    display: grid;
    place-items: center;
    color: #5d6674;
    background: #eef1f5;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 760;
}

.gos-kanban-items {
    display: grid;
    gap: 8px;
    padding: 10px;
}

.gos-kanban-card {
    display: block;
    padding: 10px 11px;
    color: #2a3240;
    text-decoration: none;
    background: #fafbfc;
    border: 1px solid var(--gos-line-soft);
    border-radius: 6px;
}

.gos-kanban-card:hover {
    color: var(--gos-purple);
    border-color: #d6c5d8;
}

.gos-kanban-card strong,
.gos-kanban-card small {
    display: block;
}

.gos-kanban-card strong {
    font-size: 14px;
    font-weight: 760;
}

.gos-kanban-card small {
    margin-top: 3px;
    color: var(--gos-muted);
    font-size: 12px;
    line-height: 1.35;
}

.gos-step-buttons {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 12px 16px 16px;
}

.gos-step-button {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 9px 10px;
    color: #2a3240;
    text-decoration: none;
    background: #fafbfc;
    border: 1px solid var(--gos-line-soft);
    border-radius: 6px;
}

.gos-step-index {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: #5b6472;
    background: #f3f5f8;
    border: 1px solid var(--gos-line);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 760;
}

.gos-step-button.is-active {
    background: #fff;
    border-color: #d6c5d8;
    box-shadow: 0 1px 0 rgba(20, 30, 45, 0.04);
}

.gos-step-button.is-active:hover {
    color: var(--gos-purple);
    border-color: var(--gos-purple);
}

.gos-step-button.is-active .gos-step-index {
    color: #fff;
    background: var(--gos-purple);
    border-color: var(--gos-purple);
}

.gos-step-button.is-disabled {
    color: #687383;
    background: #f3f5f8;
}

.gos-step-body {
    min-width: 0;
}

.gos-step-body strong,
.gos-step-body small {
    display: block;
}

.gos-step-body strong {
    color: #2a3240;
    font-size: 13px;
    font-weight: 720;
}

.gos-step-body small {
    margin-top: 2px;
    color: var(--gos-muted);
    font-size: 12px;
}

.gos-step-count {
    min-width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: #5d6674;
    background: #eef1f5;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 760;
}

.gos-step-button.is-active .gos-step-count {
    color: #fff;
    background: var(--gos-purple);
}

.gos-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.gos-photo-grid a {
    min-height: 88px;
    display: grid;
    place-items: end start;
    padding: 10px;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #315953, #714b67);
    border-radius: 6px;
    font-weight: 700;
}

.gos-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin: 8px 0 12px;
    padding: 5px 10px;
    color: #0f6e56;
    background: #dff5ee;
    border-radius: 999px;
    font-weight: 700;
}

.gos-note-form textarea {
    min-height: 90px;
    margin-bottom: 8px;
}

.gos-note-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.gos-note-list article {
    padding: 10px;
    background: #fafbfc;
    border: 1px solid var(--gos-line-soft);
    border-radius: 6px;
}

.gos-note-list span {
    color: var(--gos-muted);
    font-size: 11px;
}

.gos-note-list p {
    margin: 4px 0 0;
}

.gos-record-timeline {
    display: grid;
    gap: 0;
}

.gos-record-timeline article {
    position: relative;
    padding: 0 0 14px 20px;
}

.gos-record-timeline article::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 4px;
    bottom: -4px;
    width: 1px;
    background: var(--gos-line);
}

.gos-record-timeline article::after {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--gos-purple);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--gos-line);
}

.gos-record-timeline article:last-child {
    padding-bottom: 0;
}

.gos-record-timeline article:last-child::before {
    display: none;
}

.gos-record-timeline span {
    color: var(--gos-teal);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.gos-record-timeline p {
    margin: 2px 0;
    color: #3a4350;
}

.gos-record-timeline time {
    color: var(--gos-muted);
    font-size: 11px;
}

@media (max-width: 1120px) {
    .gos-workspace {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .gos-sidebar {
        padding-inline: 8px;
    }

    .gos-side-heading,
    .gos-side-link span:not(.gos-side-icon),
    .gos-sidebar-footer {
        display: none;
    }

    .gos-side-link {
        justify-content: center;
    }

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

    .gos-app-launcher {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gos-year-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gos-kpi-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gos-process-grid,
    .gos-account-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gos-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .gos-settings-layout {
        grid-template-columns: 1fr;
    }

    .gos-work-head {
        display: block;
    }

    .gos-work-actions {
        justify-content: flex-start;
        min-width: 0;
        margin-top: 12px;
    }

    .gos-master-detail {
        grid-template-columns: 1fr;
    }

    .gos-filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gos-filter-bar.gos-filter-bar-wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gos-detail-panel {
        position: static;
    }

    .gos-file-layout {
        grid-template-columns: 1fr;
    }

    .gos-process-page {
        grid-template-columns: 1fr;
    }

    .gos-process-side {
        position: static;
    }

    .gos-smart-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gos-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .gos-topbar {
        height: auto;
        min-height: 52px;
        flex-wrap: wrap;
        padding: 10px 12px;
    }

    .gos-brand {
        min-width: auto;
    }

    .gos-workspace {
        display: block;
    }

    .gos-sidebar {
        display: none;
    }

    .gos-page {
        padding: 18px 14px 26px;
    }

    .gos-subnav {
        padding-inline: 14px;
    }

    .gos-dashboard-head {
        display: block;
    }

    .gos-dashboard-grid,
    .gos-app-launcher,
    .gos-year-steps,
    .gos-grid-2,
    .gos-kpi-strip,
    .gos-quick-list,
    .gos-kpi-row,
    .gos-process-grid,
    .gos-account-grid {
        grid-template-columns: 1fr;
    }

    .gos-page-head,
    .gos-page-actions {
        display: block;
    }

    .gos-page-actions .btn {
        width: 100%;
        margin-top: 8px;
    }

    .gos-work-actions,
    .gos-work-actions .btn,
    .gos-select-control,
    .gos-search-control {
        width: 100%;
    }

    .gos-select-control select,
    .gos-search-control input {
        flex: 1;
    }

    .gos-work-tabs {
        overflow-x: auto;
    }

    .gos-detail-facts div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .gos-filter-bar {
        grid-template-columns: 1fr;
    }

    .gos-filter-bar.gos-filter-bar-wide {
        grid-template-columns: 1fr;
    }

    .gos-filter-bar .btn {
        width: 100%;
    }

    .gos-inline-search,
    .gos-inline-search input,
    .gos-inline-search .btn {
        width: 100%;
    }

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

    .gos-form-section-head {
        display: block;
    }

    .gos-form-section-head span {
        display: block;
        margin-top: 4px;
        text-align: left;
    }

    .gos-color-field {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .gos-color-field small,
    .gos-color-field .errorlist {
        grid-column: auto;
    }

    .gos-record-hero,
    .gos-record-actions,
    .gos-section-head {
        display: block;
    }

    .gos-record-actions .btn,
    .gos-record-actions form,
    .gos-section-actions .btn {
        width: 100%;
        margin-top: 8px;
    }

    .gos-smart-strip,
    .gos-facts-grid,
    .gos-person-grid,
    .gos-two-columns,
    .gos-photo-grid {
        grid-template-columns: 1fr;
    }

    .gos-list-row {
        display: block;
    }

    .gos-process-card {
        display: block;
    }

    .gos-process-card form,
    .gos-process-card .btn {
        width: 100%;
        margin-top: 10px;
    }

    .gos-row-actions {
        margin-top: 8px;
    }
}
