.button {
  display: inline-flex;
  min-height: 41px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary { color: #190d05; background: linear-gradient(135deg, #ff8a36, #ff5a0a); box-shadow: 0 5px 22px rgb(255 99 16 / 25%); }
.button-primary:hover { background: linear-gradient(135deg, #ffa052, #ff6b16); box-shadow: 0 7px 28px rgb(255 99 16 / 34%); }
.sidebar-create { width: 100%; justify-content: flex-start; }
.sidebar-create > span { font-size: 19px; line-height: 1; }
.top-create { white-space: nowrap; }
.button-quiet { border-color: var(--color-line); color: #c3c1c7; background: rgb(255 255 255 / 3%); }
.button-quiet:hover { background: rgb(255 255 255 / 7%); }

.notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 15px; }
.note-card {
  position: relative;
  min-height: 205px;
  overflow: hidden;
  padding: 19px 18px 16px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 6%), transparent 58%),
    rgb(255 255 255 / 3%);
  box-shadow: 0 12px 35px rgb(0 0 0 / 12%);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}
.note-card:hover { transform: translateY(-3px); border-color: rgb(255 255 255 / 15%); background-color: rgb(255 255 255 / 5%); }
.note-card.is-entering { animation: card-in 260ms cubic-bezier(.2, .75, .25, 1) both; }
.note-card.is-removing { pointer-events: none; animation: card-out 180ms ease-in both; }
.note-card::before { position: absolute; top: 0; left: 18px; width: 28px; height: 2px; border-radius: 0 0 3px 3px; background: var(--note-accent, var(--color-accent)); content: ""; }
.note-card[data-color="orange"] { --note-accent: var(--color-accent); }
.note-card[data-color="violet"] { --note-accent: #b18cff; }
.note-card[data-color="blue"] { --note-accent: #72b9ff; }
.note-card[data-color="green"] { --note-accent: #85ce9d; }
.note-card[data-color="yellow"] { --note-accent: #e8c96d; }
.note-card-header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.note-card h3 { margin: 0; font: 650 14px var(--font-display); line-height: 1.45; }
.note-actions { display: flex; flex: 0 0 auto; gap: 3px; margin: -5px -5px 0 0; opacity: .65; transition: opacity 160ms ease; }
.note-card:hover .note-actions, .note-actions:focus-within { opacity: 1; }
.icon-button { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid transparent; border-radius: 9px; color: #aaa8af; background: transparent; cursor: pointer; font-size: 16px; line-height: 1; }
.icon-button:hover { border-color: var(--color-line); color: var(--color-text); background: rgb(255 255 255 / 5%); }
.icon-button.is-pinned { color: var(--color-accent); }
.icon-button.danger:hover { color: #ff8a86; background: rgb(255 90 85 / 9%); }
.note-content { margin: 15px 0 22px; color: #b5b3b9; font-size: 12px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.note-content.is-empty { color: #77757d; font-style: italic; }
.note-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; color: #77757d; font-size: 10px; }
.note-date { display: inline-flex; align-items: center; gap: 6px; }
.note-date::before { width: 5px; height: 5px; border-radius: 50%; background: var(--note-accent, var(--color-accent)); content: ""; }
.pinned-label { color: var(--color-accent); font-size: 10px; }
.note-folder-label { margin-left: auto; overflow: hidden; max-width: 100px; padding: 3px 7px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 20px; color: #b4b6bd; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.empty-state { display: grid; max-width: 390px; justify-items: center; margin: 95px auto 0; text-align: center; }
.empty-illustration { position: relative; display: grid; width: 78px; height: 78px; place-items: center; margin-bottom: 19px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 25px; background: linear-gradient(145deg, rgb(255 107 22 / 18%), rgb(255 255 255 / 3%)); color: var(--color-accent); font-size: 31px; transform: rotate(-5deg); }
.empty-illustration span:last-child { position: absolute; right: 10px; bottom: 8px; color: #f4c5ad; font-size: 20px; }
.empty-state h3 { margin: 0 0 8px; font: 650 17px var(--font-display); }
.empty-state p { margin: 0 0 19px; color: var(--color-muted); font-size: 12px; line-height: 1.7; }

.note-dialog { width: min(550px, calc(100% - 32px)); max-width: none; padding: 0; border: 1px solid rgb(255 255 255 / 11%); border-radius: 20px; color: var(--color-text); background: #1a1b1f; box-shadow: 0 24px 100px rgb(0 0 0 / 55%); }
.note-dialog[open] { animation: dialog-in 180ms cubic-bezier(.2, .75, .25, 1) both; }
.note-dialog::backdrop { background: rgb(5 5 7 / 68%); backdrop-filter: blur(7px); }
.note-form { padding: 25px; }
.account-dialog { width: min(760px, calc(100% - 32px)); max-height: min(88vh, 860px); overflow: hidden; }
.account-dialog[open] { animation: dialog-in 210ms cubic-bezier(.2, .75, .25, 1) both; }
.account-modal { display: flex; max-height: min(88vh, 860px); flex-direction: column; }
.account-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 23px 26px 17px; border-bottom: 1px solid var(--color-line); }
.account-modal-header .eyebrow { margin: 0 0 5px; color: var(--color-accent); font-size: 9px; font-weight: 750; letter-spacing: .13em; }
.account-modal-header h2 { margin: 0; font: 700 20px var(--font-display); letter-spacing: -.025em; }
.account-modal-summary { display: flex; min-height: 86px; align-items: center; gap: 14px; padding: 14px 26px; border-bottom: 1px solid var(--color-line); background: linear-gradient(105deg, var(--color-accent-soft), transparent 65%); }
.account-avatar-wrap { position: relative; display: grid; width: 50px; height: 50px; flex: 0 0 50px; place-items: center; overflow: hidden; border: 1px solid rgb(244 91 24 / 25%); border-radius: 17px; color: #fff; background: linear-gradient(145deg, #ff9a5c, #e94d10); box-shadow: 0 6px 18px rgb(244 91 24 / 18%); }
.account-avatar-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.account-avatar-wrap img[hidden] { display: none; }
.account-avatar-wrap span { font: 750 19px var(--font-display); }
.account-summary-copy { display: grid; min-width: 0; gap: 4px; }
.account-summary-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account-summary-copy > span { overflow: hidden; color: var(--color-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.account-plan-tag { margin-left: auto; padding: 6px 8px; border: 1px solid var(--color-line); border-radius: 999px; color: var(--color-subtle); font-size: 8px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.account-modal-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; overflow: auto; padding: 18px 22px 24px; overscroll-behavior: contain; }
.account-section { min-width: 0; padding: 16px; border: 1px solid var(--color-line); border-radius: 15px; background: var(--color-panel-soft); }
.account-section-heading { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; }
.account-section-icon { display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; border: 1px solid rgb(244 91 24 / 18%); border-radius: 10px; color: var(--color-accent); background: var(--color-accent-soft); font-size: 14px; }
.account-section-heading h3 { margin: 1px 0 4px; font: 700 13px var(--font-display); }
.account-section-heading p { margin: 0; color: var(--color-muted); font-size: 9px; line-height: 1.5; }
.account-form { display: grid; gap: 2px; }
.account-form .field-label { margin-top: 10px; }
.account-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; }
.account-form-actions > span { color: var(--color-subtle); font-size: 9px; line-height: 1.5; }
.account-form-actions .button, .account-delete-row .button { min-height: 34px; flex: 0 0 auto; padding: 0 11px; font-size: 10px; }
.account-avatar-edit { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0 12px; border-bottom: 1px solid var(--color-line); }
.account-avatar-edit > div { display: grid; gap: 3px; }
.account-avatar-edit strong { font-size: 10px; }
.account-avatar-edit span { color: var(--color-subtle); font-size: 9px; line-height: 1.45; }
.account-avatar-edit .button { min-height: 31px; padding: 0 9px; font-size: 9px; white-space: nowrap; }
.account-feedback { display: none; margin: 7px 0 0; font-size: 10px; line-height: 1.5; }
.account-feedback.is-visible { display: block; }
.account-feedback.is-error { color: #d54237; }
.account-feedback.is-success { color: #237b50; }
.account-identities { display: grid; gap: 7px; }
.account-section-status { margin: 0; color: var(--color-subtle); font-size: 10px; line-height: 1.5; }
.account-provider-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 6px 8px; border: 1px solid var(--color-line); border-radius: 10px; background: var(--color-panel); }
.account-provider-name { display: flex; min-width: 0; align-items: center; gap: 8px; font-size: 10px; font-weight: 650; }
.account-provider-mark { display: grid; width: 23px; height: 23px; flex: 0 0 23px; place-items: center; color: #242326; }
.account-provider-mark svg { display: block; width: 19px; height: 19px; overflow: visible; }
html[data-theme="dark"] .account-provider-mark { color: #f3f0ed; }
.account-provider-state { margin-left: auto; color: var(--color-subtle); font-size: 8px; white-space: nowrap; }
.account-provider-action { min-height: 28px; padding: 0 9px; border: 1px solid var(--color-line); border-radius: 8px; color: var(--color-text); background: transparent; cursor: pointer; font-size: 9px; font-weight: 650; white-space: nowrap; }
.account-provider-action:hover:not(:disabled) { border-color: rgb(244 91 24 / 40%); color: var(--color-accent); background: var(--color-accent-soft); }
.account-provider-action:disabled { cursor: not-allowed; opacity: .48; }
.account-danger-section { grid-column: 1 / -1; border-color: rgb(213 66 55 / 20%); background: linear-gradient(120deg, rgb(213 66 55 / 4%), var(--color-panel-soft) 65%); }
.account-danger-section .account-section-icon { border-color: rgb(213 66 55 / 20%); color: #d54237; background: rgb(213 66 55 / 8%); }
.account-danger-section .account-section-heading p { color: var(--color-muted); }
.account-delete-row { display: flex; align-items: center; gap: 9px; }
.account-delete-row .text-field { min-width: 0; }
.account-delete-row .button-danger { border-color: rgb(213 66 55 / 28%); color: #a72f28; background: rgb(213 66 55 / 8%); }
.account-delete-row .button-danger:hover:not(:disabled) { color: #fff; background: #c94338; }
.account-delete-row .button-danger:disabled { cursor: not-allowed; opacity: .42; }
.account-delete-note { margin: 8px 0 0; color: var(--color-subtle); font-size: 9px; line-height: 1.5; }
.dialog-header { display: flex; align-items: start; justify-content: space-between; margin-bottom: 22px; }
.dialog-header .eyebrow { margin-bottom: 6px; color: var(--color-accent); }
.dialog-header h2 { margin: 0; font: 700 19px var(--font-display); }
.dialog-header .icon-button { width: 34px; height: 34px; font-size: 22px; }
.field-label { display: block; margin: 15px 0 8px; color: #bdbbc2; font-size: 11px; font-weight: 600; }
.text-field { display: block; width: 100%; border: 1px solid var(--color-line); border-radius: 10px; outline: 0; color: var(--color-text); background: rgb(255 255 255 / 3%); }
.text-field:focus { border-color: rgb(255 107 22 / 75%); box-shadow: 0 0 0 3px rgb(255 107 22 / 12%), 0 0 20px rgb(255 107 22 / 8%); }
.title-field { height: 43px; padding: 0 12px; font-size: 13px; }
.content-field { min-height: 145px; padding: 12px; resize: vertical; font-size: 12px; line-height: 1.7; }
.text-field::placeholder { color: #6f6d75; }
.dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
.dialog-hint { color: #77757d; font-size: 10px; }
.dialog-buttons { display: flex; gap: 8px; }
.folder-dialog { width: min(440px, calc(100% - 32px)); }
.confirm-dialog { width: min(430px, calc(100% - 32px)); }
.confirm-message { margin: -5px 0 4px; color: var(--color-muted); font-size: 12px; line-height: 1.75; }
.button-danger { border: 1px solid rgb(255 98 88 / 30%); color: #ffe8e6; background: rgb(191 52 48 / 26%); }
.button-danger:hover { border-color: rgb(255 98 88 / 48%); background: rgb(191 52 48 / 42%); }
.folder-select { height: 42px; padding: 0 11px; font-size: 12px; }
.writing-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.writing-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.writing-button { padding: 5px 8px; border: 1px solid var(--color-line); border-radius: 7px; color: #b6b8c0; background: rgb(255 255 255 / 3%); cursor: pointer; font-size: 10px; transition: color 150ms ease, border-color 150ms ease; }
.writing-button:hover { border-color: rgb(255 107 22 / 40%); color: var(--color-text); }
.word-count { flex: 0 0 auto; color: var(--color-subtle); font-size: 10px; }
.summary-button { min-height: 34px; padding: 0 10px; font-size: 10px; }
.summary-button > span { color: var(--color-accent); font-size: 14px; }
.insights-dialog { width: min(500px, calc(100% - 32px)); }
.insights-disclaimer { margin: 0 0 18px; color: var(--color-muted); font-size: 11px; line-height: 1.7; }
.summary-intro { margin: 0 0 14px; color: #e2e2e5; font-size: 12px; }
.summary-keywords { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 20px; }
.summary-chip { padding: 5px 9px; border: 1px solid rgb(255 107 22 / 25%); border-radius: 20px; color: #ffad79; background: rgb(255 107 22 / 9%); font-size: 10px; }
.insights-content h3 { margin: 0 0 9px; font: 650 12px var(--font-display); }
.summary-list { display: grid; gap: 9px; margin: 0; padding-left: 17px; color: #c4c6cd; font-size: 11px; line-height: 1.7; }
.summary-list li::marker { color: var(--color-accent); }
.toast { position: fixed; right: 23px; bottom: 22px; z-index: 5; max-width: min(380px, calc(100vw - 46px)); padding: 12px 16px; border: 1px solid var(--color-line); border-radius: 11px; color: var(--color-text); background: #24252a; box-shadow: 0 12px 35px rgb(0 0 0 / 25%); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.is-error { border-color: rgb(255 110 100 / 35%); color: #ffaaa4; }

@keyframes card-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes card-out { to { opacity: 0; transform: translateY(5px) scale(.96); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 1050px) { .notes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .notes-grid { grid-template-columns: 1fr; gap: 11px; }
  .note-card { min-height: 170px; }
  .note-actions { opacity: 1; }
  .empty-state { margin-top: 65px; }
  .note-form { padding: 20px; }
  .dialog-footer { align-items: flex-start; flex-direction: column; }
  .dialog-buttons { width: 100%; justify-content: flex-end; }
  .section-actions { align-items: flex-end; flex-direction: column-reverse; gap: 7px; }
  .folder-action { opacity: 1; }
  .account-dialog { width: calc(100% - 18px); max-height: 94vh; border-radius: 17px; }
  .account-modal { max-height: 94vh; }
  .account-modal-header { padding: 19px 17px 14px; }
  .account-modal-summary { min-height: 76px; gap: 10px; padding: 11px 17px; }
  .account-plan-tag { display: none; }
  .account-modal-body { grid-template-columns: 1fr; gap: 9px; padding: 12px; }
  .account-section { padding: 14px; }
  .account-danger-section { grid-column: auto; }
  .account-delete-row { align-items: stretch; flex-direction: column; }
  .account-delete-row .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .note-card.is-entering, .note-card.is-removing, .note-dialog[open] { animation: none; }
}

.button-primary { color: #fff; background: linear-gradient(135deg, #ff7b35, #f45112); box-shadow: 0 6px 18px rgb(244 91 24 / 20%); }
.button-primary:hover { background: linear-gradient(135deg, #ff8b4b, #fa5c1b); box-shadow: 0 8px 22px rgb(244 91 24 / 25%); }
.button-quiet { border-color: var(--color-line); color: #514a44; background: rgb(255 255 255 / 78%); }
.button-quiet:hover { background: #fff; }

.note-card {
  display: flex;
  min-height: 205px;
  flex-direction: column;
  border-color: rgb(52 40 30 / 9%);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 96%), rgb(255 255 255 / 74%)),
    #fff;
  box-shadow: 0 10px 30px rgb(47 36 27 / 5%);
}
.note-card:hover { border-color: rgb(244 91 24 / 26%); background-color: #fff; box-shadow: 0 15px 35px rgb(47 36 27 / 8%); }
.note-card h3 { color: #28231f; }
.note-actions { opacity: .78; }
.icon-button { color: #7f776f; }
.icon-button:hover { border-color: var(--color-line); color: #28231f; background: rgb(52 40 30 / 4%); }
.note-content { color: #6d655e; }
.note-content.is-empty { color: #9a9189; }
.note-card-footer { color: #948a82; }
.note-folder-label { border-color: rgb(52 40 30 / 10%); color: #746b63; background: rgb(52 40 30 / 2%); }
.empty-illustration { border-color: rgb(52 40 30 / 9%); background: linear-gradient(145deg, #fff, #f5eee8); }
.empty-illustration img { width: 52px; height: 52px; overflow: hidden; border: 1px solid rgb(255 255 255 / 40%); border-radius: 16px; object-fit: cover; transform: scale(1.42); box-shadow: 0 8px 19px rgb(33 29 25 / 17%); }

.note-dialog { border-color: rgb(52 40 30 / 11%); color: var(--color-text); background: #fffdfa; box-shadow: 0 24px 90px rgb(33 29 25 / 20%); }
.note-dialog::backdrop { background: rgb(32 26 21 / 38%); backdrop-filter: blur(8px); }
.field-label { color: #655d55; }
.text-field { border-color: rgb(52 40 30 / 14%); color: #28231f; background: #fff; }
.text-field:focus { border-color: rgb(244 91 24 / 68%); box-shadow: 0 0 0 3px rgb(244 91 24 / 11%); }
.text-field::placeholder { color: #a49b92; }
.dialog-hint { color: #948a82; }
.writing-button { border-color: rgb(52 40 30 / 12%); color: #696159; background: #fff; }
.writing-button:hover { border-color: rgb(244 91 24 / 42%); color: #302821; }
.writing-button-ai { border-color: rgb(244 91 24 / 23%); color: #c74b16; background: rgb(244 91 24 / 5%); }
.writing-button:disabled, .summary-ai-button:disabled { cursor: wait; opacity: .6; }
.summary-intro { color: #4f4841; }
.summary-chip { border-color: rgb(244 91 24 / 22%); color: #b94a18; background: rgb(244 91 24 / 7%); }
.summary-list { color: #615951; }
.toast { border-color: rgb(52 40 30 / 12%); color: #28231f; background: #fffdfa; box-shadow: 0 12px 35px rgb(33 29 25 / 13%); }
.toast.is-error { border-color: rgb(192 61 49 / 24%); color: #a7342b; }

.note-attachments { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 16px; }
.note-attachment { display: block; width: 60px; height: 52px; overflow: hidden; border: 1px solid rgb(52 40 30 / 10%); border-radius: 9px; background: #f3f0ed; }
.note-attachment img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 180ms ease; }
.note-attachment:hover img { transform: scale(1.06); }
.attachment-toolbar { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.attachment-hint { color: var(--color-subtle); font-size: 10px; }
.note-image-previews { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 10px; }
.image-preview { position: relative; width: 72px; height: 64px; overflow: hidden; border: 1px solid var(--color-line); border-radius: 10px; background: #f3f0ed; }
.image-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.image-preview-remove { position: absolute; top: 3px; right: 3px; display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid rgb(255 255 255 / 65%); border-radius: 7px; color: #352a23; background: rgb(255 255 255 / 90%); cursor: pointer; font-size: 17px; line-height: 1; }
.image-preview-remove:hover { color: #a7342b; background: #fff; }
.summary-ai-panel { display: grid; justify-items: start; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--color-line); }
.summary-ai-button { min-height: 36px; }
.ai-summary-output { margin: 0; color: #5e554d; font-size: 12px; line-height: 1.75; white-space: pre-wrap; }

@media (max-width: 680px) {
  .attachment-toolbar { align-items: flex-start; flex-direction: column; gap: 7px; }
}

html[data-theme="dark"] .button-primary { color: #211008; }
html[data-theme="dark"] .button-quiet { color: #d0c8c1; background: rgb(255 255 255 / 4%); }
html[data-theme="dark"] .button-quiet:hover { background: rgb(255 255 255 / 8%); }
html[data-theme="dark"] .note-card {
  border-color: rgb(255 255 255 / 8%);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 6%), transparent 58%),
    rgb(255 255 255 / 3%);
  box-shadow: 0 12px 35px rgb(0 0 0 / 16%);
}
html[data-theme="dark"] .note-card:hover { border-color: rgb(255 255 255 / 16%); background-color: rgb(255 255 255 / 5%); }
html[data-theme="dark"] .note-card h3 { color: #f4f1ed; }
html[data-theme="dark"] .icon-button { color: #aaa39c; }
html[data-theme="dark"] .icon-button:hover { color: var(--color-text); background: rgb(255 255 255 / 5%); }
html[data-theme="dark"] .note-content { color: #bbb4ad; }
html[data-theme="dark"] .note-content.is-empty { color: #827a73; }
html[data-theme="dark"] .note-card-footer { color: #827a73; }
html[data-theme="dark"] .note-folder-label { border-color: rgb(255 255 255 / 8%); color: #b4b6bd; background: transparent; }
html[data-theme="dark"] .empty-illustration { border-color: rgb(255 255 255 / 8%); background: linear-gradient(145deg, rgb(255 118 47 / 18%), rgb(255 255 255 / 3%)); }
html[data-theme="dark"] .note-dialog { border-color: rgb(255 255 255 / 11%); color: var(--color-text); background: #1b1c20; box-shadow: 0 24px 100px rgb(0 0 0 / 55%); }
html[data-theme="dark"] .note-dialog::backdrop { background: rgb(5 5 7 / 68%); }
html[data-theme="dark"] .account-dialog { border-color: rgb(255 255 255 / 11%); color: var(--color-text); background: #1b1c20; box-shadow: 0 24px 100px rgb(0 0 0 / 55%); }
html[data-theme="dark"] .account-modal-header, html[data-theme="dark"] .account-modal-summary { border-color: var(--color-line); }
html[data-theme="dark"] .account-section { border-color: var(--color-line); background: #202126; }
html[data-theme="dark"] .account-provider-row { border-color: var(--color-line); background: rgb(255 255 255 / 3%); }
html[data-theme="dark"] .account-provider-action { border-color: var(--color-line); color: var(--color-text); }
html[data-theme="dark"] .account-feedback.is-error { color: #ffaaa4; }
html[data-theme="dark"] .account-feedback.is-success { color: #a4dbb9; }
html[data-theme="dark"] .account-danger-section { border-color: rgb(255 112 105 / 23%); background: linear-gradient(120deg, rgb(255 112 105 / 5%), #202126 65%); }
html[data-theme="dark"] .account-danger-section .account-provider-action, html[data-theme="dark"] .account-delete-row .button-danger { color: #ffaaa4; }
html[data-theme="dark"] .field-label { color: #c3bcb5; }
html[data-theme="dark"] .text-field { border-color: var(--color-line); color: var(--color-text); background: rgb(255 255 255 / 3%); }
html[data-theme="dark"] .text-field:focus { border-color: rgb(255 118 47 / 75%); box-shadow: 0 0 0 3px rgb(255 118 47 / 12%); }
html[data-theme="dark"] .text-field::placeholder { color: #827a73; }
html[data-theme="dark"] .dialog-hint { color: #827a73; }
html[data-theme="dark"] .writing-button { border-color: var(--color-line); color: #c2bab2; background: rgb(255 255 255 / 3%); }
html[data-theme="dark"] .writing-button-ai { border-color: rgb(255 118 47 / 23%); color: #ffad79; background: rgb(255 118 47 / 7%); }
html[data-theme="dark"] .summary-intro { color: #e2e0e5; }
html[data-theme="dark"] .summary-chip { border-color: rgb(255 118 47 / 25%); color: #ffad79; background: rgb(255 118 47 / 9%); }
html[data-theme="dark"] .summary-list { color: #c4c6cd; }
html[data-theme="dark"] .toast { border-color: var(--color-line); color: var(--color-text); background: #24252a; box-shadow: 0 12px 35px rgb(0 0 0 / 25%); }
html[data-theme="dark"] .toast.is-error { color: #ffaaa4; }
html[data-theme="dark"] .note-attachment,
html[data-theme="dark"] .image-preview { border-color: rgb(255 255 255 / 10%); background: #26272c; }
html[data-theme="dark"] .image-preview-remove { border-color: rgb(255 255 255 / 30%); color: #352a23; background: rgb(255 255 255 / 90%); }
html[data-theme="dark"] .ai-summary-output { color: #c5bdb6; }
