.panel,
.result-card,
.search-panel,
.detail-hero,
.metadata-panel,
.auth-card {
    border: 1px solid rgba(220, 230, 224, 0.92);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.panel,
.search-panel,
.detail-hero,
.metadata-panel {
    padding: 18px;
}

.capture-panel {
    display: grid;
    gap: 16px;
}

.section-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.section-title p {
    margin-bottom: 0;
    color: var(--muted);
}

.section-title span,
.status-pill {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid rgba(37, 106, 91, 0.16);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    color: #33433d;
    font-size: 13px;
    font-weight: 760;
}

textarea,
input,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfc;
    color: var(--text);
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
    min-height: 232px;
    padding: 15px;
    resize: vertical;
}

input,
select {
    min-height: 48px;
    padding: 0 14px;
}

textarea:focus,
input:focus,
select:focus {
    border-color: rgba(37, 106, 91, 0.72);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 106, 91, 0.12);
}

.option-grid {
    display: grid;
    gap: 14px;
}

.primary-button,
.small-button,
.action-row button,
.filter-row button {
    border-radius: 8px;
    font-weight: 800;
}

.primary-button {
    min-height: 50px;
    border: 0;
    padding: 0 18px;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    box-shadow: 0 12px 26px rgba(37, 106, 91, 0.22);
    color: #ffffff;
}

.small-button {
    display: inline-grid;
    min-width: 76px;
    min-height: 42px;
    place-items: center;
    border: 0;
    background: var(--accent-strong);
    color: #ffffff;
}

.confirmation-strip {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    margin-top: 16px;
    padding: 15px;
    border: 1px solid rgba(37, 106, 91, 0.18);
    border-radius: 8px;
    background: linear-gradient(135deg, #f2fbf6, #ffffff);
    box-shadow: var(--shadow-soft);
}

.confirmation-strip div {
    display: grid;
    gap: 3px;
}

.saved-dot {
    width: 11px;
    height: 11px;
    margin-top: 7px;
    border-radius: 999px;
    background: #1f9d62;
    box-shadow: 0 0 0 5px rgba(31, 157, 98, 0.11);
}

.search-panel {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.filter-row,
.filter-summary,
.action-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.filter-row button,
.filter-summary span,
.action-row button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: #f8fbf9;
    color: #33433d;
    white-space: nowrap;
}

.filter-row button:first-child,
.filter-summary span:first-child {
    border-color: rgba(37, 106, 91, 0.22);
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.filter-summary {
    margin-bottom: 16px;
}

.filter-summary span {
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 720;
}

.result-list {
    display: grid;
    gap: 12px;
}

.result-card {
    display: grid;
    gap: 8px;
    padding: 15px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.result-card:hover {
    border-color: rgba(37, 106, 91, 0.28);
    box-shadow: 0 18px 44px rgba(21, 41, 34, 0.11);
    transform: translateY(-1px);
}

.result-topline {
    display: grid;
    gap: 5px;
}

.result-card a {
    color: var(--heading);
    font-size: 17px;
    font-weight: 820;
    line-height: 1.2;
}

.result-card p {
    margin: 0;
    color: var(--muted);
}

.result-card time {
    color: #7b8a84;
    font-size: 13px;
    font-weight: 650;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid rgba(37, 106, 91, 0.1);
    border-radius: 999px;
    background: var(--surface-tint);
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 740;
}

.detail-hero {
    margin-bottom: 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 242, 0.72)),
        var(--surface);
}

.detail-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.back-link {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 780;
}

.memory-cue {
    max-width: 680px;
    color: var(--muted);
    font-size: 18px;
}

.detail-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
}

.detail-grid .panel p {
    margin-bottom: 0;
    color: #43534d;
}

.metadata-panel {
    display: grid;
    gap: 0;
    margin-bottom: 14px;
}

.metadata-panel div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 46px;
    border-bottom: 1px solid var(--line);
}

.metadata-panel div:last-child {
    border-bottom: 0;
}

.metadata-panel span {
    color: var(--muted);
}

.metadata-panel strong {
    color: var(--heading);
    text-align: right;
}

.action-row button {
    border: 1px solid var(--line);
    background: #ffffff;
}

.action-row button:first-child {
    border-color: rgba(37, 106, 91, 0.24);
    background: var(--accent-strong);
    color: #ffffff;
}

@media (min-width: 620px) {
    .result-topline {
        grid-template-columns: 1fr auto;
        align-items: baseline;
    }
}

@media (min-width: 760px) {
    .panel,
    .search-panel,
    .detail-hero,
    .metadata-panel {
        padding: 24px;
    }

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

    .result-list {
        gap: 14px;
    }
}
