:root {
    --osten-ink: #142033;
    --osten-muted: #5c6778;
    --osten-paper: #f4f6f8;
    --osten-card: #ffffff;
    --osten-line: #e2e6ec;
    --osten-copper: #c45c26;
    --osten-copper-dark: #9a4318;
}

html,
body {
    background: #d5dbe3;
    color: var(--osten-ink);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.app-shell {
    width: min(100%, 430px);
    min-height: 100vh;
    margin: 0 auto;
    background: var(--osten-paper);
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 0 1px rgba(20, 32, 51, 0.08);
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: var(--osten-ink);
    color: #fff;
}

.app-header a {
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark iconify-icon {
    font-size: 28px;
    color: #f0b429;
}

.brand-name {
    font-family: Outfit, "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
    line-height: 1.1;
}

.brand-sub {
    display: block;
    color: #c5ced8;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.icon-button {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.icon-button iconify-icon {
    font-size: 22px;
}

button.icon-button {
    border: 0;
    padding: 0;
}

.app-main {
    flex: 1;
    padding: 16px 16px 24px;
}

.status-banner {
    margin-bottom: 12px;
    border: 0;
    border-radius: 12px;
    background: #e7f2ea;
    color: #1d4d32;
}

.project-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--osten-line);
    border-radius: 16px;
    overflow: hidden;
    background: var(--osten-card);
    table-layout: fixed;
}

.project-table th,
.project-table td {
    padding: 10px 12px;
    border-top: 1px solid var(--osten-line);
    text-align: left;
    vertical-align: middle;
}

.project-table th:first-child,
.project-table td:first-child {
    width: 64px;
    padding-right: 0;
    padding-left: 10px;
}

.project-table th:last-child,
.project-table td:last-child {
    width: 7.6rem;
    padding-left: 4px;
    padding-right: 10px;
    font-size: 0.92rem;
}

.project-table thead th {
    border-top: 0;
    background: #eef1f5;
    color: var(--osten-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.project-table tbody tr {
    position: relative;
}

.project-table tbody tr.is-hidden {
    color: var(--osten-muted);
}

.project-table tbody tr.is-hidden img,
.project-table tbody tr.is-hidden .project-photo {
    filter: grayscale(1);
    opacity: 0.7;
}

.project-table img,
.project-photo {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    background: #d7dde5;
    display: block;
}

.project-photo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5c6b7a;
    font-size: 22px;
}

.project-name::after {
    content: "";
    position: absolute;
    inset: 0;
}

.project-name {
    display: block;
    color: inherit;
    font-family: Outfit, "Segoe UI", sans-serif;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

.project-meta {
    display: block;
    margin-top: 2px;
    color: var(--osten-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.project-date {
    color: var(--osten-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.bottom-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--osten-paper) 72%, rgba(244, 246, 248, 0));
}

.btn-osten {
    --bs-btn-bg: var(--osten-copper);
    --bs-btn-border-color: var(--osten-copper);
    --bs-btn-hover-bg: var(--osten-copper-dark);
    --bs-btn-hover-border-color: var(--osten-copper-dark);
    --bs-btn-active-bg: var(--osten-copper-dark);
    --bs-btn-active-border-color: var(--osten-copper-dark);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    border-radius: 14px;
    min-height: 48px;
    font-family: Outfit, "Segoe UI", sans-serif;
    font-weight: 700;
}

.btn-osten-ghost {
    border-radius: 14px;
    min-height: 48px;
    border: 1px solid var(--osten-ink);
    background: #fff;
    color: var(--osten-ink);
    font-family: Outfit, "Segoe UI", sans-serif;
    font-weight: 700;
}

.btn-osten-danger {
    border-radius: 14px;
    min-height: 48px;
    border: 1px solid #b42318;
    background: #fff;
    color: #b42318;
    font-family: Outfit, "Segoe UI", sans-serif;
    font-weight: 700;
}

.page-title {
    margin: 0 0 4px;
    font-family: Outfit, "Segoe UI", sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
}

.page-lead {
    margin: 0 0 16px;
    color: var(--osten-muted);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
    color: var(--osten-ink);
    font-weight: 600;
    text-decoration: none;
}

.form-label {
    font-weight: 700;
}

.form-control,
.form-select {
    min-height: 48px;
    border-radius: 12px;
    border-color: #cfd6df;
    font-size: 16px;
}

textarea.form-control {
    min-height: 104px;
}

.photo-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 120px;
    border: 1.5px dashed #b7c0cc;
    border-radius: 16px;
    background: #fff;
    color: var(--osten-muted);
    text-align: center;
    cursor: pointer;
}

.photo-picker iconify-icon {
    font-size: 32px;
    color: var(--osten-copper);
}

.photo-preview {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
}

.photo-preview img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 12px;
    flex: 0 0 auto;
}

.elaborated {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff7ef;
    border: 1px solid #f0d3bf;
}

.story-block {
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--osten-line);
}

.story-block--warning {
    background: #fff6df;
    border-color: #f0c36a;
}

.story-block--warning h2 {
    color: #8a5a00;
}

.story-block--info {
    background: #e8f4fb;
    border-color: #9ecae6;
}

.story-block--info h2 {
    color: #1a5278;
}

.story-block--success {
    background: #e8f6ec;
    border-color: #8fceb0;
}

.story-block--success h2 {
    color: #1b6b3a;
}

.story-block h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-family: Outfit, "Segoe UI", sans-serif;
}

.story-block h2 iconify-icon {
    font-size: 1.2rem;
    flex: 0 0 auto;
}

.story-block p {
    margin: 0;
}

.carousel-item img {
    height: 240px;
    width: 100%;
    object-fit: cover;
}

.login-card {
    margin-top: 12px;
    padding: 18px 16px 8px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--osten-line);
}

.website-choice {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding: 14px 16px;
    border: 1px solid var(--osten-line);
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-align: left;
}

.website-choice strong {
    display: block;
    font-family: Outfit, "Segoe UI", sans-serif;
}

.website-choice span {
    color: var(--osten-muted);
    font-size: 0.85rem;
}

.website-choice.is-selected {
    border-color: var(--osten-copper, #c45c26);
}
