/* PersonalOS 13 — Flashcard visual system. */
.fc-page{min-width:0;color:var(--text,#182538)}.fc-page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:4px 0 22px}.fc-page-heading h1{margin:5px 0 5px;font-size:24px;letter-spacing:-.03em;color:var(--text,#182538)}.fc-page-heading p{margin:0;color:var(--muted,#718096);font-size:12px;line-height:1.55}.fc-heading-actions{display:flex;align-items:center;gap:8px}.fc-overview-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-bottom:24px}.fc-overview-strip>div{display:flex;align-items:center;gap:12px;min-width:0;padding:13px 15px;border:1px solid var(--border,#e4e9f0);border-radius:12px;background:var(--surface,#fff)}.fc-stat-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px;background:#edf2ff;color:#536fd2;font-size:17px}.fc-stat-icon.fc-stat-due{background:#fff4e6;color:#bf812e}.fc-overview-strip small{display:block;color:var(--muted,#718096);font-size:10px}.fc-overview-strip strong{display:block;margin-top:3px;color:var(--text,#182538);font-size:18px}.fc-library-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin:0 0 14px}.fc-library-toolbar h2,.fc-cards-heading h2{margin:0 0 4px;font-size:15px;color:var(--text,#182538)}.fc-library-toolbar p,.fc-cards-heading p{margin:0;color:var(--muted,#718096);font-size:10px}.fc-search{display:flex;align-items:center;gap:8px;width:min(310px,100%);padding-left:11px;border:1px solid var(--border,#e4e9f0);border-radius:9px;background:var(--surface,#fff);color:var(--muted,#718096)}.fc-search .input-control{min-width:0;min-height:38px;border:0!important;background:transparent;box-shadow:none!important}.fc-search>span{font-size:18px}.fc-deck-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.fc-deck-card{min-width:0;overflow:hidden;border:1px solid var(--border,#e4e9f0);border-radius:13px;background:var(--surface,#fff);transition:transform .16s,border-color .16s,box-shadow .16s}.fc-deck-card:hover{transform:translateY(-2px);border-color:#c9d7e9;box-shadow:0 7px 20px rgba(31,55,87,.06)}.fc-deck-open{display:grid;grid-template-columns:76px minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;padding:16px 15px 12px;border:0;background:transparent;text-align:left;cursor:pointer}.fc-deck-art{position:relative;display:block;width:70px;height:70px;border-radius:11px;background:var(--fc-deck-tint,#edf2ff);overflow:hidden}.fc-art-card{position:absolute;display:grid;place-items:center;width:38px;height:50px;border:1px solid rgba(65,85,120,.16);border-radius:6px;background:rgba(255,255,255,.8);box-shadow:0 3px 7px rgba(24,44,75,.08);font-size:17px;font-weight:800;color:#536ed0}.fc-art-back{left:17px;top:9px;transform:rotate(10deg);opacity:.8}.fc-art-front{left:12px;top:13px;transform:rotate(-7deg)}.fc-deck-copy{display:flex;flex-direction:column;gap:5px;min-width:0}.fc-deck-copy strong{overflow:hidden;color:var(--text,#182538);font-size:13px;text-overflow:ellipsis;white-space:nowrap}.fc-deck-copy small{display:-webkit-box;overflow:hidden;color:var(--muted,#718096);font-size:10px;line-height:1.5;-webkit-line-clamp:2;-webkit-box-orient:vertical}.fc-deck-stats{text-align:right}.fc-deck-stats b{display:block;color:var(--text,#182538);font-size:20px}.fc-deck-stats small,.fc-deck-stats i{display:block;color:var(--muted,#718096);font-size:9px;font-style:normal}.fc-deck-stats i{margin-top:5px;color:#b47a2b}.fc-deck-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 14px;border-top:1px solid var(--border,#e4e9f0);color:var(--muted,#718096);font-size:9px}.fc-icon-action{width:28px;height:26px;border:0;border-radius:7px;background:transparent;color:var(--muted,#718096);font-size:18px;cursor:pointer}.fc-icon-action:hover{background:var(--surface-2,#f1f4f8);color:var(--text,#182538)}.fc-empty,.fc-error{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:210px;padding:30px;border:1px dashed var(--border,#dbe2eb);border-radius:13px;background:var(--surface,#fff);text-align:center}.fc-empty-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;background:#edf2ff;color:#536ed2;font-size:22px}.fc-empty h3{margin:12px 0 5px;font-size:14px}.fc-empty p,.fc-error p{max-width:430px;margin:0 0 14px;color:var(--muted,#718096);font-size:11px;line-height:1.6}.fc-error{align-items:flex-start;text-align:left;background:#fff8f7;border-color:#f0d3d0}.fc-error strong{color:#a33c36}.fc-deck-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.fc-back-link,.fc-list-back{display:inline-flex;align-items:center;gap:7px;padding:0;border:0;background:transparent;color:var(--muted,#718096);font-size:11px;font-weight:650;cursor:pointer}.fc-deck-heading-copy h1{margin:5px 0;font-size:23px}.fc-deck-heading-copy p{margin:0;color:var(--muted,#718096);font-size:11px}.fc-launch-actions{display:flex;gap:9px}.fc-study-launch{display:flex;align-items:center;gap:12px;min-height:51px;padding:0 15px;border:1px solid var(--border,#e4e9f0);border-radius:10px;background:var(--surface,#fff);color:var(--text,#182538);font-size:11px;font-weight:700;cursor:pointer}.fc-study-launch:hover{border-color:var(--primary,#4263c7)}.fc-study-launch-copy{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.fc-study-launch-copy small{color:var(--muted,#718096);font-size:9px;font-weight:500}.fc-study-launch.primary-button{color:#fff}.fc-study-launch.primary-button small{color:rgba(255,255,255,.8)}.fc-deck-metadata{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 20px}.fc-deck-metadata span,.fc-breadcrumb{padding:5px 9px;border:1px solid var(--border,#e4e9f0);border-radius:7px;background:var(--surface,#fff);color:var(--muted,#718096);font-size:10px}.fc-cards-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 12px}.fc-card-list{display:flex;flex-direction:column;gap:7px}.fc-list-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 13px;border:1px solid var(--border,#e4e9f0);border-radius:10px;background:var(--surface,#fff)}.fc-list-face{display:flex;flex:1;align-items:center;gap:12px;min-width:0}.fc-list-face>span{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:8px;background:var(--fc-deck-tint,#edf2ff);color:#5269bd;font-size:11px;font-weight:800}.fc-list-face div{min-width:0}.fc-list-face strong{display:block;overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.fc-list-face small{display:block;overflow:hidden;max-width:680px;margin-top:3px;color:var(--muted,#718096);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.fc-list-meta{display:flex;align-items:center;gap:7px;color:var(--muted,#718096);font-size:9px}.fc-list-actions{display:flex;gap:4px}.fc-inline-actions{display:flex;gap:7px}.fc-study-page{display:flex;flex-direction:column;min-height:min(690px,calc(100vh - 185px));padding:8px 0 14px}.fc-study-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 0 15px}.fc-study-title strong{display:block;font-size:13px}.fc-study-title small{display:block;margin-top:3px;color:var(--muted,#718096);font-size:10px}.fc-study-top-actions{display:flex;align-items:center;gap:7px}.fc-session-counter{color:var(--muted,#718096);font-size:11px;font-weight:650}.fc-study-progress{height:5px;overflow:hidden;border-radius:999px;background:var(--surface-2,#e9edf3)}.fc-study-progress>span{display:block;height:100%;border-radius:inherit;background:var(--primary,#4263c7);transition:width .2s}.fc-study-main{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:17px;padding:25px 10px}.fc-study-instruction{color:var(--muted,#718096);font-size:11px}.fc-study-card{display:flex;align-items:center;justify-content:center;width:min(650px,100%);min-height:340px;padding:35px;border:1px solid var(--border,#dfe6ef);border-radius:19px;background:var(--surface,#fff);box-shadow:0 12px 35px rgba(27,47,75,.07);cursor:pointer;perspective:1000px;text-align:center}.fc-study-card-content{width:100%;color:var(--text,#182538);font-size:clamp(20px,3vw,29px);font-weight:650;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.fc-card-side-label{display:block;margin-bottom:17px;color:var(--muted,#718096);font-size:10px;font-weight:800;letter-spacing:.12em}.fc-card-index{color:var(--muted,#718096);font-size:10px}.fc-card-flip-hint{color:var(--muted,#718096);font-size:10px}.fc-study-controls{display:flex;align-items:center;justify-content:center;gap:9px}.fc-flip-button{min-width:112px}.fc-rating-panel{width:min(650px,100%);padding:15px;border:1px solid var(--border,#e4e9f0);border-radius:12px;background:var(--surface,#fff)}.fc-rating-panel>strong{display:block;margin-bottom:10px;font-size:11px;text-align:center}.fc-rating-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.fc-rating{min-height:42px;padding:5px;border:1px solid var(--border,#e4e9f0);border-radius:8px;background:var(--surface-2,#f7f9fb);color:var(--text,#182538);font-size:10px;font-weight:700;cursor:pointer}.fc-rating:hover{border-color:var(--primary,#4263c7);color:var(--primary,#4263c7)}.fc-study-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:15px;color:var(--muted,#718096);font-size:10px}.fc-dialog-layer{position:fixed;z-index:1200;inset:0;display:grid;place-items:center;padding:20px;background:rgba(13,24,40,.42);backdrop-filter:blur(3px)}.fc-dialog{width:min(520px,100%);max-height:min(88vh,780px);overflow:auto;border:1px solid var(--border,#e4e9f0);border-radius:16px;background:var(--surface,#fff);box-shadow:0 20px 70px rgba(10,25,45,.23)}.fc-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:18px 20px 12px;border-bottom:1px solid var(--border,#e4e9f0)}.fc-dialog>header h2{margin:4px 0 0;font-size:17px}.fc-dialog-close{width:30px;height:30px;border:0;border-radius:8px;background:var(--surface-2,#f2f4f7);cursor:pointer}.fc-dialog-body{padding:17px 20px 20px}.fc-form{display:flex;flex-direction:column;gap:13px}.fc-form-hint{color:var(--muted,#718096);font-size:10px;line-height:1.5}.fc-color-choices{display:flex;gap:8px;flex-wrap:wrap}.fc-color-choices button{width:25px;height:25px;border:2px solid #fff;border-radius:50%;background:var(--fc-color);box-shadow:0 0 0 1px #dbe2eb;cursor:pointer}.fc-color-choices button.is-selected{box-shadow:0 0 0 2px var(--primary,#4263c7)}.fc-count-input{display:flex;align-items:center;gap:9px}.fc-count-input input{max-width:140px}.fc-count-presets{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.fc-count-preset{min-height:30px;padding:0 10px;border:1px solid var(--border,#e4e9f0);border-radius:7px;background:var(--surface,#fff);color:var(--muted,#718096);font-size:10px;cursor:pointer}.fc-count-preset.is-active{border-color:var(--primary,#4263c7);background:var(--primary-soft,#edf2ff);color:var(--primary,#4263c7)}.fc-setup{display:flex;align-items:center;gap:12px;margin:0 0 13px;padding:12px;border-radius:10px;background:var(--surface-2,#f4f6f9)}.fc-setup-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:var(--primary-soft,#edf2ff);color:var(--primary,#4263c7)}.fc-setup-summary{display:flex;flex-direction:column;gap:3px}.fc-setup-summary strong{font-size:12px}.fc-setup-summary small{font-size:10px;color:var(--muted,#718096)}.fc-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
@media(max-width:1100px){.fc-deck-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.fc-page-heading{flex-direction:column}.fc-heading-actions{width:100%}.fc-heading-actions>*{flex:1}.fc-overview-strip{gap:7px}.fc-overview-strip>div{gap:8px;padding:10px}.fc-stat-icon{flex-basis:28px;width:28px;height:28px}.fc-overview-strip small{font-size:9px}.fc-overview-strip strong{font-size:16px}.fc-library-toolbar{align-items:stretch;flex-direction:column}.fc-search{width:100%}.fc-deck-grid{grid-template-columns:1fr}.fc-deck-open{grid-template-columns:62px minmax(0,1fr) auto;padding:13px}.fc-deck-art{width:58px;height:58px}.fc-art-card{width:31px;height:42px}.fc-study-page{min-height:calc(100dvh - 210px)}.fc-study-main{padding:22px 0}.fc-study-card{min-height:270px;padding:24px 18px;border-radius:15px}.fc-study-card-content{font-size:21px}.fc-rating-options{grid-template-columns:repeat(2,minmax(0,1fr))}.fc-study-top{align-items:flex-start}.fc-study-top-actions{flex-wrap:wrap;justify-content:flex-end}.fc-list-card{align-items:flex-start;flex-wrap:wrap}.fc-list-actions{margin-left:auto}.fc-dialog-layer{align-items:end;padding:0}.fc-dialog{width:100%;max-height:92dvh;border-radius:17px 17px 0 0}.fc-dialog>header,.fc-dialog-body{padding-right:16px;padding-left:16px}}
@media(max-width:420px){.fc-overview-strip{grid-template-columns:1fr}.fc-overview-strip>div{padding:9px}.fc-overview-strip>div>span:last-child{display:flex;align-items:center;justify-content:space-between;flex:1}.fc-overview-strip strong{margin:0}.fc-deck-heading{align-items:flex-start;flex-direction:column}.fc-launch-actions{width:100%}.fc-launch-actions>*{flex:1}.fc-study-controls{gap:5px}.fc-study-controls .secondary-button,.fc-study-controls .primary-button{padding:0 9px}.fc-study-card{min-height:230px}}

/* PersonalOS 13 — flashcard spacing and responsive list refinements */
.fc-study-card{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:13px!important;padding:clamp(24px,4vw,42px)!important;overflow:hidden!important;text-align:center!important;}
.fc-card-side-label,.fc-card-flip-hint{display:block!important;width:100%;margin:0!important;line-height:1.45!important;}
.fc-study-card-content{display:block!important;width:100%;max-width:100%;padding:0!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;line-height:1.6!important;}
.fc-list-card{display:grid!important;grid-template-columns:38px minmax(130px,1fr) minmax(160px,1.2fr) minmax(100px,auto) auto;align-items:center!important;gap:14px!important;padding:15px 17px!important;border-radius:13px!important;background:var(--surface,#fff)!important;}
.fc-list-face{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:5px!important;min-width:0!important;}
.fc-list-face>small{color:var(--muted,#718096);font-size:9px;font-weight:800;letter-spacing:.06em;}
.fc-list-face strong,.fc-list-face>span{display:block!important;max-width:100%;overflow-wrap:anywhere!important;white-space:normal!important;line-height:1.5!important;}
.fc-list-meta{flex-wrap:wrap;justify-content:flex-start;gap:5px 9px!important;}
.fc-list-actions{justify-content:flex-end;white-space:nowrap;}
@media(max-width:900px){.fc-list-card{grid-template-columns:32px minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important;}.fc-list-meta,.fc-list-actions{grid-column:2/-1;}.fc-list-actions{justify-content:flex-end;}}
@media(max-width:600px){.fc-list-card{grid-template-columns:28px minmax(0,1fr)!important;padding:13px!important;}.fc-list-face,.fc-list-meta,.fc-list-actions{grid-column:2!important;}.fc-list-face{padding:8px 0;border-bottom:1px solid var(--border,#e4e9f0);}.fc-list-actions{margin-left:0!important;}.fc-study-card{min-height:250px!important;}}

/* PersonalOS 15: independent flashcard tiles, no overlapping rows. */
.fc-card-list{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr))!important;gap:14px!important;align-items:stretch!important;}
.fc-list-card{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;min-width:0!important;min-height:0!important;padding:18px!important;border:1px solid var(--border,#e4e9f0)!important;border-radius:14px!important;background:var(--surface,#fff)!important;box-shadow:0 3px 12px rgba(25,40,65,.045)!important;}
.fc-card-index{align-self:flex-start;padding:4px 8px;border-radius:7px;background:var(--surface-2,#f2f5f9);}
.fc-list-face{display:flex!important;flex-direction:column!important;gap:7px!important;min-width:0!important;padding:12px!important;border-radius:10px!important;background:var(--surface-2,#f6f8fb)!important;}
.fc-list-face strong,.fc-list-face>span{display:block!important;max-width:100%!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;word-break:normal!important;line-height:1.6!important;}
.fc-list-meta{display:flex!important;flex-wrap:wrap!important;gap:8px!important;}
.fc-list-actions{display:flex!important;justify-content:flex-end!important;gap:7px!important;margin-top:auto!important;padding-top:8px!important;border-top:1px solid var(--border,#e4e9f0)!important;}
@media(max-width:600px){.fc-card-list{grid-template-columns:1fr!important}.fc-list-card{padding:15px!important}}

/* PersonalOS 15: independent flashcard tiles, no overlapping rows. */
.fc-card-list{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr))!important;gap:14px!important;align-items:stretch!important;}
.fc-list-card{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;min-width:0!important;min-height:0!important;padding:18px!important;border:1px solid var(--border,#e4e9f0)!important;border-radius:14px!important;background:var(--surface,#fff)!important;box-shadow:0 3px 12px rgba(25,40,65,.045)!important;}
.fc-card-index{align-self:flex-start;padding:4px 8px;border-radius:7px;background:var(--surface-2,#f2f5f9);}
.fc-list-face{display:flex!important;flex-direction:column!important;gap:7px!important;min-width:0!important;padding:12px!important;border-radius:10px!important;background:var(--surface-2,#f6f8fb)!important;}
.fc-list-face strong,.fc-list-face>span{display:block!important;max-width:100%!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;word-break:normal!important;line-height:1.6!important;}
.fc-list-meta{display:flex!important;flex-wrap:wrap!important;gap:8px!important;}
.fc-list-actions{display:flex!important;justify-content:flex-end!important;gap:7px!important;margin-top:auto!important;padding-top:8px!important;border-top:1px solid var(--border,#e4e9f0)!important;}
@media(max-width:600px){.fc-card-list{grid-template-columns:1fr!important}.fc-list-card{padding:15px!important}}

/* PersonalOS 15 template center */
.fc-template-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.fc-template-list a{text-decoration:none;text-align:center;display:flex;align-items:center;justify-content:center;min-height:42px}.fc-template-list p{grid-column:1/-1}@media(max-width:480px){.fc-template-list{grid-template-columns:1fr}}


/* PersonalOS 19 — predictable three-column flashcard library and card grid. */
.fc-deck-grid,
.fc-card-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 14px !important;
}
.fc-list-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  min-width: 0 !important;
  min-height: 100% !important;
  gap: 12px !important;
}
.fc-list-face { min-width: 0 !important; }
.fc-list-face strong,
.fc-list-face > span {
  white-space: pre-wrap !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}
.fc-list-actions { margin-top: auto !important; }
@media (max-width: 1100px) {
  .fc-deck-grid,
  .fc-card-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 650px) {
  .fc-deck-grid,
  .fc-card-list { grid-template-columns: minmax(0, 1fr) !important; }
}
