/* Dashboard im Hub */
.welcome.welcome-compact {
    padding-bottom: 36px;
}

.dash-section {
    margin-bottom: 56px;
}

.dash-login {
    margin: -12px 0 40px;
    color: var(--muted);
    font-size: 14px;
}

.dash-people {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.dash-person {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.15s;
}

.dash-person:hover {
    border-color: var(--accent);
}

.dash-person span {
    color: var(--muted);
    font-size: 13px;
}

.dash-person.overdue span {
    color: #b5452f;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.dash-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.dash-card.running {
    border-color: var(--accent);
}

.dash-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: inherit;
    text-decoration: none;
}

.dash-card-head h3 {
    margin: 0;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dash-arrow {
    color: var(--muted);
    font-size: 20px;
    line-height: 1;
}

.dash-card-head:hover .dash-arrow {
    color: var(--accent);
}

.dash-row {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
    font-size: 14px;
}

.dash-label {
    color: var(--muted);
    font-size: 13px;
}

.dash-value {
    overflow-wrap: anywhere;
}

.dash-today .dash-value {
    font-weight: 600;
}

.dash-note {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.dash-note.warn {
    color: #b5452f;
}

.dash-empty {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.dash-big {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.dash-big strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.1;
}

.dash-big .dash-state {
    font-size: 24px;
}

.dash-big span {
    color: var(--muted);
    font-size: 14px;
}

.dash-progress {
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: var(--line);
}

.dash-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
}

.dash-tasks {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dash-tasks li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: opacity 0.3s;
}

.dash-tasks li.done {
    opacity: 0.4;
    text-decoration: line-through;
}

.dash-check {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    padding: 0;
    border: 2px solid var(--muted);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.dash-check:hover,
.dash-tasks li.done .dash-check {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.overdue .dash-check {
    border-color: #b5452f;
}

.dash-task-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: 14px;
}

.dash-task-text small {
    color: var(--muted);
    font-size: 12px;
}

.overdue .dash-task-text small {
    color: #b5452f;
}

/* „Du bist …“ und „Deine Anwendungen“ */
.person-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 18px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
}

.person-switch-label {
    padding: 0 8px 0 10px;
    color: var(--muted);
    font-size: 13px;
}

.person-option {
    padding: 7px 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.person-option:hover {
    background: var(--accent-soft);
}

.person-option[aria-checked="true"] {
    background: var(--accent);
    color: var(--surface);
}

.my-apps {
    margin: 0 0 28px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
}

.my-apps-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    list-style: none;
}

.my-apps-summary::-webkit-details-marker {
    display: none;
}

.my-apps-summary:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 15px;
}

.my-apps-summary .eyebrow {
    display: block;
    margin: 0 0 2px;
}

.my-apps-title {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
}

.my-apps-note {
    margin-left: auto;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    text-align: right;
}

.my-apps-toggle {
    color: var(--muted);
    font-size: 22px;
    transition: transform 0.15s;
}

.my-apps[open] .my-apps-toggle {
    transform: rotate(90deg);
}

.my-page-link {
    display: inline-block;
    margin: 0 18px 16px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.my-page-link:hover {
    text-decoration: underline;
}

.my-app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    padding: 0 18px 12px;
}

.my-app-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2px 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--page);
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.15s;
}

.my-app-card:hover {
    border-color: var(--accent);
}

.my-app-card:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.my-app-head {
    display: contents;
}

/* .app-title/.app-description haben im Hub benannte Rasterflächen – hier zurücksetzen */
.my-app-card .app-title {
    grid-area: auto;
    grid-column: 1;
    font-size: 15px;
    font-weight: 600;
}

.my-app-card .app-description {
    grid-area: auto;
    grid-column: 1;
    -webkit-line-clamp: 1;
}

.my-app-arrow {
    grid-row: 1 / span 3;
    grid-column: 2;
    color: var(--muted);
    font-size: 20px;
}

.my-app-info {
    grid-column: 1;
    justify-self: start;
    margin-top: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
}
