:root {
  --yuntuku-accent: #2563eb;
  --yuntuku-accent-soft: rgba(37, 99, 235, 0.12);
  --yuntuku-danger: #dc2626;
  --yuntuku-surface: rgba(255, 255, 255, 0.92);
  --yuntuku-surface-soft: rgba(255, 255, 255, 0.78);
  --yuntuku-line: rgba(148, 163, 184, 0.24);
  --yuntuku-text-main: #0f172a;
  --yuntuku-text-soft: #64748b;
  --yuntuku-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.app-view-panel__header--yuntuku {
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px 12px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.app-view-panel__header--yuntuku .app-view-panel__back-button {
  margin-top: 2px;
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: none;
}

.app-view-panel__header--yuntuku .app-view-panel__title-group {
  display: flex;
  min-width: 0;
  flex-direction: column-reverse;
  gap: 2px;
}

.app-view-panel__header--yuntuku .app-view-panel__title {
  margin-top: 0;
  color: #111111;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.app-view-panel__header--yuntuku .app-view-panel__eyebrow {
  color: #6b7280;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}

.app-view-panel__body--yuntuku {
  background:
    linear-gradient(180deg, rgba(249, 250, 251, 0.98), rgba(243, 244, 246, 0.98));
}

.yuntuku-page {
  min-height: 100%;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.yuntuku-page__content {
  display: grid;
  gap: 12px;
  align-content: start;
}

.yuntuku-section {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  padding: 16px;
}

.yuntuku-section--upload {
  display: grid;
  gap: 12px;
}

.yuntuku-section__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.yuntuku-section__head strong {
  font-size: 15px;
  color: var(--yuntuku-text-main);
}

.yuntuku-section__head span,
.yuntuku-status,
.yuntuku-empty,
.yuntuku-helper,
.yuntuku-item__meta {
  font-size: 12px;
  line-height: 1.6;
  color: var(--yuntuku-text-soft);
}

.yuntuku-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.yuntuku-toolbar .builder-btn {
  flex-shrink: 0;
}

.yuntuku-toolbar .builder-btn,
.yuntuku-modal .builder-btn {
  min-width: 132px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.yuntuku-toolbar .builder-btn:hover,
.yuntuku-modal .builder-btn:hover {
  transform: translateY(-1px);
}

.yuntuku-toolbar .primary-btn,
.yuntuku-modal .primary-btn {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.yuntuku-toolbar .soft-btn,
.yuntuku-modal .soft-btn {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.12);
  color: #111111;
}

.yuntuku-toolbar .soft-btn:hover,
.yuntuku-modal .soft-btn:hover {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.18);
}

.yuntuku-toolbar--filter {
  margin-top: 10px;
}

.yuntuku-field {
  display: grid;
  gap: 6px;
}

.yuntuku-input {
  min-width: 0;
  flex: 1 1 180px;
  height: 38px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
  color: #111111;
  font-size: 13px;
}

.yuntuku-input:hover {
  border-color: rgba(15, 23, 42, 0.18);
}

.yuntuku-input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.yuntuku-summary {
  margin-left: auto;
  font-size: 12px;
  color: #64748b;
}

.yuntuku-progress {
  display: none;
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
}

.yuntuku-progress.visible {
  display: block;
}

.yuntuku-progress__bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  transition: width 0.2s ease;
}

.yuntuku-status {
  min-height: 20px;
}

.yuntuku-helper {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(239, 246, 255, 0.82);
  border: 1px dashed rgba(96, 165, 250, 0.36);
}

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

.yuntuku-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.yuntuku-item__thumb-button {
  display: block;
  padding: 0;
  border: none;
  background: #ffffff;
  cursor: pointer;
}

.yuntuku-item__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f8fafc;
}

.yuntuku-item__body {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.yuntuku-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.yuntuku-item__name {
  overflow: hidden;
  color: var(--yuntuku-text-main);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yuntuku-item__manage {
  flex-shrink: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  padding: 6px 10px;
  background: rgba(248, 250, 252, 0.98);
  color: #334155;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.yuntuku-item__manage:hover {
  filter: brightness(1.02);
}

.yuntuku-empty {
  padding: 18px 14px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 16px;
  background: var(--yuntuku-surface-soft);
}

.yuntuku-danger-btn {
  color: #b91c1c;
}

@media (max-width: 480px) {
  .app-view-panel__header--yuntuku {
    padding: 12px 14px 10px;
  }

  .app-view-panel__header--yuntuku .app-view-panel__title {
    font-size: 17px;
  }

  .yuntuku-page {
    padding: 12px 12px calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .yuntuku-section {
    padding: 14px;
    border-radius: 22px;
  }

  .yuntuku-grid {
    grid-template-columns: 1fr;
  }

  .yuntuku-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .yuntuku-toolbar .builder-btn,
  .yuntuku-modal .builder-btn,
  .yuntuku-input {
    width: 100%;
    min-width: 0;
  }

  .yuntuku-summary {
    margin-left: 0;
  }
}

.app-view-panel__body--yuntuku{overflow:hidden!important;background:#f4f7fb!important}
.yuntuku-app{position:relative;display:flex;flex-direction:column;height:100%;min-height:0;background:linear-gradient(#fbfdff,#eef6ff);color:#111827}
.yuntuku-screen{flex:1;overflow:auto;padding:12px 14px 96px}
.yuntuku-topbar{position:sticky;top:0;z-index:8;display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:8px;align-items:center;min-height:42px;margin:-4px -4px 12px;padding:8px 2px;background:rgba(251,253,255,.9);backdrop-filter:blur(14px)}
.yuntuku-topbar__title{position:absolute;left:50%;top:50%;z-index:1;width:min(58%,190px);min-width:0;transform:translate(-50%,-50%);text-align:center;pointer-events:none}.yuntuku-topbar__title strong{display:block;font-size:18px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.yuntuku-topbar__title span{display:block;color:#7b8794;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.yuntuku-topbar__left,.yuntuku-topbar__right{position:relative;z-index:2;display:flex;gap:8px;align-items:center;min-width:0;grid-row:1}.yuntuku-topbar__left{grid-column:1;justify-self:start}.yuntuku-topbar__right{grid-column:3;justify-self:end;justify-content:flex-end}.yuntuku-topbar__button{display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(20,38,64,.08);border-radius:999px;background:#fff;min-width:36px;height:34px;padding:0 10px;color:#111827;box-shadow:0 6px 16px rgba(20,38,64,.06);line-height:1;white-space:nowrap}.yuntuku-topbar__button--text{color:#1684e8;font-size:13px;font-weight:800}.yuntuku-topbar__button--round{background:linear-gradient(135deg,#12a8ff,#1684e8);color:#fff;font-size:22px}
.yuntuku-home-hero{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;padding:22px;border-radius:28px;background:linear-gradient(135deg,#dff4ff,#8bd8ff 50%,#36aff8);box-shadow:0 12px 30px rgba(24,58,96,.1)}.yuntuku-home-hero h3{margin:0;color:#07375c;font-size:24px;line-height:1.15}.yuntuku-home-hero p{color:rgba(7,55,92,.72);font-size:13px}.yuntuku-home-hero__label{display:inline-flex;margin-bottom:8px;padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.7);color:#0472c7;font-size:11px;font-weight:800}.yuntuku-home-hero__upload{width:58px;height:58px;border:0;border-radius:22px;background:#fff;color:#1684e8;font-size:34px}
.yuntuku-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}.yuntuku-stat-grid article,.yuntuku-block,.yuntuku-settings-card{border:1px solid rgba(20,38,64,.08);border-radius:20px;background:rgba(255,255,255,.9);box-shadow:0 8px 20px rgba(20,38,64,.05)}.yuntuku-stat-grid article{display:grid;place-items:center;min-height:72px}.yuntuku-block{margin-top:12px;padding:16px;border-radius:24px}.yuntuku-block__head{display:flex;justify-content:space-between;margin-bottom:12px}.yuntuku-block__head button{border:0;background:transparent;color:#1684e8;font-weight:800}
.yuntuku-album-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}.yuntuku-album-card{border:0;background:transparent;padding:0;text-align:left}.yuntuku-album-card__cover{display:block;aspect-ratio:1.16/1;border-radius:22px;overflow:hidden;background:#e9f3fb;box-shadow:0 14px 26px rgba(20,38,64,.1)}.yuntuku-album-card__cover img,.yuntuku-photo img{width:100%;height:100%;object-fit:cover}.yuntuku-album-card__empty,.yuntuku-photo__placeholder{display:grid;place-items:center;width:100%;height:100%;color:#1684e8;font-weight:850}.yuntuku-album-card__body{display:grid;gap:4px;padding:8px 4px}.yuntuku-album-card__body span{color:#7b8794;font-size:12px}
.yuntuku-photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.yuntuku-photo{position:relative;border:0;padding:0;background:#e8eef6;overflow:hidden}.yuntuku-photo:before{content:"";display:block;padding-top:100%}.yuntuku-photo img,.yuntuku-photo__placeholder{position:absolute;inset:0}.yuntuku-photo-grid--home{border-radius:18px;overflow:hidden}.yuntuku-photo-grid--album .yuntuku-photo{border-radius:6px}.yuntuku-photo__check{position:absolute;top:7px;right:7px;z-index:2;display:grid;place-items:center;width:24px;height:24px;border:2px solid #fff;border-radius:50%;background:rgba(17,24,39,.28);color:#fff}.yuntuku-photo.is-selected:after{content:"";position:absolute;inset:0;background:rgba(18,168,255,.3)}.yuntuku-photo.is-selected .yuntuku-photo__check{background:#12a8ff}
.yuntuku-selectbar{position:sticky;top:56px;z-index:6;display:grid;grid-template-columns:minmax(70px,1fr) repeat(3,auto);gap:7px;align-items:center;margin-bottom:12px;padding:9px 10px;border-radius:18px;background:#fff;box-shadow:0 10px 22px rgba(20,38,64,.08)}.yuntuku-selectbar span{min-width:0;font-size:12px;font-weight:800;white-space:nowrap}.yuntuku-selectbar button,.yuntuku-settings-button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:34px;border:1px solid rgba(18,168,255,.16);border-radius:999px;background:rgba(18,168,255,.1);color:#1684e8;font-size:12px;font-weight:800;line-height:1;white-space:nowrap}.yuntuku-selectbar button{min-width:46px;padding:0 9px}.is-danger,.yuntuku-settings-button.is-danger{color:#dc2626!important;background:rgba(239,68,68,.1)!important}.yuntuku-move-dialog{position:absolute;inset:0;z-index:30;display:grid;place-items:center;padding:22px;background:rgba(15,23,42,.32);backdrop-filter:blur(8px)}.yuntuku-move-dialog__panel{display:grid;gap:12px;width:min(100%,292px);padding:18px;border-radius:24px;background:#fff;box-shadow:0 22px 48px rgba(15,23,42,.22)}.yuntuku-move-dialog__panel strong{font-size:17px}.yuntuku-move-dialog__panel label{color:#64748b;font-size:12px;font-weight:800}.yuntuku-move-dialog__actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.yuntuku-move-dialog__actions button{min-height:38px;border:1px solid rgba(15,23,42,.1);border-radius:999px;background:#fff;color:#64748b;font-size:13px;font-weight:800}.yuntuku-move-dialog__actions .is-primary{border-color:rgba(18,168,255,.16);background:rgba(18,168,255,.1);color:#1684e8}
.yuntuku-settings-list{display:grid;gap:12px}.yuntuku-settings-card{display:grid;gap:9px;padding:16px;border-radius:22px}.yuntuku-settings-card p{margin:0;color:#7b8794;font-size:12px;line-height:1.6}.yuntuku-settings-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.yuntuku-settings-row>.yuntuku-settings-button{width:58px;min-width:58px;height:40px;padding:0;flex:0 0 auto}.yuntuku-input{box-sizing:border-box;width:100%;min-width:0;height:40px;border:1px solid rgba(15,23,42,.1);border-radius:15px;background:#fff;padding:0 12px}.yuntuku-empty{padding:18px 14px;border:1px dashed rgba(148,163,184,.42);border-radius:18px;background:rgba(255,255,255,.72);color:#7b8794}
.yuntuku-upload-status{position:absolute;left:16px;right:16px;bottom:74px;z-index:12;display:none;padding:10px 12px;border-radius:18px;background:#fff;box-shadow:0 16px 32px rgba(20,38,64,.12);font-size:12px}.yuntuku-upload-status.is-visible{display:grid}.yuntuku-progress{display:none;height:7px;border-radius:999px;background:rgba(148,163,184,.18);overflow:hidden}.yuntuku-progress.visible{display:block}.yuntuku-progress__bar{height:100%;background:linear-gradient(135deg,#62d6ff,#1684e8)}
.yuntuku-tabbar{position:absolute;left:12px;right:12px;bottom:10px;z-index:10;display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:8px;border:1px solid rgba(20,38,64,.08);border-radius:26px;background:rgba(255,255,255,.96);box-shadow:0 18px 34px rgba(20,38,64,.14)}.yuntuku-tabbar__item{display:grid;place-items:center;gap:4px;min-height:52px;border:0;border-radius:20px;background:transparent;color:#8a96a6;font-size:11px;font-weight:800}.yuntuku-tabbar__item.is-active{background:rgba(18,168,255,.1);color:#1684e8}.yuntuku-tabbar__icon--home:before{content:"⌂";font-size:21px}.yuntuku-tabbar__icon--album:before{content:"▣";font-size:20px}.yuntuku-tabbar__icon--settings:before{content:"⚙";font-size:19px}
