:root {
    --ink: #171717;
    --muted: #6b6b6b;
    --line: #d8d8d5;
    --soft-line: #ececea;
    --paper: #f4f4f1;
    --panel: #ffffff;
    --accent: #232323;
    --accent-soft: #f0efea;
    --focus-ring: rgba(23, 23, 23, 0.22);
    --danger: #8b1f1f;
    --danger-soft: #fee2e2;
    --warning: #b45309;
    --warning-soft: #ffedd5;
    --success: #15803d;
    --success-soft: #dcfce7;
    --info: #1d4ed8;
    --info-soft: #dbeafe;
    --radius: 10px;
    --shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 18px 46px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    color: var(--ink);
    background: var(--paper);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
    line-height: 1.55;
}

body {
    margin: 0;
    min-width: 0;
}

body.is-dialog-open {
    overflow: hidden;
}

a {
    color: inherit;
}

a,
button,
summary,
input,
select,
textarea,
[contenteditable="true"] {
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[contenteditable="true"]:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button {
    cursor: pointer;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    transform: translateY(-140%);
    padding: 9px 13px;
    border-radius: 999px;
    color: #fff;
    background: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    display: grid;
    grid-template-columns: auto 1fr minmax(220px, 340px) auto;
    gap: 28px;
    align-items: center;
    min-height: 76px;
    padding: 12px clamp(18px, 4vw, 60px);
    border-bottom: 1px solid var(--line);
    background: rgba(244, 244, 241, 0.96);
    backdrop-filter: blur(14px);
}

.brand {
    display: flex;
    gap: 11px;
    align-items: center;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #fff;
    background: var(--ink);
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 20px;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.16em;
}

.main-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.main-nav a,
.subnav a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active,
.subnav a:hover,
.subnav a.active {
    color: #fff;
    background: var(--ink);
}

.header-search input {
    width: 100%;
    padding: 10px 58px 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
}

.header-search {
    position: relative;
}

.header-search:focus-within input {
    border-color: var(--ink);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.search-shortcut {
    position: absolute;
    top: 50%;
    right: 10px;
    display: inline-flex;
    min-width: 38px;
    justify-content: center;
    padding: 2px 7px;
    transform: translateY(-50%);
    border: 1px solid var(--soft-line);
    border-radius: 999px;
    color: var(--muted);
    background: #f7f7f4;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.nav-toggle {
    display: none;
    padding: 8px 10px;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 6px;
    font-size: 12px;
    letter-spacing: 0.12em;
}

.page-shell {
    width: min(1500px, calc(100% - 40px));
    min-height: calc(100vh - 140px);
    margin: 0 auto;
    padding: 42px 0 64px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    padding: 22px clamp(20px, 4vw, 60px);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.hero,
.page-heading {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: end;
    margin-bottom: 30px;
}

.hero {
    min-height: 190px;
    padding: clamp(28px, 5vw, 64px);
    color: #fff;
    background:
        radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.18), transparent 26%),
        linear-gradient(135deg, #111 0%, #232323 56%, #38332c 100%);
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
}

.hero h1,
.page-heading h1 {
    margin: 4px 0 8px;
    font-family: Georgia, "Yu Mincho", serif;
    font-size: clamp(34px, 5vw, 68px);
    font-weight: 500;
    line-height: 1.08;
}

.page-heading h1 {
    font-size: clamp(34px, 4vw, 56px);
}

.page-heading p,
.hero-copy {
    margin: 0;
    color: var(--muted);
}

.hero-copy {
    color: #bdbdbd;
}

.eyebrow {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.hero .eyebrow {
    color: #bdbdbd;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel);
    font-weight: 700;
    text-decoration: none;
}

.button:hover {
    border-color: var(--ink);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.button-dark {
    border-color: var(--ink);
    color: #fff;
    background: var(--ink);
}

.hero .button-dark {
    border-color: #fff;
    color: var(--ink);
    background: #fff;
}

.button-danger {
    border-color: var(--danger);
    color: #fff;
    background: var(--danger);
}

.text-link {
    font-weight: 700;
    text-decoration: none;
}

.quick-panel,
.panel,
.form-section,
.empty-state,
.list-card {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.panel:hover,
.list-card:hover,
.content-card:hover,
.bookmark-card:hover,
.diary-card:hover,
.media-review-card:hover,
.review-card:hover,
.credit-card-item:hover,
.asset-summary-card:hover {
    border-color: #c8c8c3;
    box-shadow: var(--shadow-hover);
}

.quick-panel {
    display: grid;
    grid-template-columns: minmax(180px, 0.5fr) 2fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
    padding: 24px;
}

.quick-panel h2,
.panel h2,
.form-section h2 {
    margin: 2px 0 0;
    font-family: Georgia, "Yu Mincho", serif;
    font-weight: 500;
}

.quick-form {
    display: grid;
    grid-template-columns: 1fr 160px 130px auto;
    gap: 10px;
}

.quick-form input,
.quick-form select,
.filter-bar input,
.filter-bar select,
.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

.field textarea {
    resize: vertical;
}

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

.panel {
    padding: 24px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: start;
    margin-bottom: 18px;
}

.panel-header-actions,
.dashboard-hero-actions {
    display: flex;
    gap: 9px;
    align-items: center;
}

.dashboard-hero-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dashboard-edit-button {
    border-color: #fff;
    color: #fff;
    background: transparent;
}

.dashboard-edit-button:hover {
    border-color: #fff;
    color: var(--ink);
    background: #fff;
}

.dashboard-editor {
    margin-bottom: 24px;
    border: 2px solid var(--ink);
}

.dashboard-editor-copy {
    margin: -6px 0 18px;
    color: var(--muted);
    font-size: 13px;
}

.dashboard-add-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.dashboard-add-grid form {
    margin: 0;
}

.dashboard-add-grid button {
    display: flex;
    width: 100%;
    min-height: 58px;
    gap: 10px;
    align-items: center;
    padding: 11px 13px;
    border: 1px dashed var(--muted);
    background: #fafafa;
    border-radius: 7px;
    text-align: left;
}

.dashboard-add-grid button:hover {
    border-color: var(--ink);
    background: #efefec;
}

.dashboard-add-grid button span {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--ink);
    border-radius: 50%;
    font-size: 18px;
}

.dashboard-add-grid button strong {
    font-size: 12px;
}

.dashboard-widget-action {
    margin: 0;
}

.dashboard-widget-action button {
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--ink);
    color: var(--ink);
    background: #fff;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
}

.dashboard-widget-action button:hover {
    color: #fff;
    background: var(--ink);
}

.quick-panel.dashboard-widget {
    position: relative;
}

.quick-panel > .dashboard-widget-action {
    position: absolute;
    top: 12px;
    right: 12px;
}

.count {
    display: grid;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    place-items: center;
    border: 1px solid var(--ink);
    border-radius: 50%;
    font-family: Georgia, serif;
}

.compact-list {
    border-top: 1px solid var(--soft-line);
}

.compact-task {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 13px 0 13px 12px;
    border-bottom: 1px solid var(--soft-line);
    border-left: 3px solid #aaa;
}

.compact-task.priority-5 {
    border-left-color: #111;
}

.compact-task.priority-4 {
    border-left-color: #555;
}

.compact-task-main a,
.task-title {
    font-weight: 700;
    text-decoration: none;
}

.compact-task-main span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.icon-button {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
}

.icon-button:hover {
    color: #fff;
    background: var(--ink);
}

.planned-panel {
    margin-top: 24px;
}

.phase-two-grid {
    margin-top: 24px;
}

.phase-three-grid {
    margin-top: 24px;
}

.dashboard-span {
    grid-column: 1 / -1;
}

.panel-link {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.panel-link:hover {
    color: var(--ink);
}

.panel-empty {
    padding: 22px;
    border: 1px dashed var(--line);
    background: #fafafa;
    border-radius: 8px;
}

.panel-empty p {
    margin: 0 0 6px;
    color: var(--muted);
}

.panel-empty a {
    font-weight: 700;
}

.compact-content {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid var(--soft-line);
}

.compact-content > div > a {
    font-weight: 700;
    text-decoration: none;
}

.compact-content > div > span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.favorite-star {
    color: var(--ink);
    font-size: 18px;
}

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

.fixed-link-grid a {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    background: #fafafa;
    border-radius: 7px;
    text-decoration: none;
}

.fixed-link-grid a:hover {
    border-color: var(--ink);
}

.fixed-link-grid span {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-diary-panel {
    margin-top: 24px;
}

.phase-five-grid {
    margin-top: 24px;
}

.renewal-compact > strong {
    flex: 0 0 auto;
    padding: 5px 9px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    font-size: 11px;
}

.dashboard-asset-value {
    display: grid;
    gap: 5px;
    padding: 22px;
    border: 1px solid var(--line);
    background: #fafafa;
    border-radius: 8px;
}

.dashboard-asset-value span,
.dashboard-asset-value small {
    color: var(--muted);
    font-size: 12px;
}

.dashboard-asset-value strong {
    font-family: Georgia, "Yu Mincho", serif;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 500;
}

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

.recent-diary-grid a {
    display: flex;
    min-height: 130px;
    padding: 15px;
    border: 1px solid var(--line);
    background: #fafafa;
    border-radius: 7px;
    flex-direction: column;
    text-decoration: none;
}

.contract-filter,
.card-filter,
.asset-filter {
    grid-template-columns: minmax(260px, 1fr) minmax(150px, 220px) auto;
}

.contract-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contract-card {
    gap: 12px;
}

.contract-card.is-overdue {
    border-color: var(--danger);
}

.renewal-mode {
    color: var(--muted);
    font-size: 11px;
}

.money-display {
    display: block;
    font-family: Georgia, "Yu Mincho", serif;
    font-size: 28px;
    font-weight: 500;
}

.money-display small {
    color: var(--muted);
    font-family: inherit;
    font-size: 12px;
}

.renewal-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--soft-line);
    border-bottom: 1px solid var(--soft-line);
    color: var(--muted);
    font-size: 12px;
}

.renewal-row b {
    color: var(--ink);
}

.security-notice {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 20px;
    padding: 14px 18px;
    border: 1px solid var(--ink);
    background: #fff;
    border-radius: 8px;
}

.security-notice span {
    color: var(--muted);
    font-size: 12px;
}

.card-visual-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.credit-card-item {
    display: grid;
    grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.credit-card-face {
    display: flex;
    min-height: 210px;
    padding: 24px;
    color: #fff;
    background: var(--ink);
    flex-direction: column;
}

.credit-card-face span,
.credit-card-face small {
    color: #bdbdbd;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.credit-card-face strong {
    margin: auto 0 12px;
    font-family: Georgia, "Yu Mincho", serif;
    font-size: 24px;
    font-weight: 500;
}

.credit-card-details {
    display: flex;
    padding: 22px;
    flex-direction: column;
}

.credit-card-details p {
    margin: 0 0 13px;
    color: var(--muted);
}

.credit-card-details p b {
    display: block;
    color: var(--ink);
    font-size: 11px;
}

.credit-card-details .content-actions {
    margin-top: auto;
}

.asset-summary-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 18px;
    margin-bottom: 24px;
}

.asset-summary-card {
    display: flex;
    min-height: 130px;
    padding: 22px;
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex-direction: column;
}

.asset-summary-card span,
.asset-summary-card small {
    color: var(--muted);
    font-size: 12px;
}

.asset-summary-card strong {
    margin-top: auto;
    font-family: Georgia, "Yu Mincho", serif;
    font-size: clamp(22px, 3vw, 38px);
    font-weight: 500;
}

.asset-summary-main {
    color: #fff;
    background: var(--ink);
}

.asset-summary-main span {
    color: #bdbdbd;
}

.asset-summary-card .is-negative {
    color: var(--danger);
}

.asset-chart-panel {
    margin-bottom: 24px;
}

.asset-chart-scroll {
    overflow-x: auto;
    padding-bottom: 6px;
}

.asset-chart-header {
    align-items: flex-start;
    gap: 16px;
}

.asset-chart-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.asset-chart-modes .button {
    padding: 7px 10px;
    font-size: 12px;
}

.asset-chart-modes .button.active {
    color: #fff;
    background: var(--ink);
}

.asset-chart-mode-help {
    margin: -8px 0 10px;
    color: var(--muted);
    font-size: 12px;
}

.asset-chart {
    display: block;
    max-width: none;
    background: linear-gradient(to bottom, #fafafa, #fff);
    border-radius: 8px;
}

.asset-chart text {
    fill: var(--muted);
    font-size: 10px;
}

.chart-amount-label {
    opacity: 0;
}

.chart-amount-label.is-key {
    opacity: 1;
}

.chart-dot:hover + .chart-amount-label {
    opacity: 1;
}

.chart-missing-label {
    opacity: .7;
    font-size: 9px;
}

[id^="item-"] {
    scroll-margin-top: 88px;
}

.chart-change-label {
    font-size: 9px;
    opacity: .78;
}

.chart-change-label.is-positive {
    fill: #166534;
}

.chart-change-label.is-negative {
    fill: var(--danger);
}

body.asset-amounts-hidden .asset-summary-card strong,
body.asset-amounts-hidden .asset-table strong,
body.asset-amounts-hidden .asset-table [data-label="前回記録差"],
body.asset-amounts-hidden .asset-chart .chart-y-label,
body.asset-amounts-hidden .asset-chart .chart-amount-label,
body.asset-amounts-hidden .asset-chart .chart-change-label {
    filter: blur(7px);
    user-select: none;
}

.chart-axis {
    stroke: var(--line);
    stroke-width: 1;
}

.chart-grid {
    stroke: var(--line);
    stroke-width: 1;
    stroke-dasharray: 3 4;
}

.asset-chart .chart-y-label {
    font-size: 9px;
    font-weight: 700;
}

.chart-line {
    fill: none;
    stroke: var(--ink);
    stroke-width: 3;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.chart-line-yearly {
    stroke-dasharray: 7 4;
}

.chart-dot {
    fill: #fff;
    stroke: var(--ink);
    stroke-width: 3;
}

.asset-list-section {
    margin-top: 34px;
}

.asset-list-section .section-title {
    margin-bottom: 16px;
}

.asset-table strong {
    white-space: nowrap;
}

.recent-diary-grid a:hover {
    border-color: var(--ink);
}

.recent-diary-grid span,
.recent-diary-grid small {
    color: var(--muted);
    font-size: 11px;
}

.recent-diary-grid strong {
    margin: 12px 0 8px;
}

.diary-filter-bar,
.attachment-filter-bar {
    grid-template-columns: minmax(240px, 1fr) 190px auto;
}

.diary-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
    align-items: start;
}

.diary-day-group,
.diary-day-cards {
    min-width: 0;
}

.diary-day-cards {
    display: grid;
    gap: 12px;
}

.diary-date-heading {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ink);
    font-family: Georgia, "Yu Mincho", serif;
    font-size: 22px;
    font-weight: 500;
}

.diary-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 22px;
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.diary-card h3 {
    margin: 5px 0 10px;
    font-family: Georgia, "Yu Mincho", serif;
    font-size: 24px;
    font-weight: 500;
}

.diary-card h3 a {
    text-decoration: none;
}

.diary-card-main > p:not(.eyebrow) {
    margin: 0;
}

.diary-card-side {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 12px;
}

.diary-card-side > span {
    color: var(--muted);
    font-size: 12px;
}

.diary-card-side .content-actions {
    margin: 0 0 0 auto;
}

.diary-body img {
    display: block;
    width: auto !important;
    max-width: min(100%, 760px);
    max-height: 70vh;
    object-fit: contain;
}

.diary-tag-controls {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(160px, 1fr) auto;
    gap: 8px;
}

.diary-selected-tags { min-height: 32px; margin-top: 8px; }
.diary-tag-chip { border: 1px solid var(--line); background: var(--surface-muted, #f3f4f6); border-radius: 999px; padding: 5px 10px; cursor: pointer; }

@media (min-width: 1500px) {
    .diary-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .diary-list { grid-template-columns: minmax(0, 1fr); }
    .diary-tag-controls { grid-template-columns: minmax(0, 1fr); }
}

.attachment-preview-dialog {
    width: min(1100px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: var(--panel);
    box-shadow: 0 24px 80px rgb(0 0 0 / 35%);
}

.attachment-preview-dialog::backdrop {
    background: rgb(0 0 0 / 72%);
}

.attachment-preview-dialog-header,
.attachment-preview-dialog-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
}

.attachment-preview-dialog-header {
    border-bottom: 1px solid var(--line);
}

.attachment-preview-dialog-header h2 {
    margin: 0;
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-preview-dialog-body {
    display: grid;
    min-height: min(62vh, 620px);
    place-items: center;
    padding: 16px;
    background: #181818;
    overflow: auto;
}

.attachment-preview-dialog-body img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100dvh - 190px);
    object-fit: contain;
    transform: scale(var(--attachment-preview-scale, 1));
    transform-origin: center;
    transition: transform 120ms ease;
}

.attachment-preview-dialog-body iframe {
    width: 100%;
    height: calc(100dvh - 190px);
    min-height: min(62vh, 620px);
    border: 0;
    background: #fff;
}

.attachment-preview-dialog-actions {
    flex-wrap: wrap;
    justify-content: space-between;
    border-top: 1px solid var(--line);
}

.attachment-preview-navigation,
.attachment-preview-zoom {
    display: flex;
    align-items: center;
    gap: 8px;
}

.attachment-preview-navigation [data-attachment-preview-position] {
    min-width: 4.5em;
    color: var(--muted);
    text-align: center;
}

.attachment-preview-zoom .button {
    min-width: 44px;
}

[data-attachment-preview],
.diary-body img[src*="/attachments/download"],
.note-body img[src*="/attachments/download"],
.rich-content img[src*="/attachments/download"] {
    cursor: zoom-in;
}

.bookmark-check-status { font-weight: 700; }
.bookmark-check-status-ok { color: var(--success, #18703c); }
.bookmark-check-status-failed { color: var(--danger, #a12622); }
.bookmark-check-status-auth_required,
.bookmark-check-status-access_denied { color: var(--muted); }

.today-contract-notice { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.today-contract-notice:last-child { border-bottom: 0; padding-bottom: 0; }
.today-contract-notice > a { display: flex; flex-direction: column; gap: 3px; }
.today-contract-notice .content-actions { margin-top: 7px; }
.inactive-card-section { margin-top: 20px; }
.inactive-card-section > summary { cursor: pointer; font-weight: 800; }
.inactive-card-section .card-visual-grid { margin-top: 16px; opacity: .82; }
.asset-chart-advanced { position: relative; }
.asset-chart-advanced > summary { cursor: pointer; padding: 9px 12px; color: var(--muted); }
.asset-chart-advanced > div { display: flex; gap: 8px; margin-top: 8px; }


body.asset-amounts-hidden .asset-table [data-label="メモ"],
body.asset-amounts-hidden .asset-yearly-detail p { visibility: hidden; }
